|
|
|
@ -233,12 +233,16 @@ export default { |
|
|
|
methods: { |
|
|
|
// 获取部门列表 |
|
|
|
getDeptInfoList (dataReceiver, faDeptId) { |
|
|
|
if (!faDeptId) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.$http.get(`/sys/dept/sublist/` + faDeptId).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
if (dataReceiver === 'street') { |
|
|
|
this.streetList = res.data |
|
|
|
let all = [{ id: '1', name: '全部' }] |
|
|
|
this.streetList = all.concat(res.data) |
|
|
|
} else if (dataReceiver === 'community') { |
|
|
|
this.communityList = res.data |
|
|
|
} else if (dataReceiver === 'grid') { |
|
|
|
@ -300,7 +304,6 @@ export default { |
|
|
|
// 监听内容变化,动态赋值 |
|
|
|
this.quillEditor.on('text-change', () => { |
|
|
|
this.dataForm.newsContent = this.quillEditor.root.innerHTML |
|
|
|
console.log(this.dataForm.newsContent.length) |
|
|
|
if ((this.dataForm.newsContent).length > 10000) { |
|
|
|
return this.$message.error('您输入的的内容已超过字数') |
|
|
|
} |
|
|
|
|