From 257f46bce7c3325c9d9aed68e0df84ea279019aa Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 28 五月 2024 15:30:21 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   87 ++++++++++++++++++++++++++++---------------
 1 files changed, 57 insertions(+), 30 deletions(-)

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index a18c9ff..d17d4c3 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -546,7 +546,7 @@
                           </el-input> </el-form-item
                       ></el-col>
                     </el-row>
-                    <el-row :gutter="10">
+                    <!-- <el-row :gutter="10">
                       <el-col :span="12"
                         ><el-form-item label="澶勭悊">
                           <el-input
@@ -558,7 +558,7 @@
                           >
                           </el-input> </el-form-item
                       ></el-col>
-                    </el-row>
+                    </el-row> -->
 
                     <el-row :gutter="10">
                       <el-col :span="16">
@@ -593,7 +593,7 @@
                           </el-input> </el-form-item
                       ></el-col>
                     </el-row>
-                    <el-row :gutter="10">
+                    <!-- <el-row :gutter="10">
                       <el-col :span="12"
                         ><el-form-item label="澶勭悊">
                           <el-input
@@ -605,7 +605,7 @@
                           >
                           </el-input> </el-form-item
                       ></el-col>
-                    </el-row>
+                    </el-row> -->
 
                     <el-row :gutter="10">
                       <el-col :span="16">
@@ -640,7 +640,7 @@
                           </el-input> </el-form-item
                       ></el-col>
                     </el-row>
-                    <el-row :gutter="10">
+                    <!-- <el-row :gutter="10">
                       <el-col :span="12"
                         ><el-form-item label="澶勭悊">
                           <el-input
@@ -652,7 +652,7 @@
                           >
                           </el-input> </el-form-item
                       ></el-col>
-                    </el-row>
+                    </el-row> -->
 
                     <el-row :gutter="10">
                       <el-col :span="16">
@@ -867,10 +867,19 @@
       indexAssortlist: [],
       inputValue: "",
       inputValueillness: "",
-      topicobj: {},
+      topicobj: {
+        noMatchText:'',
+        noClearlyText:'',
+        slienceText:'',
+      },
       total: 1,
       id: "",
-      ruleForm: {},
+      ruleForm: {
+        templateName: "",
+        ivrLibaTemplateTagList: [],
+        ivrLibaTemplateScriptVOList: [],
+        tempDetpRelevances: [],
+      },
       rules: {},
       optionstag: [],
       prefollowuplist: [],
@@ -959,6 +968,7 @@
     this.courtyardlist = store.getters.courtyardlist;
     this.precedencetype = store.getters.precedencetype;
   },
+  mounted() {},
 
   methods: {
     //鍏叡鏂规硶--------------------
@@ -972,30 +982,33 @@
     RoutingDataProcessing() {
       this.id = this.$route.query.id;
       this.task = this.$route.query.task;
-      console.log(this.task,'task');
-      if (this.task) {
-        this.id = this.$route.query.id;
-      }
+
+      // console.log(this.task, "task");
+      // if (this.task) {
+      //   this.id = this.$route.query.id;
+      // }
     },
     // 鑾峰彇琛ㄥ崟鏁版嵁
     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 +1016,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");
       });
@@ -1015,6 +1030,18 @@
       // 鍒嗙被
       getFollowupclassify({}).then((res) => {
         this.indexAssortlist = res.rows;
+        this.ruleForm.assortid = Number(this.$route.query.assortid);
+      });
+      // 绉戝
+      listDept(this.queryParams).then((response) => {
+        this.deptList = this.handleTree(response.data, "deptId");
+      });
+      // 鐤剧梾
+      getillnesslist({
+        pageNum: 1,
+        pageSize: 100,
+      }).then((response) => {
+        this.optionsillness = response.rows;
       });
       getgenerallist({
         pageNum: 1,

--
Gitblit v1.9.3