|
@@ -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 = []
|
|
|
// //保留所有值
|