|
|
@ -6,6 +6,7 @@ |
|
|
|
@close="visible= false"> |
|
|
|
<el-form :model="dataForm" |
|
|
|
:rules="dataRule" |
|
|
|
v-loading="loading" |
|
|
|
ref="dataForm" |
|
|
|
:label-width="$i18n.locale === 'en-US' ? '120px' : '80px'"> |
|
|
|
<el-form-item label="新闻模块" |
|
|
@ -108,8 +109,8 @@ export default { |
|
|
|
newsProperty: '', |
|
|
|
newsColumn: '', |
|
|
|
newsTitle: '', |
|
|
|
newsReleaseStartTime: '', |
|
|
|
newsReleaseEndTime: '', |
|
|
|
newsApprovalState: '', |
|
|
|
approvalReason: '', |
|
|
|
newsContent: '', |
|
|
|
newsImageUrl: '', |
|
|
|
allDeptIdsShow: [] |
|
|
@ -226,12 +227,12 @@ export default { |
|
|
|
}, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.loading = true |
|
|
|
this.$http.get(`/news/newshonest/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.dataForm = { ...this.dataForm, ...res.data } |
|
|
|
this.resetRegistTime() |
|
|
|
this.quillEditor.root.innerHTML = res.data.newsContent |
|
|
|
// 类别 |
|
|
|
this.$http |
|
|
@ -259,7 +260,10 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}).catch(() => { }) |
|
|
|
this.loading = false |
|
|
|
}).catch(() => { |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取部门列表 |
|
|
|
getDeptInfoList (dataReceiver, faDeptId) { |
|
|
@ -376,6 +380,8 @@ export default { |
|
|
|
dataFormSubmitHandle: debounce(function () { |
|
|
|
this.dataForm.newsProperty = this.$refs.newsCateroryName.selectedLabel |
|
|
|
this.dataForm.newsColumn = this.$refs.newsSubCateroryName.selectedLabel |
|
|
|
this.dataForm.newsApprovalState = '0' |
|
|
|
this.dataForm.approvalReason = '' |
|
|
|
// if ((this.dataForm.newsContent).length > 10000) { |
|
|
|
// return this.$message.error('您输入的的内容已超过字数不能提交') |
|
|
|
// } |
|
|
|