|
|
@ -20,7 +20,8 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属社区"> |
|
|
|
<el-form-item label="所属社区" |
|
|
|
prop="communityId"> |
|
|
|
<el-select v-model="dataForm.communityId" |
|
|
|
@change="changeCommunity" |
|
|
|
placeholder="所属社区"> |
|
|
@ -31,7 +32,8 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属网格"> |
|
|
|
<el-form-item label="所属网格" |
|
|
|
prop="gridId"> |
|
|
|
<el-select v-model="dataForm.gridId" |
|
|
|
@change="changeGrid" |
|
|
|
placeholder="所属网格"> |
|
|
@ -98,13 +100,11 @@ export default { |
|
|
|
quillEditor: null, |
|
|
|
quillEditorToolbarOptions: [ |
|
|
|
['bold', 'italic', 'underline', 'strike'], |
|
|
|
// ['blockquote', 'code-block', 'image'], |
|
|
|
['image'], |
|
|
|
[{ 'header': 1 }, { 'header': 2 }], |
|
|
|
[{ 'list': 'ordered' }, { 'list': 'bullet' }], |
|
|
|
[{ 'script': 'sub' }, { 'script': 'super' }], |
|
|
|
[{ 'indent': '-1' }, { 'indent': '+1' }], |
|
|
|
// [{ 'direction': 'rtl' }], |
|
|
|
[{ 'size': ['small', false, 'large', 'huge'] }], |
|
|
|
[{ 'header': [1, 2, 3, 4, 5, 6, false] }], |
|
|
|
[{ 'color': [] }, { 'background': [] }], |
|
|
@ -174,6 +174,7 @@ export default { |
|
|
|
this.visible = true |
|
|
|
this.$nextTick(() => { |
|
|
|
this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null |
|
|
|
this.communityList = this.gridList = [] |
|
|
|
// 富文本 |
|
|
|
this.hideUpload = false |
|
|
|
this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}` |
|
|
@ -186,8 +187,6 @@ export default { |
|
|
|
this.$refs['dataForm'].resetFields() |
|
|
|
if (this.dataForm.id) { |
|
|
|
this.getInfo() |
|
|
|
} else { |
|
|
|
this.dataForm = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|