|
@@ -121,8 +121,9 @@ export default {
|
|
|
this.plantOptions = response.data;
|
|
|
const allValues = this.plantOptions.map(item => item.name);
|
|
|
this.form.plant = [...allValues];
|
|
|
+ this.getCuiData()
|
|
|
});
|
|
|
- this.getCuiData()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
handleSelectChange(val) {
|
|
@@ -138,7 +139,7 @@ export default {
|
|
|
this.form.plant = [...allValues];
|
|
|
}
|
|
|
}
|
|
|
- this.$emit('call-update', this.form.plant);
|
|
|
+ // this.$emit('call-update', this.form.plant);
|
|
|
this.getCuiData()
|
|
|
},
|
|
|
getCuiData(){
|
|
@@ -150,6 +151,7 @@ export default {
|
|
|
|
|
|
|
|
|
});
|
|
|
+ this.$emit('call-update', this.form.plant);
|
|
|
}
|
|
|
|
|
|
}
|