Quellcode durchsuchen

告警规则bug修改

jingyuanchao vor 1 Jahr
Ursprung
Commit
aa097eb10e

+ 3 - 0
src/views/warnRule/addRelvance.vue

@@ -227,6 +227,7 @@ export default {
           orgId: this.$store.getters.orgId,
           deviceName: "",
           searchChild: false,
+          iotCode: '',
         },
         total: 0,
         selectedCount: 0,
@@ -238,6 +239,7 @@ export default {
           orgId: this.$store.getters.orgId,
           deviceName: "",
           searchChild: false,
+          iotCode: '',
         },
         total: 0,
         selectedCount: 0,
@@ -352,6 +354,7 @@ export default {
       this.right.condition.orgId = null;
       this.right.condition.searchChild = false;
       this.right.condition.deviceName = null;
+      this.right.condition.iotCode = null;
       let addData = this.left.selectedRows.filter(
         (row) => this.boundDeviceIds.indexOf(row.deviceId) < 0
       );

+ 2 - 0
src/views/warnRule/relevanceDialog.vue

@@ -82,6 +82,7 @@ export default {
     show(ruleId,iotCode) {
       this.isShow = true;
       this.iotCode = iotCode;
+      this.currentTypeData.iotCode = iotCode;
       this.init(ruleId);
     },
     init(ruleId) {
@@ -93,6 +94,7 @@ export default {
             setTimeout(() => {
               this.selectedTab = String(this.data.typeDataList[0].type);
               this.currentTypeData = this.data.typeDataList[0];
+              this.currentTypeData.iotCode = this.data.iotCode;
             }, 200);
           }
         })

+ 1 - 0
src/views/warnRule/relevanceDialogCom.vue

@@ -53,6 +53,7 @@ export default {
         deviceTempList: [],
         isAllDeviceEnable: false,
         type: 4,
+        iotCode: '',
       }
     };
   },