|
|
@ -175,9 +175,7 @@ export default { |
|
|
|
itemState: '5', |
|
|
|
startTime: '', |
|
|
|
endTime: '', |
|
|
|
streetId: '', |
|
|
|
communityId: '', |
|
|
|
gridId: '', |
|
|
|
deptId: '', |
|
|
|
itemCode: '' |
|
|
|
}, |
|
|
|
ids: [], |
|
|
@ -210,24 +208,9 @@ export default { |
|
|
|
watch: { |
|
|
|
ids: function (val) { |
|
|
|
if (val.length === 0) { |
|
|
|
this.dataForm.streetId = '' |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
} |
|
|
|
if (val.length === 1) { |
|
|
|
this.dataForm.streetId = this.ids[0] |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
} |
|
|
|
if (val.length === 2) { |
|
|
|
this.dataForm.streetId = this.ids[0] |
|
|
|
this.dataForm.communityId = this.ids[1] |
|
|
|
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] |
|
|
|
this.dataForm.deptId = '' |
|
|
|
} else { |
|
|
|
this.dataForm.deptId = this.ids[val.length - 1] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|