From f73ba2afacf130a194bfc780b8e5c33430c261d3 Mon Sep 17 00:00:00 2001
From: liuchuang <123456>
Date: Tue, 3 Nov 2020 14:26:11 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E4=B8=BE=E6=8A=A5?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=E5=B1=8F=E8=94=BD=E5=8E=9F=E5=9B=A0=E5=AD=97?=
=?UTF-8?q?=E6=95=B0=E9=99=90=E5=88=B6=202=E3=80=81=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E4=B8=8D=E8=A7=84=E8=8C=83=E7=BC=96=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/tinymce-editor/index.vue | 35 +++---
.../case/typicalcase-add-or-update.vue | 117 +++---------------
.../custom/reportissue-add-or-update.vue | 1 -
src/views/modules/custom/reportissue.vue | 10 +-
.../modules/heart/actinfo-add-or-update.vue | 25 ----
src/views/modules/heart/actinfo-pull.vue | 69 -----------
.../message/mail-template-add-or-update.vue | 57 ---------
.../modules/news/allnews-add-or-update.vue | 62 ----------
.../modules/news/allnotice-add-or-update.vue | 61 ---------
src/views/modules/news/news-add-or-update.vue | 62 ----------
src/views/modules/news/news-publish.vue | 69 -----------
.../modules/news/notice-add-or-update.vue | 62 ----------
12 files changed, 38 insertions(+), 592 deletions(-)
diff --git a/src/components/tinymce-editor/index.vue b/src/components/tinymce-editor/index.vue
index 29a2415..0b2a2c5 100644
--- a/src/components/tinymce-editor/index.vue
+++ b/src/components/tinymce-editor/index.vue
@@ -38,13 +38,13 @@ export default {
// skin_url: '/tinymce/skins/lightgray',
height: 400,
menu: {
- file: {title: '文件', items: 'newdocument'},
- edit: {title: '编辑', items: 'undo redo | cut copy paste pastetext | selectall'},
- insert: {title: '插入', items: 'image | inserttable'},
- view: {title: '查看', items: 'visualaid'},
- format: {title: '格式', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
- table: {title: '表格', items: 'inserttable tableprops deletetable | cell row column'},
- tools: {title: '工具', items: 'spellchecker code'}
+ file: { title: '文件', items: 'newdocument' },
+ edit: { title: '编辑', items: 'undo redo | cut copy paste pastetext | selectall' },
+ insert: { title: '插入', items: 'image | inserttable' },
+ view: { title: '查看', items: 'visualaid' },
+ format: { title: '格式', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat' },
+ table: { title: '表格', items: 'inserttable tableprops deletetable | cell row column' },
+ tools: { title: '工具', items: 'spellchecker code' }
},
menubar: 'edit insert format table',
plugins: 'powerpaste link lists image code table colorpicker textcolor wordcount contextmenu',
@@ -56,16 +56,15 @@ export default {
statusbar: false,
powerpaste_word_import: 'merge',
images_upload_handler: (blobInfo, success, failure) => {
- console.log('images_upload_handler')
- var form = new FormData();
- form.append('file', blobInfo.blob(), blobInfo.filename());
- axios.post(`${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}`, form).then(res => {
- if (res.data.code == 0 && res.data.msg == 'success') {
- success(res.data.data.url)
- } else {
- failure(res.data.msg)
- }
- })
+ var form = new FormData()
+ form.append('file', blobInfo.blob(), blobInfo.filename())
+ axios.post(`${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}`, form).then(res => {
+ if (res.data.code === 0 && res.data.msg === 'success') {
+ success(res.data.data.url)
+ } else {
+ failure(res.data.msg)
+ }
+ })
}
}
}
@@ -79,7 +78,7 @@ export default {
}
},
watch: {
- value: function(newVal) {
+ value: function (newVal) {
this.tinymceHtml = newVal
}
},
diff --git a/src/views/modules/case/typicalcase-add-or-update.vue b/src/views/modules/case/typicalcase-add-or-update.vue
index 49d34da..bc833e5 100644
--- a/src/views/modules/case/typicalcase-add-or-update.vue
+++ b/src/views/modules/case/typicalcase-add-or-update.vue
@@ -59,7 +59,7 @@
-
+
@@ -69,19 +69,6 @@
-
@@ -108,13 +95,8 @@