Browse Source

fix data back and change

haojianlong 5 years ago
parent
commit
d3d47a934d
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/components/config_point/step3_edit/index.vue

+ 13 - 0
src/components/config_point/step3_edit/index.vue

@@ -566,6 +566,18 @@ export default {
       this.splitHandleShow.devArr = this.splitHandleShow.devArr ? this.splitHandleShow.devArr : [{ EquipmentMark: '', SplitStart: 1, SplitEnd: 1 }]
       this.splitHandleShow.pointArr = this.splitHandleShow.pointArr ? this.splitHandleShow.pointArr : [{ from: '', to: '' }]
     },
+    //处理函数
+    delDataSource(val) {
+      if (!val) {
+        return '--'
+      }
+      val = JSON.parse(val)
+      let str = ''
+      val.forEach(el => {
+        str += el.Code + '.' + el.Name + ' '
+      })
+      return str
+    },
     //对应数据字典变化
     changeDictionaryCas({ val, labels }) {
       this.dictionaryData = val;
@@ -573,6 +585,7 @@ export default {
       this.infoDict = this.$refs.dictionaryCas.pointDataSource
       this.unitObj = this.infoDict[val[val.length - 1]]
       this.InfomationPoint = this.unitObj.InfoPointName || ''
+      this.ValueDescription = this.delDataSource(this.unitObj.DataSource)
     }
   },
   mounted() {