Browse Source

修改人员管理 区域查询

master
曲树通 6 years ago
parent
commit
1158c155ef
  1. 20
      src/views/modules/custom/gridoperatorinfo.vue

20
src/views/modules/custom/gridoperatorinfo.vue

@ -153,25 +153,25 @@ export default {
},
watch: {
'ids': function (val) {
if (val.length === 0) {
if (val.length === 0 || val.length === 1) {
this.dataForm.streetId = ''
this.dataForm.communityId = ''
this.dataForm.gridId = ''
}
if (val.length === 1) {
this.dataForm.streetId = this.ids[0]
if (val.length === 2) {
this.dataForm.streetId = this.ids[1]
this.dataForm.communityId = ''
this.dataForm.gridId = ''
}
if (val.length === 2) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
if (val.length === 3) {
this.dataForm.streetId = ''
this.dataForm.communityId = this.ids[2]
this.dataForm.gridId = ''
}
if (val.length === 3) {
this.dataForm.streetId = this.ids[0]
this.dataForm.communityId = this.ids[1]
this.dataForm.gridId = this.ids[2]
if (val.length === 4) {
this.dataForm.streetId = ''
this.dataForm.communityId = ''
this.dataForm.gridId = this.ids[3]
}
}
},

Loading…
Cancel
Save