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