From b10795e18a07b9beb72f25406f26f42491828be5 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 22 十月 2024 09:20:19 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionnaire/compilequer/index.vue | 41 ++++++++++++++++++++++++++++++-----------
1 files changed, 30 insertions(+), 11 deletions(-)
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 8fa6512..e30f06e 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -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,7 +1456,6 @@
this.appraiselist = store.getters.appraiselist;
this.belongWards = store.getters.belongWards;
this.belongDepts = store.getters.belongDepts;
-
// this.test();
},
@@ -1517,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;
@@ -1559,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;
@@ -1567,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;
@@ -1586,7 +1607,6 @@
},
// 绉戝/闄㈠尯澶勭悊
Departmenttreatment() {
-
this.tempDetpRelevanceslist.forEach((item) => {
console.log(item);
let result = this.deptlist.some((obj) => obj.deptCode == item);
@@ -1615,7 +1635,6 @@
}
});
-
// return
setTimeout(() => {
this.submitForm();
@@ -1639,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() {
--
Gitblit v1.9.3