From 41c2078b5aa942034e2169827dba7b10151df818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Mon, 1 Jul 2024 11:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/index.vue | 30 +- .../system/ManageNodeInformation/index.vue | 686 ++++-------------- .../system/ManageNodeInformation/indexjs.js | 5 +- src/views/system/components/wangEditor.vue | 13 +- 4 files changed, 186 insertions(+), 548 deletions(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 20c4b55..30a08cb 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,23 +1,15 @@ @@ -799,11 +420,13 @@ export default indexjs; background-color: #fff !important; color: #606266 !important; } + ::v-deep.el-form-item--medium .el-form-item__content { line-height: 36px; height: 40px; overflow: hidden; } + .el-icon-arrow-down { margin-left: 50px; font-size: 14px; @@ -851,7 +474,7 @@ export default indexjs; } .dialog-footer { - padding: 4px 20px 0 30px; + padding: 4px 20px 0 30px; text-align: right; } @@ -986,6 +609,7 @@ export default indexjs; .titlement { display: flex; margin-left: 100px; + // height: 15vh; .select { font-weight: 550; @@ -1002,9 +626,11 @@ export default indexjs; } } } + .title { display: flex; margin-left: 100px; + // height: 6vh; .select { font-weight: 550; @@ -1021,6 +647,7 @@ export default indexjs; } } } + // .container { // padding: 20px; // } @@ -1063,6 +690,7 @@ export default indexjs; background-color: #fff; } } + .list { margin: 6px auto; width: 100%; diff --git a/src/views/system/ManageNodeInformation/indexjs.js b/src/views/system/ManageNodeInformation/indexjs.js index d4cd811..e8443d4 100644 --- a/src/views/system/ManageNodeInformation/indexjs.js +++ b/src/views/system/ManageNodeInformation/indexjs.js @@ -590,15 +590,12 @@ export default { }, //wangeditor传值 onNodeContent(item) { - console.log(item,'ien') if (item.nodeContent) { this.form.nodeContent = item.nodeContent; var abc = new RegExp("
", "g"); var bbb = this.form.nodeContent.replace(abc, ""); this.form.nodeContent = bbb; - console.log(this.form.nodeContent, 'this.form.nodeContent') } - }, //小程序传值 miniProgramtemplate(item) { @@ -703,7 +700,7 @@ export default { bottomclickevent(uitem, index, uindex) { if ( this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && - this.form.taskSubdivisiontemplateType != "PROPAGANDA"&& + this.form.taskSubdivisiontemplateType != "PROPAGANDA" && this.form.taskSubdivisiontemplateType != 'SCRIPT' ) { this.$refs.wangeditor.emit(); diff --git a/src/views/system/components/wangEditor.vue b/src/views/system/components/wangEditor.vue index 4667175..9d57624 100644 --- a/src/views/system/components/wangEditor.vue +++ b/src/views/system/components/wangEditor.vue @@ -322,7 +322,18 @@ export default { }, }, mounted() { - this.html = this.nodeContent; + if (this.nodeContent) { + const loading = this.$loading({ + lock: true, + text: "富文本加载中", + spinner: "el-icon-loading", + background: "rgba(0, 0, 0, 0.7)", + }); + setTimeout(() => { + this.html = this.nodeContent; + loading.close(); + }, 1000); + } }, beforeDestroy() { const editor = this.editor;