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 } } }