Browse Source

修改上级清空下级

master
zhangyuan 3 years ago
parent
commit
d75cef892d
  1. 9
      src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue

9
src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue

@ -500,6 +500,10 @@ export default {
.catch(() => { })
},
changeDept(event) {
this.dataForm.plotId = ''
this.dataForm.buildingId = ''
this.dataForm.unit = ''
this.dataForm.unitId = ''
this.dataForm.deptId = this.dataForm.deptIdList[this.dataForm.deptIdList.length - 1]
this.queryPlot()
},
@ -515,6 +519,8 @@ export default {
},
selectBuilding (event) {
this.dataForm.buildingId = ''
this.dataForm.unit = ''
this.dataForm.unitId = ''
this.plotArr.find((item) => {
if (item.dictValue === event) {
this.dataForm.plotId = item.dictValue
@ -535,6 +541,7 @@ export default {
.catch(() => {})
},
selectUnit (event) {
this.dataForm.unit = ''
this.dataForm.unitId = ''
this.buildingArr.find((item) => {
if (item.dictValue === event) {
@ -806,6 +813,7 @@ export default {
...this.dataForm,
...res.data
}
if (this.dataForm.returnState === '1') {
//
this.showFlagIn = true
@ -823,6 +831,7 @@ export default {
this.dataForm.plotId = ''
this.dataForm.buildingId = ''
this.dataForm.unitId = ''
this.dataForm.unit = ''
}
}).catch(() => {
})

Loading…
Cancel
Save