From caff21c00aa4a9135df1b722ffd5ba2f600aa9ea Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 2 Sep 2020 09:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BB=B6=E8=BF=9F=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../honest/allnewshonest-add-or-update.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 () {