From 48f86b37392f856f322fad02fc97c6e58a2e9719 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 01 六月 2024 16:37:29 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 4794e5e..b021d50 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -868,9 +868,9 @@
       inputValue: "",
       inputValueillness: "",
       topicobj: {
-        noMatchText:'',
-        noClearlyText:'',
-        slienceText:'',
+        noMatchText: "",
+        noClearlyText: "",
+        slienceText: "",
       },
       total: 1,
       id: "",
@@ -983,10 +983,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 +1244,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 +1261,7 @@
         });
         this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data);
         this.sortFn();
+        this.$modal.msgSuccess("娣诲姞鎴愬姛");
       });
     },
     handleDelete(row) {

--
Gitblit v1.9.3