Просмотр исходного кода

年龄和血压标签组增加判断条件

zhangxc 6 лет назад
Родитель
Сommit
494f055d10
2 измененных файлов с 7 добавлено и 4 удалено
  1. 2 2
      src/components/icss/AddIndeptLabel.vue
  2. 5 2
      src/components/icss/NoiseTemplate.vue

+ 2 - 2
src/components/icss/AddIndeptLabel.vue

@@ -108,9 +108,9 @@
             });
             return;
         }
-        if(this.dataPub.region8 > this.dataPub.region9) {
+        if(this.dataPub.region8 >= this.dataPub.region9) {
           this.$message({
-            message: '最小年龄不能大于最大年龄',
+            message: '最小年龄不能大于或等于最大年龄',
             type: 'warning'
           });
           return;

+ 5 - 2
src/components/icss/NoiseTemplate.vue

@@ -175,9 +175,9 @@ export default {
         });
         return;
       }
-      if(this.dataPub.region8 > this.dataPub.region9) {
+      if(this.dataPub.region8 >= this.dataPub.region9) {
           this.$message({
-            message: '最小年龄不能大于最大年龄',
+            message: '最小年龄不能大于或等于最大年龄',
             type: 'warning'
           });
           return;
@@ -206,6 +206,9 @@ export default {
           "questionMappings": detailLis       //映射关系,
         }
       }
+      if(this.dataPub.region2 == 2 && detailLis.length == 0) {
+         this.warning('请选择标签明细')
+      }
       this.showDelDialog(param)
     },
     showDelDialog(param) {