|
@ -18,7 +18,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="网格"> |
|
|
<el-form-item label="网格"> |
|
|
<el-select v-model="dataForm.gridId" clearable placeholder="请选择"> |
|
|
<el-select v-model="dataForm.deptId" clearable placeholder="请选择"> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -64,8 +64,8 @@ |
|
|
<el-option v-for="(item,index) in communityOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
<el-option v-for="(item,index) in communityOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="网格"> |
|
|
<el-form-item label="部门"> |
|
|
<el-select v-model="dataForm.gridId" clearable placeholder="请选择"> |
|
|
<el-select v-model="dataForm.deptId" clearable placeholder="请选择"> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -112,7 +112,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="网格"> |
|
|
<el-form-item label="网格"> |
|
|
<el-select v-model="dataForm.gridId" clearable placeholder="请选择"> |
|
|
<el-select v-model="dataForm.deptId" clearable placeholder="请选择"> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -162,8 +162,8 @@ |
|
|
<el-option v-for="(item,index) in communityOptions" :key="index" :label="item.name" :value="item.id"> </el-option> |
|
|
<el-option v-for="(item,index) in communityOptions" :key="index" :label="item.name" :value="item.id"> </el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="网格"> |
|
|
<el-form-item label="部门"> |
|
|
<el-select v-model="dataForm.gridId" clearable placeholder="请选择"> |
|
|
<el-select v-model="dataForm.deptId" clearable placeholder="请选择"> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
<el-option v-for="(item,index) in gridOptions" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -223,7 +223,7 @@ export default { |
|
|
id: '', |
|
|
id: '', |
|
|
streetId: '', |
|
|
streetId: '', |
|
|
communityId: '', |
|
|
communityId: '', |
|
|
gridId: '', |
|
|
deptId: '', |
|
|
realName: '', |
|
|
realName: '', |
|
|
mobile: '', |
|
|
mobile: '', |
|
|
identityNo: '', |
|
|
identityNo: '', |
|
@ -256,7 +256,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getCommunityList () { |
|
|
getCommunityList () { |
|
|
this.communityOptions = this.gridOptions = [] |
|
|
this.communityOptions = this.gridOptions = [] |
|
|
this.dataForm.communityId = this.dataForm.gridId = null |
|
|
this.dataForm.communityId = this.dataForm.deptId = null |
|
|
if (this.dataForm.streetId) { |
|
|
if (this.dataForm.streetId) { |
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { |
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
@ -268,7 +268,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getGridList () { |
|
|
getGridList () { |
|
|
this.gridOptions = [] |
|
|
this.gridOptions = [] |
|
|
this.dataForm.gridId = null |
|
|
this.dataForm.deptId = null |
|
|
if (this.dataForm.communityId) { |
|
|
if (this.dataForm.communityId) { |
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { |
|
|
this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
@ -300,7 +300,7 @@ export default { |
|
|
handleClick (tab, event) { |
|
|
handleClick (tab, event) { |
|
|
this.dataForm.streetId = '' |
|
|
this.dataForm.streetId = '' |
|
|
this.dataForm.communityId = '' |
|
|
this.dataForm.communityId = '' |
|
|
this.dataForm.gridId = '' |
|
|
this.dataForm.deptId = '' |
|
|
this.dataForm.realName = '' |
|
|
this.dataForm.realName = '' |
|
|
this.dataForm.mobile = '' |
|
|
this.dataForm.mobile = '' |
|
|
this.dataForm.identityNo = '' |
|
|
this.dataForm.identityNo = '' |
|
|