|
|
@ -172,6 +172,7 @@ export default { |
|
|
|
streetId: '', |
|
|
|
communityId: '', |
|
|
|
gridId: '', |
|
|
|
deptId: '', |
|
|
|
realName: '', |
|
|
|
mobile: '', |
|
|
|
identityNo: '', |
|
|
@ -210,21 +211,25 @@ export default { |
|
|
|
this.dataForm.streetId = '' |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
} |
|
|
|
if (val.length === 1) { |
|
|
|
this.dataForm.streetId = this.deptIdList[0] |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
} |
|
|
|
if (val.length === 2) { |
|
|
|
this.dataForm.streetId = this.deptIdList[0] |
|
|
|
this.dataForm.communityId = this.deptIdList[1] |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
} |
|
|
|
if (val.length === 3) { |
|
|
|
this.dataForm.streetId = this.deptIdList[0] |
|
|
|
this.dataForm.communityId = this.deptIdList[1] |
|
|
|
this.dataForm.gridId = this.deptIdList[2] |
|
|
|
this.dataForm.deptId = this.deptIdList[2] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|