From 9d488e80a40322e3cf49f9d9608a97b1794a2525 Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 31 May 2024 11:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=93=E5=AE=B6=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/Auditing/index.vue | 920 ++++++++++-------- .../manage/components/questionopennew.vue | 377 +++++++ .../components/specialDiseaseNodeopen.vue | 121 ++- 3 files changed, 978 insertions(+), 440 deletions(-) create mode 100644 src/views/manage/components/questionopennew.vue diff --git a/src/views/manage/Auditing/index.vue b/src/views/manage/Auditing/index.vue index be70e0a..f818ff6 100644 --- a/src/views/manage/Auditing/index.vue +++ b/src/views/manage/Auditing/index.vue @@ -1,183 +1,275 @@ diff --git a/src/views/manage/components/questionopennew.vue b/src/views/manage/components/questionopennew.vue new file mode 100644 index 0000000..b152ec1 --- /dev/null +++ b/src/views/manage/components/questionopennew.vue @@ -0,0 +1,377 @@ + + + + \ No newline at end of file diff --git a/src/views/manage/components/specialDiseaseNodeopen.vue b/src/views/manage/components/specialDiseaseNodeopen.vue index e90981b..7cea178 100644 --- a/src/views/manage/components/specialDiseaseNodeopen.vue +++ b/src/views/manage/components/specialDiseaseNodeopen.vue @@ -146,7 +146,7 @@ > - - + -->
- + + + + +
+
+ 文章模板:{{ lookitemnew.propagandaTitle }} +
+
+
{{ lookitemnew.propagandaTitle }}
+
+ +
知识卡片
+
+ +
+
+
+
+
+ +
+
@@ -372,12 +402,17 @@ import miniProgram from '@/views/system/components/miniProgram.vue' import { selectTaskTypeList, taskPartitionList, taskStatusDictList, specialDiseaseNode, selectSpecialDiseasenew, updateRouteCheckStatus, getById } from '@/api/system/specialDiseaseNode' +import questionopennew from '../components/questionopennew.vue'; +import Editorxj from "../../system/Editorxj/index.vue"; + export default { - components: { wangeditor, question, propaganda, message, officialAccount, miniProgram }, + components: { wangeditor, question, propaganda, message, officialAccount, miniProgram, questionopennew, Editorxj }, props: ['lookitem'], name: "specialDiseaseNodeopen", data() { return { + show: false, + baseUrl: process.env.VUE_APP_BASE_API, dialogVisible: false, routeform: { routeCheckStatus: null, @@ -418,6 +453,7 @@ export default { itemindex: 0, listindex: 0, lists: [], + lookitemnew: {}, value: '', input: '', //任务类型 @@ -456,6 +492,7 @@ export default { this.lists = this.handleData(res.data, 'routeNodeDay', 'routeNodeName') getById(this.lists[0].list[0].id).then(res => { this.form = res.data + this.lookitemnew = res.data.detailInfo if (this.form.taskType) { this.changeTaskType(this.form.taskType, this.form.taskSubdivision) } @@ -523,22 +560,6 @@ export default { this.form.officialTemplateName = item.templateName this.form.officialRemindContent = item.templateContent }, - //暂存 - TemporaryStorage() { - this.$refs.wangeditor.emit() - this.updata.specialDiseaseNodeList = [] - this.lists.forEach(e => { - e.list.length > 0 ? e.list.forEach(el => { - el.routeNodeDay = e.routeNodeDay - el.routeNodeName = e.routeNodeName - this.updata.specialDiseaseNodeList.push(el) - }) : "" - }) - specialDiseaseNode(this.updata).then(res => { - this.info(); - this.$modal.msgSuccess("暂存成功!"); - }) - }, //问卷传值 questionontemplate(item) { this.form.templateId = item.templateId @@ -550,16 +571,20 @@ export default { this.form.templateName = item.templateName }, bottomclickevent(uitem, index, uindex, item) { - console.log(uitem, item) + // console.log(uitem, item) if (uitem.id) { getById(uitem.id).then(res => { this.form = res.data + if (res.data.detailInfo) { + this.lookitemnew = res.data.detailInfo + } else { + this.$refs.wangeditor.emit() + } if (this.form.taskType) { this.changeTaskType(this.form.taskType, this.form.taskSubdivision) } }) } - this.$refs.wangeditor.emit() // this.form = uitem this.listindex = index @@ -710,6 +735,48 @@ export default { background-color: #fff !important; cursor: default !important; } +.propaganda { + background: #fff; + .titletop { + font-size: 16px; + font-weight: 700; + margin-left: 30px; + } + .bodytop { + position: relative; + top: 20px; + // height: 500px; + // overflow: auto; + // border: 1px solid #e2e2e2; + + .titledata { + margin: 30px 0px 15px 30px; + top: 14px; + font-size: 20px; + } + + .audiotop { + margin: 10px 0px 10px 30px; + } + + img { + // width: 100%; + // width: 362px; + // height: 127px; + margin: 0px 0px 0px 30px; + } + + .know { + margin: 11px 0px 10px 30px; + font-size: 16px; + } + + .knowlist { + margin: 10px 0px 10px 30px; + font-size: 16px; + } + } +} .routeCheckStatus { position: absolute;