From 021f489555f796e1241cc9078648e5913566b2ad Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 31 十月 2024 17:40:38 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionnaire/compilequer/index.vue | 60 ++++++++++++++++++++++++++++++++++++++----------------------
1 files changed, 38 insertions(+), 22 deletions(-)
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index a2e96e7..6e47417 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -280,7 +280,7 @@
size="medium"
multiple
filterable
- placeholder="璇烽�夋嫨绉戝"
+ placeholder="璇烽�夋嫨鐥呭尯"
>
<el-option
class="ruleFormaa"
@@ -1435,6 +1435,7 @@
this.ruleForm.svyLibTemplateTagList.filter(
(item) => item.isoperation != 3
);
+ if (this.ruleForm.suitway)
this.ruleForm.suitway = this.ruleForm.suitway.split(",");
this.delScriptVOList = [];
this.tempDetpRelevanceslistform = [];
@@ -1455,8 +1456,6 @@
this.appraiselist = store.getters.appraiselist;
this.belongWards = store.getters.belongWards;
this.belongDepts = store.getters.belongDepts;
- console.log(this.belongWards, "belongWards");
- console.log(this.belongDepts, "belongDepts");
// this.test();
},
@@ -1518,7 +1517,9 @@
this.dynamicTags = this.ruleForm.svyLibTemplateTagList.map(
this.processElement
);
- this.ruleForm.suitway = this.ruleForm.suitway.split(",");
+ console.log(this.dynamicTags, "this.dynamicTags");
+ if (this.ruleForm.suitway)
+ this.ruleForm.suitway = this.ruleForm.suitway.split(",");
});
getillness({ outid: this.id, type: 5 }).then((res) => {
this.illnesslist = res.rows;
@@ -1560,6 +1561,24 @@
if (!this.ruleForm.categoryid) {
this.ruleForm.categoryid = -1;
}
+ // 棰樼洰淇濆瓨澶勭悊
+ // 鎻愪氦
+ this.ruleForm.svyTemplateLibScripts.forEach((res) => {
+ if (!res.isoperation) {
+ res.isoperation = 2;
+ }
+ res.ivrLibaScriptTargetoptionList =
+ res.svyLibTemplateTargetoptions.map((item) => {
+ if (!item.isoperation) {
+ item.isoperation = 2;
+ item.templateID = this.ruleForm.id;
+ }
+ return item;
+ });
+ });
+ this.delScriptVOList.forEach((item)=>{
+ this.ruleForm.svyTemplateLibScripts.push(item)
+ })
if (this.id) {
this.ruleForm.isoperation = 2;
this.ruleForm.tempDetpRelevances = null;
@@ -1568,7 +1587,8 @@
this.confirmillness();
this.putbelongDepts();
this.$modal.closeLoading();
- this.$router.go(-1);
+ // this.$router.go(-1);
+ window.location.reload();
});
} else {
this.ruleForm.isoperation = 1;
@@ -1587,9 +1607,6 @@
},
// 绉戝/闄㈠尯澶勭悊
Departmenttreatment() {
- console.log(this.tempDetpRelevanceslist, "tempDetpRelevanceslist");
- console.log(this.deptlist, "deptlist");
- console.log(this.hosplist, "deptlist");
this.tempDetpRelevanceslist.forEach((item) => {
console.log(item);
let result = this.deptlist.some((obj) => obj.deptCode == item);
@@ -1607,9 +1624,6 @@
});
this.tempbelongWards.forEach((item) => {
let result = this.hosplist.some((obj) => obj.deptCode == item);
-
- console.log(this.result, "resulthhh");
-
if (!result) {
this.tempbelongWardsform.push({
deptType: 2,
@@ -1620,11 +1634,6 @@
});
}
});
- console.log(this.tempbelongWardsform, "tempbelongWardsform");
- console.log(
- this.tempDetpRelevanceslistform,
- "tempDetpRelevanceslistform"
- );
// return
setTimeout(() => {
@@ -1649,12 +1658,12 @@
let result = this.hosplist
.filter((item) => item.deptCode == row)
.map((item) => item.id);
- if (result.length) {
- depthospgetsondel(result).then((res) => {
- if (res.code) {
- }
- });
- }
+ if (result.length) {
+ depthospgetsondel(result).then((res) => {
+ if (res.code) {
+ }
+ });
+ }
},
// 涓嬩竴姝�
nextstep() {
@@ -1875,6 +1884,13 @@
},
// 淇濆瓨绉戝/鐥呭尯
putbelongDepts(id) {
+ this.tempDetpRelevanceslistform.forEach(item=>{
+ if (!item.tempid) item.tempid=id;
+ })
+
+ this.tempbelongWardsform.forEach(item=>{
+ if (!item.tempid) item.tempid=id;
+ })
if (this.tempDetpRelevanceslistform.length > 0) {
depthospgetson(this.tempDetpRelevanceslistform).then((res) => {
if (res.code == 200) {
--
Gitblit v1.9.3