处理联动字段,没有清空的问题

This commit is contained in:
renpy 2023-07-26 18:49:02 +08:00
parent 04250adcb1
commit d584d4d7a4

View File

@ -468,6 +468,8 @@ export default {
this.queryParams.type = val
if (val) {
this.getAlarmSources(val)
} else {
this.nameOptions=[]
}
},
onStateChange(val) {
@ -488,7 +490,12 @@ export default {
this.form.sourceType = val
this.form.sourceId = undefined
this.form.itemId = undefined
this.getSourcesOptions(val)
if (val) {
this.getSourcesOptions(val)
} else {
this.sourceOptions=[]
}
},
onSourceChange(val,option) {
this.form.sourceId = val