From a46f2000f85c91b0e118a0af1bc6022a16feadcb Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 04 七月 2024 17:15:57 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   83 +++++++++++++++++++++++++----------------
 1 files changed, 50 insertions(+), 33 deletions(-)

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 4d9059c..ad39da7 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -535,10 +535,11 @@
                   <!-- 鏃犲尮閰嶇被鍨� -->
                   <div class="topicxq">
                     <el-row :gutter="10">
-                      <el-col :span="12"
+                      <el-col :span="20"
                         ><el-form-item label="鏃犲尮閰嶈瘽鏈�">
                           <el-input
-                            type="text"
+                            type="textarea"
+                            style="width: 400px"
                             placeholder="璇疯緭鍏�"
                             v-model="topicobj.noMatchText"
                             show-word-limit
@@ -582,10 +583,11 @@
                   </div>
                   <div class="topicxq">
                     <el-row :gutter="10">
-                      <el-col :span="12"
+                      <el-col :span="20"
                         ><el-form-item label="鍚笉娓呰瘽鏈�">
                           <el-input
-                            type="text"
+                            style="width: 400px"
+                            type="textarea"
                             placeholder="璇疯緭鍏�"
                             v-model="topicobj.noClearlyText"
                             show-word-limit
@@ -629,10 +631,11 @@
                   </div>
                   <div class="topicxq">
                     <el-row :gutter="10">
-                      <el-col :span="12"
+                      <el-col :span="20"
                         ><el-form-item label="闈欓粯璇濇湳">
                           <el-input
-                            type="text"
+                            type="textarea"
+                            style="width: 400px"
                             placeholder="璇疯緭鍏�"
                             v-model="topicobj.slienceText"
                             show-word-limit
@@ -715,7 +718,7 @@
             </div>
           </div>
           <!-- 澶氶�� -->
-          <div
+          <!-- <div
             class="topic-dev"
             v-for="(item, index) in valssu"
             :key="item.aaa"
@@ -734,7 +737,7 @@
                 </el-checkbox>
               </el-checkbox-group>
             </div>
-          </div>
+          </div> -->
           <!-- 濉┖
           <div class="topic-dev" v-for="item in valssu" :key="item.aaa">
             <div class="dev-text">
@@ -996,26 +999,31 @@
     },
     // 鑾峰彇琛ㄥ崟鏁版嵁
     getvFollowup() {
-      getvFollowup({ id: this.id }).then((res) => {
-        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;
+      if (this.id) {
+        getvFollowup({ id: this.id }).then((res) => {
+          if (res.code == 200) {
+            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.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,
         pageSize: 100,
@@ -1036,7 +1044,9 @@
       // 鍒嗙被
       getFollowupclassify({}).then((res) => {
         this.indexAssortlist = res.rows;
-        this.ruleForm.assortid = Number(this.$route.query.assortid);
+        if (this.$route.query.assortid) {
+          this.ruleForm.assortid = Number(this.$route.query.assortid);
+        }
       });
       // 绉戝
       listDept(this.queryParams).then((response) => {
@@ -1083,8 +1093,17 @@
             return item;
           });
       });
-
+      compileFollowup(this.ruleForm).then((res) => {
+        this.$modal.msgSuccess("缂栬緫鎴愬姛");
+        this.confirmillness(res.data);
+        this.$router.go(-1);
+      });
+    },
+    confirmillness(guid) {
       this.illnesslist.forEach((item, index) => {
+        if (guid) {
+          item.outid = guid;
+        }
         if (!item.id) {
           addtargetillness(item).then((res) => {});
         }
@@ -1092,10 +1111,8 @@
       if (this.illnesslistapi.length) {
         deltargetillness(this.illnesslistapi.join(",")).then((res) => {});
       }
-      compileFollowup(this.ruleForm).then((res) => {
-        this.$modal.msgSuccess("缂栬緫鎴愬姛");
-        this.$router.go(-1);
-      });
+      this.illnessVisible = false;
+      this.$modal.msgSuccess("缂栬緫鎴愬姛");
     },
     // 绉戝澶勭悊
     Departmenttreatment() {

--
Gitblit v1.9.3