diff --git a/src/views/modules/honest/allnewshonest-add-or-update.vue b/src/views/modules/honest/allnewshonest-add-or-update.vue index 6eb93e8..137c7cc 100644 --- a/src/views/modules/honest/allnewshonest-add-or-update.vue +++ b/src/views/modules/honest/allnewshonest-add-or-update.vue @@ -181,10 +181,6 @@ export default { return this.$message.error(res.msg) } this.dataForm = { ...this.dataForm, ...res.data } - console.log("this.quillEditor.root.innerHTML") - console.log(this.quillEditor.root.innerHTML) - console.log("res.data.newsContent") - console.log(res.data.newsContent) this.quillEditor.root.innerHTML = res.data.newsContent let business = this.options.find(item=>{ return item.code === this.dataForm.businessId diff --git a/src/views/modules/honest/newshonest-add-or-update.vue b/src/views/modules/honest/newshonest-add-or-update.vue index e0f8635..21e1178 100644 --- a/src/views/modules/honest/newshonest-add-or-update.vue +++ b/src/views/modules/honest/newshonest-add-or-update.vue @@ -6,6 +6,7 @@ @close="visible= false"> { 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('您输入的的内容已超过字数不能提交') // } diff --git a/src/views/modules/honest/newshonest-list.vue b/src/views/modules/honest/newshonest-list.vue index 9380033..8d1dcdc 100644 --- a/src/views/modules/honest/newshonest-list.vue +++ b/src/views/modules/honest/newshonest-list.vue @@ -82,7 +82,7 @@ 上线 下线 审核 - 查看 + 查看