|
|
@ -39,7 +39,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属网格"> |
|
|
|
<el-select v-model="dataForm.gridId" |
|
|
|
<el-select v-model="dataForm.deptId" |
|
|
|
@change="changeGrid" |
|
|
|
placeholder="所属网格"> |
|
|
|
<el-option v-for="item in gridList" |
|
|
@ -153,7 +153,7 @@ export default { |
|
|
|
id: '', |
|
|
|
streetId: '', |
|
|
|
communityId: null, |
|
|
|
gridId: null, |
|
|
|
deptId: null, |
|
|
|
newsCateroryId: '', |
|
|
|
newsTitle: '', |
|
|
|
newsReleaseStartTime: '', |
|
|
@ -162,7 +162,7 @@ export default { |
|
|
|
newsImageUrl: '', |
|
|
|
street: '', |
|
|
|
community: null, |
|
|
|
grid: null, |
|
|
|
dept: null, |
|
|
|
newsProperty: '', |
|
|
|
allDeptIdsShow: [] |
|
|
|
}, |
|
|
@ -219,7 +219,7 @@ export default { |
|
|
|
this.getListCategory() |
|
|
|
this.visible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.deptId = null |
|
|
|
// 富文本 |
|
|
|
this.hideUpload = false |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}` |
|
|
@ -280,7 +280,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.dataForm.grid = null |
|
|
|
this.dataForm.communityId = this.dataForm.deptId = this.dataForm.community = this.dataForm.dept = null |
|
|
|
this.communityList = this.gridList = [] |
|
|
|
// 获取街道下属社区 |
|
|
|
this.getDeptInfoList('community', this.dataForm.streetId) |
|
|
@ -290,15 +290,15 @@ export default { |
|
|
|
let choosenItem = this.communityList.filter(item => item.id === this.dataForm.communityId)[0] |
|
|
|
this.dataForm.community = choosenItem.name |
|
|
|
// 情况网格的变量值 |
|
|
|
this.dataForm.gridId = this.dataForm.grid = null |
|
|
|
this.dataForm.deptId = this.dataForm.dept = null |
|
|
|
this.gridList = [] |
|
|
|
// 获取社区下属网格 |
|
|
|
this.getDeptInfoList('grid', this.dataForm.communityId) |
|
|
|
}, |
|
|
|
changeGrid () { |
|
|
|
// 给网格变量赋值 |
|
|
|
let choosenItem = this.gridList.filter(item => item.id === this.dataForm.gridId)[0] |
|
|
|
this.dataForm.grid = choosenItem.name |
|
|
|
let choosenItem = this.gridList.filter(item => item.id === this.dataForm.deptId)[0] |
|
|
|
this.dataForm.dept = choosenItem.name |
|
|
|
}, |
|
|
|
changeCaterory () { |
|
|
|
// 给新闻类别变量赋值 |
|
|
@ -376,7 +376,7 @@ export default { |
|
|
|
this.dataForm.id = '' |
|
|
|
this.dataForm.streetId = '' |
|
|
|
this.dataForm.communityId = null |
|
|
|
this.dataForm.gridId = null |
|
|
|
this.dataForm.deptId = null |
|
|
|
this.dataForm.newsCateroryId = '' |
|
|
|
this.dataForm.newsTitle = '' |
|
|
|
this.dataForm.newsReleaseStartTime = '' |
|
|
@ -385,12 +385,12 @@ export default { |
|
|
|
this.dataForm.newsImageUrl = '' |
|
|
|
this.dataForm.street = '' |
|
|
|
this.dataForm.community = null |
|
|
|
this.dataForm.grid = null |
|
|
|
this.dataForm.dept = null |
|
|
|
this.dataForm.newsProperty = '' |
|
|
|
this.visible = false |
|
|
|
this.time = [] |
|
|
|
this.quillEditor.root.innerHTML = '' |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.deptId = null |
|
|
|
this.communityList = this.gridList = [] |
|
|
|
this.isAble = false |
|
|
|
} |
|
|
@ -421,7 +421,7 @@ export default { |
|
|
|
this.dataForm.id = '' |
|
|
|
this.dataForm.streetId = '' |
|
|
|
this.dataForm.communityId = null |
|
|
|
this.dataForm.gridId = null |
|
|
|
this.dataForm.deptId = null |
|
|
|
this.dataForm.newsCateroryId = '' |
|
|
|
this.dataForm.newsTitle = '' |
|
|
|
this.dataForm.newsReleaseStartTime = '' |
|
|
@ -430,12 +430,12 @@ export default { |
|
|
|
this.dataForm.newsImageUrl = '' |
|
|
|
this.dataForm.street = '' |
|
|
|
this.dataForm.community = null |
|
|
|
this.dataForm.grid = null |
|
|
|
this.dataForm.dept = null |
|
|
|
this.dataForm.newsProperty = '' |
|
|
|
this.visible = false |
|
|
|
this.time = [] |
|
|
|
this.quillEditor.root.innerHTML = '' |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.deptId = null |
|
|
|
this.communityList = this.gridList = [] |
|
|
|
this.isAble = false |
|
|
|
} |
|
|
|