From b2278ee7b3934157b2400d75c39957a8885ade9f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 27 五月 2024 17:34:53 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/templateku/configurat/index.vue | 49 +++++++++++++++++++++++++++++--------------------
1 files changed, 29 insertions(+), 20 deletions(-)
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index a18c9ff..b1c97df 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -870,7 +870,12 @@
topicobj: {},
total: 1,
id: "",
- ruleForm: {},
+ ruleForm: {
+ templateName: "",
+ ivrLibaTemplateTagList: [],
+ ivrLibaTemplateScriptVOList: [],
+ tempDetpRelevances: [],
+ },
rules: {},
optionstag: [],
prefollowuplist: [],
@@ -972,7 +977,7 @@
RoutingDataProcessing() {
this.id = this.$route.query.id;
this.task = this.$route.query.task;
- console.log(this.task,'task');
+ console.log(this.task, "task");
if (this.task) {
this.id = this.$route.query.id;
}
@@ -980,22 +985,24 @@
// 鑾峰彇琛ㄥ崟鏁版嵁
getvFollowup() {
getvFollowup({ id: this.id }).then((res) => {
- this.ruleForm = res.data;
+ if (res.code == 200 && this.id) {
+ console.log(2211);
+ this.ruleForm = res.data;
+ this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames);
+ this.ruleForm.suitway = this.ruleForm.suitway.split(",");
+ this.ruleForm.campus = this.ruleForm.campus.split(",");
+ this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(",");
+ this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => {
+ return Number(res);
+ });
+ console.log(this.ruleForm.submoduleID, "this.ruleForm.submoduleID鍙�");
+ this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList;
- this.tempDetpRelevanceslist = JSON.parse(this.ruleForm.deptNames);
- this.ruleForm.suitway = this.ruleForm.suitway.split(",");
- this.ruleForm.campus = this.ruleForm.campus.split(",");
- this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(",");
- this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => {
- return Number(res);
- });
- console.log(this.ruleForm.submoduleID, "this.ruleForm.submoduleID鍙�");
- this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList;
-
- this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map(
- this.processElement
- );
- console.log(this.ruleForm.suitway);
+ this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map(
+ this.processElement
+ );
+ console.log(this.ruleForm.suitway);
+ }
});
getillnesslist({
pageNum: 1,
@@ -1003,9 +1010,11 @@
}).then((response) => {
this.optionsillness = response.rows;
});
- getillness({ outid: this.id, type: 3 }).then((res) => {
- this.illnesslist = res.rows;
- });
+ if (this.id) {
+ getillness({ outid: this.id, type: 3 }).then((res) => {
+ this.illnesslist = res.rows;
+ });
+ }
listDept(this.queryParams).then((response) => {
this.deptList = this.handleTree(response.data, "deptId");
});
--
Gitblit v1.9.3