Browse Source

add pointconfig dictionary validate

haojianlong 5 years ago
parent
commit
5ed64ef388
1 changed files with 4 additions and 7 deletions
  1. 4 7
      src/components/config_point/step3_point/3_temps.vue

+ 4 - 7
src/components/config_point/step3_point/3_temps.vue

@@ -151,7 +151,8 @@ export default {
           required: true,
           message: '请选择值处理方式',
           trigger: 'change'
-        }]
+        }],
+        dict: [{ required: true }]
       },
       pointDes: ""
     }
@@ -176,7 +177,7 @@ export default {
       this.form1 = {
         dict: 1
       }
-      this.$refs.dictionaryCas.setCascaderVal([''])
+      this.$refs.dictionaryCas.setCascaderVal([])
       this.form2 = {
         ValueDescription: '',
         DataRuleType: '无需处理,直接使用'
@@ -579,11 +580,7 @@ export default {
       this.dictionaryNames = labels
       this.infoDict = this.$refs.dictionaryCas.pointDataSource
       this.unitObj = this.infoDict[val[val.length - 1]]
-      console.log(11111111111)
-      console.log(val[val.length - 1])
-      console.log(this.infoDict)
-      console.log(this.unitObj)
-      this.InfomationPoint = this.unitObj.infoPointName
+      this.InfomationPoint = this.unitObj.infoPointName || ''
     }
   }
 }