فهرست منبع

fix: 修复选择设备后条件未重置及表格未渲染

yusheng 3 هفته پیش
والد
کامیت
7a62b57c88
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/views/warning/warningSetting/components/addWarningDialog.vue

+ 2 - 1
src/views/warning/warningSetting/components/addWarningDialog.vue

@@ -118,7 +118,7 @@
                 </el-select>
               </el-form-item>
             </el-col>
-            <el-col :span="24" class="table_wrapper"></el-col>
+            <el-col :span="24" class="table_wrapper">
               <el-table :data="baseInfoForm.conditions" style="width: 100%">
                 <el-table-column label="">
                   <template slot-scope="scope">
@@ -501,6 +501,7 @@
         this.baseInfoForm.deviceId = data.id;
         this.baseInfoForm.deviceName = data.name;
         this.baseInfoForm.deviceCode = data.code;
+        this.baseInfoForm.conditions=[]
         getPhysicalModel(data.id).then((res) => {
           this.temperatureList = res.properties;
         });