From 4459f53895e7b59f906a3e48687102ed6dc2939f Mon Sep 17 00:00:00 2001 From: Jackwang Date: Tue, 17 Aug 2021 16:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=86=85=E5=AE=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/news/notice-add-or-update.vue | 25 ++++- src/views/modules/news/notice.vue | 91 ++++++++++++++++++- 2 files changed, 108 insertions(+), 8 deletions(-) diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index 2b34ace..a72eb92 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -7,7 +7,7 @@ :rules="dataRule" ref="dataForm" :label-width="$i18n.locale === 'en-US' ? '120px' : '80px'"> - + + + + { + this.moduleOptions = res.data.moduleOptions + }).catch(() => { + }) + }, + changeHandle(value){ + this.dataForm.typeId = this.dataForm.allTypeId[value.length-1] + }, // 富文本编辑器 quillEditorHandle () { this.quillEditor = new Quill('#J_quillEditor', { @@ -162,6 +180,7 @@ export default { this.quillEditor.insertEmbed(this.quillEditor.getSelection().index, 'image', res.data.url) }, init () { + this.getModuleTypeInfo() this.visible = true this.$nextTick(() => { this.dataForm.communityId = this.dataForm.streetId = this.dataForm.gridId = null diff --git a/src/views/modules/news/notice.vue b/src/views/modules/news/notice.vue index 1ee2e0c..37b29a3 100644 --- a/src/views/modules/news/notice.vue +++ b/src/views/modules/news/notice.vue @@ -5,11 +5,17 @@ - + + + + + {{ $t('query') }} @@ -32,6 +38,9 @@ + + align="center"> + + align="center">