|
|
@ -194,9 +194,15 @@ export default { |
|
|
|
this.dataForm = res.data |
|
|
|
this.quillEditor.root.innerHTML = res.data.noticeContent |
|
|
|
if (this.dataForm.streetId) { |
|
|
|
if (this.dataForm.communityId === 0) { |
|
|
|
this.dataForm.communityId = this.dataForm.gridId = null |
|
|
|
} |
|
|
|
this.getDeptInfoList('community', this.dataForm.streetId) |
|
|
|
} |
|
|
|
if (this.dataForm.communityId) { |
|
|
|
if (this.dataForm.gridId === 0) { |
|
|
|
this.dataForm.gridId = null |
|
|
|
} |
|
|
|
this.getDeptInfoList('grid', this.dataForm.communityId) |
|
|
|
} |
|
|
|
}).catch(() => { }) |
|
|
@ -243,7 +249,7 @@ export default { |
|
|
|
let choosenItem = this.streetList.filter(item => item.id === this.dataForm.streetId)[0] |
|
|
|
this.dataForm.street = choosenItem.name |
|
|
|
// 清空社区与网格的变量值 |
|
|
|
this.dataForm.communityId = this.dataForm.gridId = this.dataForm.community = this.grid = null |
|
|
|
this.dataForm.communityId = this.dataForm.gridId = this.dataForm.community = this.dataForm.grid = null |
|
|
|
this.communityList = this.gridList = [] |
|
|
|
// 获取街道下属社区 |
|
|
|
this.getDeptInfoList('community', this.dataForm.streetId) |
|
|
|