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

Loading…
Cancel
Save