yuhan 10 hónapja%!(EXTRA string=óta)
szülő
commit
54310f9362

+ 12 - 2
src/views/module_interLock/InterlockSummary/modules/InterlockSummaryForm.vue

@@ -350,6 +350,10 @@
       formDisabled(){
         return this.disabled
       },
+      clickSystemNode() {
+        /** 其中:interlockType判断点击的是否为系统(0为装置,1为系统,2为未选中) */
+        return this.$store.getters.clickSystemNode
+      },
     },
     // watch: {
     //   'model.interlockName'(val) {
@@ -359,6 +363,8 @@
     created () {
       this.getTagInfo()
       this.initDictData()
+      console.log(111)
+      console.log('clickSystemNode', this.clickSystemNode)
       // this.getData('0', 'apparatusData')
        //备份model原始值
       this.modelDefault = JSON.parse(JSON.stringify(this.model));
@@ -390,8 +396,10 @@
         })
       },
       // 获取所有位号
-      getTagInfo(){
-        postAction(this.url.getTagInfo).then(res => {
+      getTagInfo(groupId){
+        console.log(1111)
+        console.log('clickSystemNode', this.clickSystemNode)
+        postAction(this.url.getTagInfo, {groupId: groupId}).then(res => {
           this.tagDataOptions = res.result
           this.confirmLoading = false
         })
@@ -470,6 +478,7 @@
       edit (record) {
         // this.model = Object.assign({}, record);
         // 编辑时获取当前联锁所有详细信息
+        console.log(record)
         getAction(this.url.getLsAllData, {id: record.summaryid}).then(res => {
           var resultArr = res.result
           this.model = resultArr
@@ -477,6 +486,7 @@
           this.model.interlockOutValueData = [resultArr.deviceId, resultArr.moduleName, resultArr.interlockOutValueTag+'&'+resultArr.interlockOutValue]
           this.visible = true;
           this.getZzXtData()
+          this.getTagInfo(this.model.groupId)
         })
       },
       submitForm () {