From 68c5dce21cdedd3c18158fb1a03fb8279341c8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 9 Jul 2024 15:31:13 +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 --- .../system/components/officialAccount.vue | 6 +- src/views/system/components/question.vue | 270 ++-------- src/views/system/question/index.vue | 1 + src/views/system/specialDiseaseNode/index.vue | 507 +++++------------- 4 files changed, 181 insertions(+), 603 deletions(-) diff --git a/src/views/system/components/officialAccount.vue b/src/views/system/components/officialAccount.vue index d70efa5..40b92a1 100644 --- a/src/views/system/components/officialAccount.vue +++ b/src/views/system/components/officialAccount.vue @@ -3,8 +3,8 @@ {{ handleselectName ? handleselectName : - '选择公众号模板' }} - + @@ -147,7 +147,6 @@ export default { watch: { name(val) { this.querydepartmen.departmentName = val - this.Departmentlist(); }, templateId(newValue, oldValue) { this.handleselectId = newValue; @@ -162,7 +161,6 @@ export default { }, created() { this.getList(); - this.Departmentlist(); }, methods: { classificationOpenfalse() { diff --git a/src/views/system/components/question.vue b/src/views/system/components/question.vue index 4fb8be1..505109b 100644 --- a/src/views/system/components/question.vue +++ b/src/views/system/components/question.vue @@ -1,184 +1,70 @@ - {{ handleselectName ? handleselectName : "选择问卷模板" }} - + " :style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName : "选择问卷模板" + }} + - - 科室名称 - - - - - - {{ item.departmentName }} - - {{ item.countNum }} - - + + - + - + - + - 搜索 - 重置 + 搜索 + 重置 - - - - - - + + + + + + - + - - + + - 预览 - 选择 - 取消选择 + 预览 + 选择 + 取消选择 - + - + @@ -198,13 +84,14 @@ import { } from "@/api/system/question"; import questionopennew from "./questionopennew.vue"; import { questionname } from "@/api/system/taskExecuteRecord"; +import DepartmentList from '../../components/DepartmentList.vue' export default { name: "Question", props: ["templateId", "templateName"], components: { questionopennew, + DepartmentList }, - data() { return { showquestion: false, @@ -215,8 +102,6 @@ export default { children: "children", label: "label", }, - // 部门树选项 - deptOptions: undefined, // 遮罩层 loading: true, // 总条数 @@ -240,14 +125,9 @@ export default { }; }, watch: { - // 根据名称筛选部门树 - departmentName(val) { - // this.getTreeselect() - }, }, created() { - this.getTreeselect(); - this.getList(); + // this.getList(); }, mounted() { this.handleselectId = this.templateId; @@ -262,12 +142,20 @@ export default { }, }, methods: { + //接收科室列表传值 + clickdepartment(item) { + this.queryParams.hospitalAgencyId = item.hospitalAgencyId + this.queryParams.hospitalAgencyName = item.hospitalAgencyName + this.queryParams.departmentId = item.itemid + this.departmentName = item.itemName + if (item.hospitalAgencyId) { + this.getList(); + } + this.$forceUpdate() + }, handlesee(row) { - console.log(row, "row"); - this.showquestion = true; questionname(row.id).then((res) => { - // console.log(res, "res"); this.lookitemnew = res.data; }); }, @@ -291,7 +179,6 @@ export default { lookitemnew: res.data, }); }); - this.classificationOpen = false; }, classificationOpenfalse() { @@ -302,25 +189,6 @@ export default { this.queryParams.departmentId = data.id; this.handleQuery(); }, - // 筛选节点 - filterNode(value, data) { - if (!value) return true; - return data.label.indexOf(value) !== -1; - }, - /** 查询科室下拉树结构 */ - getTreeselect() { - getDepartmentList({ - departmentName: this.departmentName, - questionnaireStatus: "PUBLISHED", - // questionType: "REGULAR_QUESTIONNAIRE", - }).then((response) => { - // console.log('0000000000') - // response.data.forEach(e => { - // e.label = e.departmentName - // }) - this.deptOptions = response.data; - }); - }, /** 查询问卷基本信息列表 */ getList() { this.loading = true; @@ -339,6 +207,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + this.$refs.DepartmentList.resetQuery() this.resetForm("queryForm"); this.handleQuery(); }, @@ -349,6 +218,7 @@ export default { ::v-deep .el-dialog__body { padding-bottom: 60px; } + .righttextarea { // height: 200px; padding: 10px; @@ -357,51 +227,11 @@ export default { border: 1.5px solid #c7c7c7; border-radius: 5px; } + .app-container { padding: 0 !important; display: inline-block; // background: red; height: 42px; } - -.left { - height: 500px; - overflow: auto; - - .name { - font-weight: 700; - margin-bottom: 10px; - } - - .listitem { - width: 100%; - height: 50px; - border-bottom: 1px solid #dcdfe6; - position: relative; - - .count { - display: inline-block; - position: absolute; - left: 210px; - color: #a4a6aa; - top: 50%; - transform: translateY(-50%); - font-size: 13px; - } - - .all { - height: 50px; - line-height: 50px; - padding-left: 13px; - } - - .allactive { - background: #e8f4ff; - height: 50px; - line-height: 50px; - padding-left: 13px; - border-left: 3px solid #4d9de7; - } - } -} \ No newline at end of file diff --git a/src/views/system/question/index.vue b/src/views/system/question/index.vue index 944f72b..fa7dd1c 100644 --- a/src/views/system/question/index.vue +++ b/src/views/system/question/index.vue @@ -272,6 +272,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + this.$refs.DepartmentList.resetQuery() this.resetForm("queryForm"); this.handleQuery(); }, diff --git a/src/views/system/specialDiseaseNode/index.vue b/src/views/system/specialDiseaseNode/index.vue index 3caa381..dc13ecf 100644 --- a/src/views/system/specialDiseaseNode/index.vue +++ b/src/views/system/specialDiseaseNode/index.vue @@ -8,20 +8,8 @@ 适用范围 - - + + @@ -33,59 +21,30 @@ - + - - + + - + 天 - + - + :class="listindex == index && itemindex == uindex ? 'cards' : ''"> {{ uitem.taskTypeName }} - 已审核 - 不同意 - 未审核 + 已审核 + 不同意 + 未审核 {{ uitem.taskSubdivisionName }} @@ -95,118 +54,59 @@ - - + + - - + + - + - + - + - - + + - + 预览 - - + + - + 预览 - - + + 文章模板:{{ formview.propagandaTitle }} {{ formview.propagandaTitle }} @@ -215,53 +115,31 @@ 知识卡片 - + - 关闭 + 关闭 - + - 关闭 + 关闭 - + - + 推送方式: @@ -269,19 +147,11 @@ 模板: - + - + @@ -290,10 +160,7 @@ --> - + 推送方式: @@ -302,21 +169,13 @@ 模板: - + - + @@ -325,10 +184,7 @@ --> - + 推送方式: @@ -337,21 +193,13 @@ 模板: - + - + @@ -364,19 +212,12 @@ --> - + 推送方式: - + 人工电话 自动外呼 @@ -386,54 +227,30 @@ 话术模板: - - + + - + - + 预览 - + 问卷模板: - + - + - + 预览 @@ -451,16 +268,9 @@ 重播次数: - - + + @@ -468,11 +278,8 @@ 时间间隔(分): - + - - + + - 关闭 + 关闭 - + - 关闭 + 关闭 @@ -555,41 +330,18 @@ - - + + - 同意 - 不同意 + 同意 + 不同意 - + @@ -611,7 +363,6 @@ import wangeditor from "../components/wangEditor.vue"; import question from "../components/question.vue"; import message from "../components/message.vue"; import scripts from "../components/script.vue"; - import propaganda from "../components/propaganda.vue"; import officialAccount from "../components/officialAccount.vue"; import miniProgram from "../components/miniProgram.vue"; @@ -738,7 +489,7 @@ export default { // phoneTemplateId }, }, - mounted() {}, + mounted() { }, methods: { // 问卷库模板选择 looklist() { @@ -800,7 +551,7 @@ export default { changelisy() { list(this.parentDictCode).then((res) => { this.parentDictCodelist = res.rows; - console.log( this.parentDictCodelist,' this.parentDictCodelist') + console.log(this.parentDictCodelist, ' this.parentDictCodelist') }); }, @@ -968,7 +719,7 @@ export default { wangeditorlist.push(item); // console.log(wangeditorlist, 'wangeditorlist') localStorage.setItem("wangeditorlist", JSON.stringify(wangeditorlist)); - + }, //小程序传值 miniProgramtemplate(item) { @@ -1028,25 +779,25 @@ export default { this.lists.forEach((e) => { e.list.length > 0 ? e.list.forEach((el) => { - el.routeNodeDay = e.routeNodeDay; - el.routeNodeName = e.routeNodeName; - if (el.phoneDialMethod == "COMMON" && el.templateId) { - el.phonePushSign = "1"; + el.routeNodeDay = e.routeNodeDay; + el.routeNodeName = e.routeNodeName; + if (el.phoneDialMethod == "COMMON" && el.templateId) { + el.phonePushSign = "1"; - el.templateType = "QUESTIONNAIRE"; - } else if ( - el.phoneDialMethod == "COMMON" && - el.phoneTemplateId - ) { - el.phonePushSign = "1"; + el.templateType = "QUESTIONNAIRE"; + } else if ( + el.phoneDialMethod == "COMMON" && + el.phoneTemplateId + ) { + el.phonePushSign = "1"; - el.templateType = "SCRIPT"; - } else if (el.phoneDialMethod == "AI" && el.phoneTemplateId) { - el.templateType = "SCRIPT"; - el.phonePushSign = "1"; - } - this.updata.specialDiseaseNodeList.push(el); - }) + el.templateType = "SCRIPT"; + } else if (el.phoneDialMethod == "AI" && el.phoneTemplateId) { + el.templateType = "SCRIPT"; + el.phonePushSign = "1"; + } + this.updata.specialDiseaseNodeList.push(el); + }) : ""; }); // this.updata.specialDiseaseNodeList = @@ -1145,7 +896,7 @@ export default { } this.form = uitem; setTimeout(() => { - loading.close(); + loading.close(); }, 1200); }, handleStep() { @@ -1365,10 +1116,6 @@ export default { - -
{{ uitem.taskSubdivisionName }}