Przeglądaj źródła

参加外部质量评价计划:计划子表导入校验适配中英文括号和逗号

shenqilong 6 miesięcy temu
rodzic
commit
87a3724116
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      src/views/component/sjzlpjjhx/sjzlpjjhx.vue

+ 13 - 0
src/views/component/sjzlpjjhx/sjzlpjjhx.vue

@@ -495,6 +495,19 @@ export default {
         }
         for (let i = 0; i < list.length; i++) {
           const item = list[i]
+          list[i].yanZhengLeiXing = list[i].yanZhengLeiXing
+            .replace(/' '/g, '')
+            .replace(/\(/g, '(')
+            .replace(/\)/g, ')')
+          list[i].canYuRenYuan = list[i].canYuRenYuan
+            .replace(/' '/g, '')
+            .replace(/,/g, ',')
+          if (list[i].tiGongZhe == '/') {
+            list[i].tiGongZhe = ''
+          }
+          if (list[i].biDuiFang == '/') {
+            list[i].biDuiFang = ''
+          }
           if (!this.validateItem(item, i)) return
         }
         this.sjzlpjjhxData.push(...list)