瀏覽代碼

告警规则bug修改

jingyuanchao 1 年之前
父節點
當前提交
9228caaf68
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/warnRule/relevanceDialog.vue

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

@@ -94,7 +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;
+              this.currentTypeData.iotCode = this.iotCode;
             }, 200);
           }
         })
@@ -106,6 +106,7 @@ export default {
       this.currentTypeData = this.data.typeDataList.find(
         (t) => t.type == this.selectedTab
       );
+      this.currentTypeData.iotCode = this.iotCode;
     },
     updateDeviceData(rel) {
       this.data.typeDataList.forEach((obj, index) => {