处理联动字段,没有清空的问题
This commit is contained in:
parent
04250adcb1
commit
d584d4d7a4
|
@ -468,6 +468,8 @@ export default {
|
||||||
this.queryParams.type = val
|
this.queryParams.type = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.getAlarmSources(val)
|
this.getAlarmSources(val)
|
||||||
|
} else {
|
||||||
|
this.nameOptions=[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onStateChange(val) {
|
onStateChange(val) {
|
||||||
|
@ -488,7 +490,12 @@ export default {
|
||||||
this.form.sourceType = val
|
this.form.sourceType = val
|
||||||
this.form.sourceId = undefined
|
this.form.sourceId = undefined
|
||||||
this.form.itemId = undefined
|
this.form.itemId = undefined
|
||||||
this.getSourcesOptions(val)
|
if (val) {
|
||||||
|
this.getSourcesOptions(val)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.sourceOptions=[]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onSourceChange(val,option) {
|
onSourceChange(val,option) {
|
||||||
this.form.sourceId = val
|
this.form.sourceId = val
|
||||||
|
|
Loading…
Reference in New Issue
Block a user