diff --git a/src/views/modules/honest/allnewshonest-add-or-update.vue b/src/views/modules/honest/allnewshonest-add-or-update.vue index bac9892..6eb93e8 100644 --- a/src/views/modules/honest/allnewshonest-add-or-update.vue +++ b/src/views/modules/honest/allnewshonest-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 } + 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 }) this.dataForm.businessName = business.title - }).catch(() => { }) + this.loading = false + }).catch(() => { + this.loading = false + }) }, reviewOk () { this.dataForm.newsApprovalState = 2 @@ -304,13 +314,6 @@ export default { beforeAvatarUpload (file) { this.loading = true }, - setRegistTime () { - this.dataForm.newsReleaseStartTime = this.time[0] - this.dataForm.newsReleaseEndTime = this.time[1] - }, - resetRegistTime () { - this.time = [this.dataForm.newsReleaseStartTime.substr(0, 10), this.dataForm.newsReleaseEndTime.substr(0, 10)] - }, // 上传图片end // 表单提交 dataFormSubmitHandle: debounce(function () {