Explorar el Código

告警规则bug修改

jingyuanchao hace 1 año
padre
commit
9228caaf68
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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) => {