liu85600613 3 年 前
コミット
3d5a92a7cb
1 ファイル変更7 行追加1 行削除
  1. 7 1
      ui/src/views/sems/specanalysis/index.vue

+ 7 - 1
ui/src/views/sems/specanalysis/index.vue

@@ -437,6 +437,12 @@ export default {
       } else {
         this.plantIds = []
       }
+      this.unitIds = []
+      this.getUnitList()
+      if (this.plantIds.length == 0) {
+        this.plantIds = ['']
+      }
+      this.devData()
     },
     handleCommand(val) {
       this.unitIds = []
@@ -444,12 +450,12 @@ export default {
       if (this.plantIds.length == 0) {
         this.plantIds = ['']
       }
-      this.devData()
       if (val.length === this.plantList.length) {
         this.checked = true
       } else {
         this.checked = false
       }
+      this.devData()
     },
     // let allnames = []
     // //保留所有值