From 26327925677cf5bb3d131ed9da2fc0dbd2153234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 9 Jul 2024 16:52:38 +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/components/DepartmentList.vue | 26 +- src/views/system/components/message.vue | 268 ++++------------- src/views/system/components/miniProgram.vue | 260 ++++------------ .../system/components/officialAccount.vue | 99 ++---- src/views/system/components/propaganda.vue | 281 ++++-------------- src/views/system/components/question.vue | 16 +- src/views/system/components/script.vue | 272 ++++------------- src/views/system/components/wangEditor.vue | 127 +++----- 8 files changed, 304 insertions(+), 1045 deletions(-) diff --git a/src/views/components/DepartmentList.vue b/src/views/components/DepartmentList.vue index 7f4cc2d..807bee9 100644 --- a/src/views/components/DepartmentList.vue +++ b/src/views/components/DepartmentList.vue @@ -26,7 +26,7 @@ {{ item.countNum }} - +
@@ -69,10 +69,11 @@ import { selectDiseaseCount } from "@/api/system/specialDiseaseRoute"; export default { - props: ['methods'], + props: ['methods', 'modal'], name: "DepartmentList", data() { return { + vmodal: false, roleKey: localStorage.getItem('roleKey'), open: false, switchvalue: true, @@ -99,6 +100,9 @@ export default { this.querydepartmen.departmentName = val this.Departmentlist(); }, + modal(val) { + this.vmodal = val + }, }, created() { this.querydepartmen.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId @@ -182,16 +186,34 @@ export default { method = listOperationNum(this.querydepartmen) } else if (this.methods == 'listScriptNum') { method = listScriptNum(this.querydepartmen) + } else if (this.methods == 'listScriptNumtwo') { + this.querydepartmen.scriptStatus = "NORMAL"; + method = listScriptNum(this.querydepartmen) } else if (this.methods == 'listWechatTemplateNum') { method = listWechatTemplateNum(this.querydepartmen) + } else if (this.methods == 'listWechatTemplateNumtwo') { + this.querydepartmen.templateSource = "WE_CHAT_OFFICIAL_ACCOUNT" + method = listWechatTemplateNum(this.querydepartmen) + } else if (this.methods == 'listWechatTemplateNumthree') { + this.querydepartmen.templateSource = "WE_CHAT_APPLET"; + method = listWechatTemplateNum(this.querydepartmen) } else if (this.methods == 'listMessageNum') { method = listMessageNum(this.querydepartmen) + } else if (this.methods == 'listMessageNumtwo') { + this.querydepartmen.textMessageStatus = "GROUNDING"; + method = listMessageNum(this.querydepartmen) } else if (this.methods == 'selectNumByDept') { method = selectNumByDept(this.querydepartmen) + } else if (this.methods == 'selectNumByDepttwo') { + this.querydepartmen.propagandaStatus = "APPROVED"; + method = selectNumByDept(this.querydepartmen) } else if (this.methods == 'listServicePackageNum') { method = listServicePackageNum(this.querydepartmen) } else if (this.methods == 'getDepartmentList') { method = getDepartmentList(this.querydepartmen) + } else if (this.methods == 'getDepartmentListtwo') { + this.querydepartmen.questionnaireStatus = "PUBLISHED" + method = getDepartmentList(this.querydepartmen) } else if (this.methods == 'selectDiseaseCount') { method = selectDiseaseCount(this.querydepartmen) } diff --git a/src/views/system/components/message.vue b/src/views/system/components/message.vue index 8a203bb..7a5cf7c 100644 --- a/src/views/system/components/message.vue +++ b/src/views/system/components/message.vue @@ -1,195 +1,68 @@ @@ -205,8 +78,11 @@ import { } from "@/api/manage/message"; import { typelist } from "@/api/manage/template"; import { department, listDisease } from "@/api/manage/script"; - +import DepartmentList from '../../components/DepartmentList.vue' export default { + components: { + DepartmentList + }, props: ["templateId", "templateName"], name: "Template", data() { @@ -214,25 +90,6 @@ export default { handleselectName: "", handleselectId: "", classificationOpen: false, - itemname: null, - departmentName: null, - diseaseTypeName: null, - name: "", - departmentId: null, - count: "", //全部 - DepartmentoList: [], //左侧数组 - // 左侧传值 - querydepartmen: { - departmentName: "", - // pageNum: 1, - // pageSize: 10, - }, - options: [ - { - value: "WATER_DROPLET_PLATFORM", - label: "水滴平台", - }, - ], // 遮罩层 loading: false, // 选中数组 @@ -263,14 +120,9 @@ export default { textMessageSort: null, textMessageRemark: null, }, - // 表单参数 - form: {}, }; }, watch: { - name(val) { - this.querydepartmen.departmentName = val; - }, templateId(newValue, oldValue) { this.handleselectId = newValue; }, @@ -283,9 +135,20 @@ export default { this.handleselectName = this.templateName; }, created() { - this.getList(); + // this.getList(); }, methods: { + //接收科室列表传值 + clickdepartment(item) { + this.queryParams.hospitalAgencyId = item.hospitalAgencyId + this.queryParams.hospitalAgencyName = item.hospitalAgencyName + this.queryParams.departmentId = item.itemid + this.queryParams.departmentName = item.itemName + if (item.hospitalAgencyId) { + this.getList(); + } + this.$forceUpdate() + }, nohandleselect() { this.handleselectId = ""; this.handleselectName = ""; @@ -296,7 +159,6 @@ export default { }); }, handleselect(item) { - console.log(item.id, "id"); this.handleselectId = item.id; this.handleselectName = item.textMessageName; this.$emit("on-template", { @@ -319,36 +181,6 @@ export default { this.loading = false; }); }, - // 左侧科室列表 - Departmentlist() { - this.loading = true; - this.querydepartmen.textMessageStatus = "GROUNDING"; - listMessageNum(this.querydepartmen).then((response) => { - this.DepartmentoList = response.data; - let sum = 0; - this.DepartmentoList.forEach((item) => { - if (item.countNum != null) { - sum += item.countNum; - } - this.count = sum; - }); - this.loading = false; - }); - }, - // 左侧科室 - itemdata(item) { - if (item) { - this.itemname = item.id; - this.departmentName = item.departmentName; - this.loading = true; - this.queryParams.departmentId = item.id; - this.getList(); - } else { - this.queryParams.departmentId = ""; - this.itemname = null; - this.getList(); - } - }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; @@ -356,6 +188,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + this.$refs.DepartmentList.resetQuery() this.queryParams.departmentId = null; this.itemname = null; this.resetForm("queryForm"); @@ -365,7 +198,6 @@ export default { }; +// } // ::v-deep .el-textarea__inner { // color: black !important; // background-color: #fff !important;