From a0404d86b54c0863eb303abf1a54d277234daf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 3 Apr 2024 14:17:19 +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/views/system/components/message.vue | 28 +- src/views/system/components/miniProgram.vue | 278 ++++++++++++++++++ .../system/components/officialAccount.vue | 278 ++++++++++++++++++ src/views/system/components/propaganda.vue | 10 +- src/views/system/components/question.vue | 10 +- src/views/system/specialDiseaseNode/index.vue | 64 ++-- 6 files changed, 610 insertions(+), 58 deletions(-) create mode 100644 src/views/system/components/miniProgram.vue create mode 100644 src/views/system/components/officialAccount.vue diff --git a/src/views/system/components/message.vue b/src/views/system/components/message.vue index 84903c4..bf83b1f 100644 --- a/src/views/system/components/message.vue +++ b/src/views/system/components/message.vue @@ -31,25 +31,19 @@ - - - - - - - 搜索 重置 - + @@ -107,14 +101,6 @@ export default { // pageNum: 1, // pageSize: 10, }, - optionstext: [{ - value: 'GROUNDING', - label: '上架' - }, - { - value: 'OFF_SHELF', - label: '下架' - }], options: [{ value: 'WATER_DROPLET_PLATFORM', label: '水滴平台' @@ -167,12 +153,12 @@ export default { nohandleselect() { this.handleselectId = '' this.handleselectName = '' - this.$emit("on-template", { templateId: '', templateName: '' }); + this.$emit("on-template", { templateId: '', templateName: '', templateContent: "" }); }, handleselect(item) { this.handleselectId = item.textMessageId this.handleselectName = item.textMessageName - this.$emit("on-template", { templateId: item.textMessageId, templateName: item.textMessageName }); + this.$emit("on-template", { templateId: item.textMessageId, templateName: item.textMessageName, templateContent: item.templateContent }); this.classificationOpen = false }, classificationOpenfalse() { @@ -256,14 +242,14 @@ export default { width: 100%; height: 50px; border-bottom: 1px solid #dcdfe6; + position: relative; .count { display: inline-block; - position: relative; - // right: -172px; + position: absolute; left: 210px; color: #a4a6aa; - top: -35px; + top: 10px; font-size: 13px; } diff --git a/src/views/system/components/miniProgram.vue b/src/views/system/components/miniProgram.vue new file mode 100644 index 0000000..28221e5 --- /dev/null +++ b/src/views/system/components/miniProgram.vue @@ -0,0 +1,278 @@ + + + {{ handleselectName ? handleselectName : + '选择公众号模板' }} + + + + + + 科室名称 + + + + + + 全部 + + {{ count }} + + + + {{ item.departmentName }} + + {{ item.countNum }} + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + {{ scope.row.templateSource == "WE_CHAT_APPLET" ? "小程序" : "" }} + {{ scope.row.templateSource == "WE_CHAT_OFFICIAL_ACCOUNT" ? "公众号" : "" }} + + + + + + + 选择 + 取消选择 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/components/officialAccount.vue b/src/views/system/components/officialAccount.vue new file mode 100644 index 0000000..7dd82cb --- /dev/null +++ b/src/views/system/components/officialAccount.vue @@ -0,0 +1,278 @@ + + + {{ handleselectName ? handleselectName : + '选择公众号模板' }} + + + + + + 科室名称 + + + + + + 全部 + + {{ count }} + + + + {{ item.departmentName }} + + {{ item.countNum }} + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + {{ scope.row.templateSource == "WE_CHAT_APPLET" ? "小程序" : "" }} + {{ scope.row.templateSource == "WE_CHAT_OFFICIAL_ACCOUNT" ? "公众号" : "" }} + + + + + + + 选择 + 取消选择 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/components/propaganda.vue b/src/views/system/components/propaganda.vue index 13e4f80..2d173c7 100644 --- a/src/views/system/components/propaganda.vue +++ b/src/views/system/components/propaganda.vue @@ -50,7 +50,7 @@ 重置 - + 选择 + v-if="handleselectId != scope.row.propagandaCode">选择 取消选择 + v-if="handleselectId == scope.row.propagandaCode">取消选择 @@ -197,9 +197,9 @@ export default { this.$emit("on-template", { templateId: '', templateName: '' }); }, handleselect(item) { - this.handleselectId = item.id + this.handleselectId = item.propagandaCode this.handleselectName = item.propagandaTitle - this.$emit("on-template", { templateId: item.id, templateName: item.propagandaTitle }); + this.$emit("on-template", { templateId: item.propagandaCode, templateName: item.propagandaTitle }); this.classificationOpen = false }, classificationOpenfalse() { diff --git a/src/views/system/components/question.vue b/src/views/system/components/question.vue index 1c1d771..42221e8 100644 --- a/src/views/system/components/question.vue +++ b/src/views/system/components/question.vue @@ -40,7 +40,7 @@ 重置 - + @@ -57,9 +57,9 @@ 选择 + v-if="handleselectId != scope.row.questionnaireId">选择 取消选择 + v-if="handleselectId == scope.row.questionnaireId">取消选择 @@ -129,9 +129,9 @@ export default { this.$emit("on-template", { templateId: '', templateName: '' }); }, handleselect(item) { - this.handleselectId = item.id + this.handleselectId = item.questionnaireId this.handleselectName = item.questionnaireName - this.$emit("on-template", { templateId: item.id, templateName: item.questionnaireName }); + this.$emit("on-template", { templateId: item.questionnaireId, templateName: item.questionnaireName }); this.classificationOpen = false }, classificationOpenfalse() { diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index ffef335..1535ccd 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -87,20 +87,17 @@ :picker-options="{ start: '08:30', step: '00:30', end: '18:30' }" placeholder="选择时间"> - - - - - + - + - + @@ -111,7 +108,7 @@ 模板: - + 短信预览: - - 【医生小助手】医生提醒:- - - + @@ -140,15 +134,11 @@ 模板: - - - - + - + @@ -156,7 +146,7 @@ 提醒内容: - @@ -171,15 +161,11 @@ 模板: - - - - + - + @@ -262,7 +248,6 @@ --> - @@ -278,11 +263,13 @@ import wangeditor from '../components/wangEditor.vue' import question from '../components/question.vue' import message from '../components/message.vue' import propaganda from '../components/propaganda.vue' +import officialAccount from '../components/officialAccount.vue' +import miniProgram from '../components/miniProgram.vue' import { selectTaskTypeList, taskPartitionList, taskStatusDictList } from '@/api/system/specialDiseaseNode' export default { - components: { wangeditor, question, propaganda, message }, + components: { wangeditor, question, propaganda, message, officialAccount, miniProgram }, name: "specialDiseaseNode", data() { return { @@ -300,6 +287,10 @@ export default { taskStatus: '', secondClassifyDescribe: '', executionTime: '', + appletPushSign: '0', + officialPushSign: '0', + messagePushSign: '0', + taskSubdivisiontemplateType: '', }, itemindex: 0, listindex: 0, @@ -345,6 +336,24 @@ export default { this.form = this.lists[0].list[0] }, methods: { + //小程序传值 + miniProgramtemplate(item) { + this.form.appletTemplateId = item.templateId + this.form.appletTemplateName = item.templateName + this.form.appletRemindContent = item.templateContent + }, + //短信传值 + messageontemplate(item) { + this.form.messageTemplateId = item.templateId + this.form.messageTemplateName = item.templateName + this.form.messagePreview = item.templateContent + }, + //公众号传值 + officialAccountontemplate() { + this.form.officialTemplateId = item.templateId + this.form.officialTemplateName = item.templateName + this.form.officialRemindContent = item.templateContent + }, //暂存 TemporaryStorage() { console.log(this.lists) @@ -395,6 +404,7 @@ export default { this.taskPartitionList.forEach(el => { if (e == el.id) { this.form.taskSubdivisionName = el.taskTypeName + this.form.taskSubdivisiontemplateType = el.templateType } }) },