From 354dbeb91adee55d0fcb5e39a7b8d0d246da8d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 21 Jun 2024 10:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManageNodeInformation/index.vue | 596 ++++++++++++++---- .../system/editorialSpecialization/index.vue | 112 ++-- 2 files changed, 520 insertions(+), 188 deletions(-) diff --git a/src/views/system/ManageNodeInformation/index.vue b/src/views/system/ManageNodeInformation/index.vue index 13d95f9..6cafebf 100644 --- a/src/views/system/ManageNodeInformation/index.vue +++ b/src/views/system/ManageNodeInformation/index.vue @@ -7,23 +7,50 @@
- - + + - - + + - - + +
-
+
- - + +
- - + + - - + + - - + +
@@ -95,15 +160,29 @@
适用范围 - - + +
编辑 - 展开 + 展开 关闭
-
+
推送方式: @@ -231,13 +403,21 @@
模板: - +
- +
@@ -251,7 +431,10 @@ >
-->
-
+
推送方式: @@ -260,13 +443,21 @@
模板: - +
- +
@@ -289,7 +480,11 @@ >
-->
-
+
推送方式: @@ -297,11 +492,19 @@
模板: - +
- +
@@ -309,9 +512,16 @@
重播次数: - - + + @@ -319,8 +529,11 @@
时间间隔: - + - - + + + - - + +
-
-
+
+
- - + +
- - + + - - + + - - + + - + - 添加属性 + 添加属性
@@ -414,14 +713,33 @@
- - + + - 同意 - 不同意 + 同意 + 不同意 - + @@ -432,9 +750,13 @@
@@ -593,7 +915,7 @@ export default { this.infolistMESSAGE(); this.infolistword(); }, - beforeDestroy() { }, + beforeDestroy() {}, watch: { "form.phoneMessageRemind": { handler(newValue, oldValue) { @@ -637,7 +959,6 @@ export default { e.routeId = this.$route.query.id; e.routeName = this.$route.query.routeName; }); - triggerCondition(this.openlist).then((res) => { loading.close(); this.$notify({ @@ -885,6 +1206,7 @@ export default { changetriggerLogic(e, index) { this.openlist.triggerConditionList[index].triggerConditionOperatorName = this.optionstriggerConditionOperator.find((el) => el.value == e).label; + this.openlist.triggerConditionList[index].triggerConditionValue = null; }, // 诊断 changetriggerConditionName(e, index) { @@ -915,6 +1237,7 @@ export default { if (res.data.length == 1) { this.updata = res.data[0]; + // this.$set(this.openlist, "triggerConditionName", this.$route.query.suitRange); } else { this.updata = res.data[0]; res.data.splice(0, 1); @@ -973,6 +1296,7 @@ export default { this.form.officialTemplateName = item.templateName; this.form.officialRemindContent = item.templateContent; }, + // 暂存 TemporaryStorage() { if ( this.form.taskSubdivisiontemplateType != "QUESTIONNAIRE" && @@ -998,10 +1322,10 @@ export default { this.lists.forEach((e) => { e.list.length > 0 ? e.list.forEach((el) => { - el.routeNodeDay = e.routeNodeDay; - el.routeNodeName = e.routeNodeName; - this.itemlist.specialDiseaseNodeList.push(el); - }) + el.routeNodeDay = e.routeNodeDay; + el.routeNodeName = e.routeNodeName; + this.itemlist.specialDiseaseNodeList.push(el); + }) : ""; }); // this.updata.specialDiseaseNodeList = @@ -1163,7 +1487,7 @@ export default { }, // 添加节点 additem(item) { - console.log(item) + console.log(item); item.list.push({ nodeContent: "

", templateId: "", @@ -1358,7 +1682,7 @@ export default { .routeCheckStatus { position: absolute; right: 10px; - top: 73px; + top: 30px; } .topform { diff --git a/src/views/system/editorialSpecialization/index.vue b/src/views/system/editorialSpecialization/index.vue index 8317d79..1f6cfb1 100644 --- a/src/views/system/editorialSpecialization/index.vue +++ b/src/views/system/editorialSpecialization/index.vue @@ -47,10 +47,10 @@ multiple > @@ -90,13 +90,13 @@
触发条件 - {{ item.routeName }} + {{ uitem.routeName }} - - + +
@@ -166,10 +166,10 @@ style="width: 200px" > @@ -193,10 +193,10 @@ @change="changetriggerLogicsname($event, index)" > @@ -207,10 +207,10 @@ @change="changetriggerConditionName($event, index)" > - - + - + 确 定 取 消
- + -->
@@ -468,6 +462,8 @@ export default { // console.log(e,index,'index') this.updata.triggerConditionList[index].triggerConditionOperatorName = this.optionstriggerConditionOperator.find((el) => el.value == e).label; + this.updata.triggerConditionList[index].triggerConditionValue = null; + // console.log( this.updata.triggerConditionList[index].triggerConditionOperatorName,"this.updata.triggerConditionList[index].triggerConditionOperatorName"); }, // 诊断 @@ -475,6 +471,8 @@ export default { // console.log(e,index, "eeeeeeeee"); this.updata.triggerConditionList[index].triggerConditionName = this.optionsname.find((el) => el.value == e).label; + this.updata.triggerConditionList[index].triggerConditionOperator = null; + this.updata.triggerConditionList[index].triggerConditionValue = null; // console.log(this.updata.triggerConditionList[index].triggerConditionName, " this.form.triggerConditionName"); }, changeoptions() {}, @@ -508,9 +506,19 @@ export default { info() { getById(this.$route.query.id).then((res) => { this.list = res.data; - console.log(this.list, "this.list"); - this.list.percentage = - (this.list.agreeNumber / this.list.totalNumber) * 100; + if (this.list.totalNumber == 0) { + this.list.percentage = 0; + } else { + this.list.percentage = + (this.list.agreeNumber / this.list.totalNumber) * 100; + } + this.list.childrenRouteList.forEach((e) => { + if (e.totalNumber == 0) { + e.percentage = 0; + } else { + e.percentage = (e.agreeNumber / e.totalNumber) * 100; + } + }); res.data.routePackageList?.forEach((e) => { e.servicePackageId ? this.form.servicePackageId.push(e.servicePackageId) @@ -698,14 +706,14 @@ export default { }); }, //触发条件修改详情 - triggerConditionedit(item) { - console.log(item, "item"); + triggerConditionedit(uitem) { + console.log(uitem, "uitem"); this.$router.push({ path: "/specialdisease/ManageNodeInformation", query: { - suitRange: item.suitRange, - id: item.specialDiseaseRouteId, - routeName: item.routeName, + suitRange: uitem.suitRange, + id: uitem.specialDiseaseRouteId, + routeName: uitem.routeName, }, }); // const loading = this.$loading({ @@ -725,14 +733,14 @@ export default { // }); }, //删除触发条件 - deltriggerCondition(item) { - console.log(item, "item"); + deltriggerCondition(uitem) { + console.log(uitem, "uitem"); this.$confirm("确定删除此触发条件吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", }).then(() => { - triggerConditiondel([item.specialDiseaseRouteId]).then((res) => { + triggerConditiondel([uitem.specialDiseaseRouteId]).then((res) => { this.$notify({ type: "success", title: "提示",