From 509e61f3b9a696b596d18fe6ca78125c5e21ae65 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 02 四月 2026 16:58:15 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   17 ++++++++++-------
 src/views/Satisfaction/configurationmyd/index.vue      |   34 ++++++++++++++++++++++++----------
 src/views/followvisit/satisfaction/index.vue           |    2 ++
 3 files changed, 36 insertions(+), 17 deletions(-)

diff --git a/src/views/Satisfaction/configurationmyd/index.vue b/src/views/Satisfaction/configurationmyd/index.vue
index 7034876..13046c8 100644
--- a/src/views/Satisfaction/configurationmyd/index.vue
+++ b/src/views/Satisfaction/configurationmyd/index.vue
@@ -612,7 +612,7 @@
       changedCount: 0,
 
       // 婊℃剰搴﹀垎绫籌D
-      satisfactionCategoryIds: ["404", "405", "406"],
+      satisfactionCategoryIds: ["404", "405", "406", "10039", "10041", "10042"],
 
       // 琛ㄥ崟楠岃瘉瑙勫垯
       configRules: {
@@ -666,9 +666,15 @@
 
     // 婊℃剰搴﹂鐩暟閲�
     satisfactionQuestionsCount() {
-      return this.questionList.filter((q) =>
-        this.satisfactionCategoryIds.includes(q.categoryid?.toString())
-      ).length;
+      if (this.templateForm.templateType === 1) {
+        return this.questionList.filter((q) =>
+          this.satisfactionCategoryIds.includes(q.categoryid?.toString())
+        ).length;
+      } else if (this.templateForm.templateType === 2) {
+        return this.questionList.filter((q) =>
+          this.satisfactionCategoryIds.includes(q.scriptAssortid?.toString())
+        ).length;
+      }
     },
 
     // 绛涢�夊悗鐨勯鐩垪琛�
@@ -676,9 +682,15 @@
       let filtered = this.questionList;
 
       // 绛涢�夋弧鎰忓害棰樼洰
-      filtered = filtered.filter((q) =>
-        this.satisfactionCategoryIds.includes(q.categoryid?.toString())
-      );
+      if (this.templateForm.templateType === 1) {
+        filtered = filtered.filter((q) =>
+          this.satisfactionCategoryIds.includes(q.categoryid?.toString())
+        );
+      } else if (this.templateForm.templateType === 2) {
+        filtered = filtered.filter((q) =>
+          this.satisfactionCategoryIds.includes(q.scriptAssortid?.toString())
+        );
+      }
 
       // 搴旂敤鎼滅储鏉′欢
       if (this.queryParams.scriptTopic) {
@@ -830,7 +842,7 @@
             questionCount: 0,
           };
         }
-// 鍔犺浇妯℃澘璇︽儏鏁版嵁
+        // 鍔犺浇妯℃澘璇︽儏鏁版嵁
         this.templateLoading = true;
         this.loading = true;
         this.questionList = [];
@@ -998,7 +1010,7 @@
     /** 閰嶇疆鍙樻洿澶勭悊 */
     handleConfigChange(question) {
       this.$nextTick(() => {
-        const index = this.questionList.findIndex((q) => q.id === question.id);
+        const index = this.filteredQuestionList.findIndex((q) => q.id === question.id);
         if (index !== -1) {
           const formRef = this.$refs.configForm && this.$refs.configForm[index];
           if (formRef) {
@@ -1051,7 +1063,9 @@
     async saveSingleConfig(question) {
       if (!question.hasChanges) return;
 
-      const index = this.questionList.findIndex((q) => q.id === question.id);
+      const index = this.filteredQuestionList.findIndex((q) => q.id === question.id);
+      console.log(index,'filteredQuestionList');
+
       if (index === -1) return;
 
       const formRef = this.$refs.configForm && this.$refs.configForm[index];
diff --git a/src/views/followvisit/satisfaction/index.vue b/src/views/followvisit/satisfaction/index.vue
index af713d3..06537e8 100644
--- a/src/views/followvisit/satisfaction/index.vue
+++ b/src/views/followvisit/satisfaction/index.vue
@@ -723,6 +723,8 @@
     },
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
     handleExport() {
+      console.log(this.topqueryParams,'鎵撳嵃鍏ュ弬');
+
       this.download(
         "smartor/satisfaction/export",
         {
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 3ecd00e..d64c59c 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -1467,7 +1467,7 @@
   illnesslistget,
   getillness,
   getgenerallist,
-  depthospgetsondel
+  depthospgetsondel,
 } from "@/api/AiCentre/index";
 import OptionalForm from "@/components/OptionalForm"; //姝e垯缁勪欢
 import { getToken } from "@/utils/auth";
@@ -1510,7 +1510,9 @@
       ruleForm: {
         templateName: "",
         revisitBefore:
-          "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾垜浠槸"+localStorage.getItem("orgname")+"鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚銆�",
+          "浜茬埍鐨勬偅鑰�/瀹跺睘锛屾垜浠槸" +
+          localStorage.getItem("orgname") +
+          "鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚銆�",
         revisitAfter:
           "璇锋偍娉ㄦ剰浼戞伅鍜岃惀鍏伙紝鐢熸椿涓婅鍔抽�哥粨鍚堬紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈鍥炶灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒",
         ivrLibaTemplateTagList: [],
@@ -1627,7 +1629,7 @@
     this.auxiliary();
     this.getDeptTree();
     this.mode = store.getters.mode;
-    console.log(this.mode,'this.mode');
+    console.log(this.mode, "this.mode");
     this.usable = store.getters.usable;
     this.required = store.getters.required;
     this.valuetype = store.getters.valuetype;
@@ -1704,9 +1706,9 @@
             console.log(2211);
             this.ruleForm = res.data;
             if (this.ruleForm.deptNames)
-            console.log(this.ruleForm.suitway,'suitway');
+              console.log(this.ruleForm.suitway, "suitway");
             this.ruleForm.suitway = this.ruleForm.suitway.split(",");
-            console.log(this.ruleForm.suitway,'suitway');
+            console.log(this.ruleForm.suitway, "suitway");
             if (this.ruleForm.campus)
               this.ruleForm.campus = this.ruleForm.campus.split(",");
             this.ruleForm.submoduleID = this.ruleForm.submoduleID.split(",");
@@ -2113,6 +2115,7 @@
         console.log(res, "璇︽儏");
         res.data.isoperation = 1;
         res.data.pid = this.ruleForm.id;
+        res.data.scriptAssortid = res.data.assortid;
         res.data.ivrLibaScriptTargetoptionList.forEach((item) => {
           item.isoperation = 1;
         });
@@ -2123,7 +2126,7 @@
     },
     handleDelete(row) {
       this.$modal
-        .confirm('鏄惁纭鍒犻櫎闂锛�"' + row.scriptTopic + '?')
+        .confirm('鏄惁纭鍒犻櫎闂锛�"' + row.scriptTopic + "?")
         .then(() => {
           this.ruleForm.ivrLibaTemplateScriptVOList.splice(
             this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row),
@@ -2195,7 +2198,7 @@
         } else {
           item.nextScriptno = item.sort + 1;
         }
-        if (item.ivrLibaScriptTargetoptionList&&!item.branchFlag) {
+        if (item.ivrLibaScriptTargetoptionList && !item.branchFlag) {
           item.ivrLibaScriptTargetoptionList.forEach((items) => {
             items.nextQuestion = Number(item.sort) + 1;
           });

--
Gitblit v1.9.3