From 90610c882fda55697cba70aa3d90ee17f148594f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 05 六月 2024 10:25:38 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 4794e5e..4d9059c 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -756,7 +756,7 @@
       title="娣诲姞棰樼洰"
       :visible.sync="drawer"
       custom-class="demo-drawer"
-      width="50%"
+      size="50%"
     >
       <div class="preview-left">
         <el-form
@@ -820,6 +820,12 @@
             </template>
           </el-table-column>
         </el-table>
+        <pagination
+          :total="total"
+          :page.sync="queryParams.pageNum"
+          :limit.sync="queryParams.pageSize"
+          @pagination="getaddtopiclist"
+        />
       </div>
     </el-drawer>
   </div>
@@ -868,9 +874,9 @@
       inputValue: "",
       inputValueillness: "",
       topicobj: {
-        noMatchText:'',
-        noClearlyText:'',
-        slienceText:'',
+        noMatchText: "",
+        noClearlyText: "",
+        slienceText: "",
       },
       total: 1,
       id: "",
@@ -983,10 +989,10 @@
       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() {
@@ -1244,6 +1250,14 @@
     },
     addtopic(row) {
       console.log(row);
+      if (
+        this.ruleForm.ivrLibaTemplateScriptVOList.some(
+          (obj) => obj.questiontitle == row.questiontitle
+        )
+      ) {
+        this.$modal.msgError("璇ラ鐩凡瀛樺湪");
+        return;
+      }
       getverbaltrick({ id: row.id }).then((res) => {
         console.log(res, "璇︽儏");
         res.data.isoperation = 1;
@@ -1253,6 +1267,7 @@
         });
         this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data);
         this.sortFn();
+        this.$modal.msgSuccess("娣诲姞鎴愬姛");
       });
     },
     handleDelete(row) {

--
Gitblit v1.9.3