Browse Source

Merge branch 'hezhihong_bug修复'

hezhihong 1 year ago
parent
commit
2c50212180
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/GATHER/index.vue

+ 6 - 5
src/views/GATHER/index.vue

@@ -351,12 +351,13 @@
             @click="handleDetail(scope.row, 0)"
             >查看</el-button
           >
+          <!-- {{scope.row.collStatus}}--{{scope.row.audit}} -->
           <el-button
             style="margin: 0 2px"
             v-if="
-              scope.row.collStatus == 1 &&
-              scope.row.audit == 0 &&
-              checkPermi(['gather:GATHER:edit'])
+              scope.row.collStatus == 1 &&         // 已采集
+              scope.row.audit == 0 &&              // 未审核
+              checkPermi(['gather:GATHER:edit'])   // 编辑权限
             "
             size="mini"
             type="text"
@@ -754,7 +755,7 @@ export default {
       let reg = /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g;
       if (!reg.test(value)) {
         callback(new Error("请输入数字和正确格式的数字"));
-      } else if (value.split(".") && value.split(".").length > 2) {
+      } else if (typeof value == 'string' && value.split(".").length > 2) {
         callback(new Error("请输入正确格式的数字")); //防止输入多个小数点
       }
       // else if (value.indexOf('.') != -1 && value.split('.')[1].length > 2) {
@@ -768,7 +769,7 @@ export default {
       let reg = /^[+]?(0|([1-9]\d*))(\.\d+)?$/g;
       if (!reg.test(value)) {
         callback(new Error("请输入正数和正确格式的数字"));
-      } else if (value.split(".") && value.split(".").length > 2) {
+      } else if (typeof value == 'string' && value.split(".").length > 2) {
         callback(new Error("请输入正确格式的数字")); //防止输入多个小数点
       }
       // else if (value.indexOf('.') != -1 && value.split('.')[1].length > 2) {