From fdc8c7f346440d35ea7e2b87334cb8c72b0e3916 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 18 Jan 2024 15:56:12 +0800 Subject: [PATCH] =?UTF-8?q?13707=20=E6=9C=89=E9=97=B2=E7=A9=BA=E9=97=B4?= =?UTF-8?q?=E6=A0=87=E7=82=B9=E4=BF=A1=E6=81=AF=20=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=8E=AA=E6=96=BD=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/dialog/confinedspace.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/map/dialog/confinedspace.vue b/src/views/map/dialog/confinedspace.vue index d6fbf90..b293563 100644 --- a/src/views/map/dialog/confinedspace.vue +++ b/src/views/map/dialog/confinedspace.vue @@ -264,7 +264,15 @@ export default { this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0] this.pd.APPROVE_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1] }).catch((e) => { + console.log(e) }) + }, + findCharIndex(str, char, num) { + let index = str.indexOf(char) + for (let i = 0; i < num - 1; i++) { + index = str.indexOf(char, index + 1) + } + return index } } }