From acac65122fbac5295e4b7c8eed468e9b9181e366 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 15:24:40 +0800
Subject: [PATCH] 测试完成

---
 src/views/Satisfaction/configurationmyd/index.vue |   32 ++++++++++++++++++++------------
 1 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/src/views/Satisfaction/configurationmyd/index.vue b/src/views/Satisfaction/configurationmyd/index.vue
index 75038c3..a6debdc 100644
--- a/src/views/Satisfaction/configurationmyd/index.vue
+++ b/src/views/Satisfaction/configurationmyd/index.vue
@@ -144,14 +144,13 @@
     </div>
 
     <!-- 鎼滅储鍖哄煙锛堥鐩瓫閫夛級 -->
-    <div v-if="questionList.length > 0" class="search-section">
+    <div v-show="questionList.length > 0" class="search-section">
       <el-card shadow="never" class="search-container">
-        <el-form :model="queryParams" :inline="true" size="medium">
+        <el-form :model="queryParams" size="medium">
           <el-form-item label="闂涓婚">
             <el-input
               v-model="queryParams.scriptTopic"
               placeholder="璇疯緭鍏ラ棶棰樹富棰�"
-              clearable
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
@@ -159,7 +158,6 @@
             <el-input
               v-model="queryParams.scriptContent"
               placeholder="璇疯緭鍏ラ棶棰樺唴瀹�"
-              clearable
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
@@ -763,8 +761,8 @@
 
       // 鏌ヨ鍙傛暟
       queryParams: {
-        scriptTopic: "",
-        scriptContent: "",
+        scriptTopic: null,
+        scriptContent: null,
       },
 
       // 鏁版嵁鍒楄〃
@@ -860,7 +858,8 @@
     // 绛涢�夊悗鐨勯鐩垪琛�
     filteredQuestionList() {
       let filtered = this.questionList;
-
+      console.log("queryParams:", this.queryParams);
+      console.log("questionList:", this.questionList);
       // 绛涢�夋弧鎰忓害棰樼洰
       if (this.templateForm.templateType === 1) {
         filtered = filtered.filter((q) =>
@@ -876,7 +875,7 @@
       if (this.queryParams.scriptTopic) {
         const keyword = this.queryParams.scriptTopic.toLowerCase();
         filtered = filtered.filter(
-          (q) => q.scriptTopic && q.criptTopic.toLowerCase().includes(keyword)
+          (q) => q.scriptTopic && q.scriptTopic.toLowerCase().includes(keyword)
         );
       }
 
@@ -976,12 +975,15 @@
       return new Promise((resolve) => {
         getQtemplatelist({ pageSize: 1000 })
           .then((res) => {
-            if (res.code === 200) {
+            console.log(res.rows, "res.rows");
+            if (res.code == 200) {
+              console.log(res.rows, 2);
               this.questionnaireTemplates = (res.rows || []).map((item) => ({
                 id: item.svyid,
                 templateName: item.svyname,
                 isavailable: item.isavailable,
               }));
+              console.log(this.followupTemplates, 3);
             } else {
               this.$message.error(res.msg || "鍔犺浇闂嵎妯℃澘澶辫触");
             }
@@ -1000,12 +1002,16 @@
       return new Promise((resolve) => {
         getFollowuplist({ pageSize: 1000 })
           .then((res) => {
-            if (res.code === 200) {
+            console.log(res.rows, "res.rows");
+            if (res.code == 200) {
+              console.log(res.rows, 2);
+
               this.followupTemplates = (res.rows || []).map((item) => ({
                 id: item.id,
                 templateName: item.templateName,
                 isavailable: item.isavailable,
               }));
+              console.log(this.followupTemplates, 3);
             } else {
               this.$message.error(res.msg || "鍔犺浇璇煶妯℃澘澶辫触");
             }
@@ -1200,8 +1206,10 @@
     /** 閰嶇疆鍙樻洿澶勭悊 */
     handleConfigChange(question) {
       this.$nextTick(() => {
-        const index = this.filteredQuestionList.findIndex((q) => q.id === question.id);
-        console.log(index,'index');
+        const index = this.filteredQuestionList.findIndex(
+          (q) => q.id === question.id
+        );
+        console.log(index, "index");
 
         if (index !== -1) {
           const formRef = this.$refs.configForm && this.$refs.configForm[index];

--
Gitblit v1.9.3