|
|
|
@ -30,7 +30,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="网格"> |
|
|
|
<el-select v-model="dataForm.gridId" |
|
|
|
<el-select v-model="dataForm.deptId" |
|
|
|
clearable |
|
|
|
placeholder="请选择"> |
|
|
|
<el-option v-for="item in gridOptions" |
|
|
|
@ -139,7 +139,7 @@ export default { |
|
|
|
endTime: '', |
|
|
|
streetId: '', |
|
|
|
communityId: '', |
|
|
|
gridId: '' |
|
|
|
deptId: '' |
|
|
|
}, |
|
|
|
streetOptions: [], |
|
|
|
communityOptions: [], |
|
|
|
@ -186,11 +186,11 @@ export default { |
|
|
|
this.communityOptions = [] |
|
|
|
this.gridOptions = [] |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
return |
|
|
|
} |
|
|
|
this.dataForm.communityId = '' |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
@ -201,10 +201,10 @@ export default { |
|
|
|
getGridList () { |
|
|
|
if (this.dataForm.communityId === '') { |
|
|
|
this.gridOptions = [] |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
return |
|
|
|
} |
|
|
|
this.dataForm.gridId = '' |
|
|
|
this.dataForm.deptId = '' |
|
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
|