From e6af7e6f95fb49115bf593daff0bee48648f99cf Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 31 五月 2024 14:46:55 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   15 ++++++++++++---
 src/views/patient/propaganda/particty.vue              |    2 ++
 src/views/repositoryai/templateku/index.vue            |   21 +++++++++++++++++----
 3 files changed, 31 insertions(+), 7 deletions(-)

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 4bdbae5..5e0a46a 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -714,6 +714,7 @@
       previewid: "", //浠诲姟妯$増浼犻�抜d
       libName: "",
       overallCase: [], //閫夋嫨鎮h�呮��
+      allpids: [],
       libId: null, //妯℃澘搴撴ā鐗坕d
       Editprogress: 1, //缂栬緫杩涘害
       previewtf: false, //棰勮
@@ -1071,6 +1072,7 @@
     },
     // 瀛愪换鍔′簩绾у脊妗�
     handleAddpatient(row) {
+      console.log(this.overallCase, "ssaaa");
       getTaskpatient(this.patientqueryParams).then((response) => {
         console.log(response);
         this.patientuserList = response.rows;
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index d17d4c3..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: "",
@@ -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) {
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index ed0c802..01e787e 100644
--- a/src/views/repositoryai/templateku/index.vue
+++ b/src/views/repositoryai/templateku/index.vue
@@ -348,11 +348,16 @@
       </div>
     </div>
     <!-- 娣诲姞绫诲埆寮规 -->
-    <el-dialog title="鏂板绫诲埆" width="30%" :visible.sync="dialogFormVisible">
+    <el-dialog
+      :title="title"
+      width="30%"
+      :close-on-click-modal="false"
+      :visible.sync="dialogFormVisible"
+    >
       <div style="text-align: center; margin-bottom: 20px">
         <el-radio-group v-model="radio">
-          <el-radio-button label="涓诲垎绫�"></el-radio-button>
-          <el-radio-button label="瀛愬垎绫�"></el-radio-button>
+          <el-radio-button label="涓诲垎绫�" v-show="zifon"></el-radio-button>
+          <el-radio-button label="瀛愬垎绫�" v-show="zufon"></el-radio-button>
         </el-radio-group>
       </div>
       <el-divider></el-divider>
@@ -481,7 +486,7 @@
       // 琛ㄦ牸鏁版嵁
       userList: [],
       // 寮瑰嚭灞傛爣棰�
-      title: "",
+      title: "鏂板绫诲埆",
       // 鏄惁鏄剧ず寮瑰嚭灞�
       open: false,
       // 鏃ユ湡鑼冨洿
@@ -512,6 +517,8 @@
       indexid: null,
       inputValue: "",
       radio: "涓诲垎绫�",
+      zufon: true,
+      zifon: true,
       inputVisible: false,
       illnessVisible: false, //鎸囨爣鐤剧梾寮规
       deptOptions: [],
@@ -538,6 +545,8 @@
   created() {
     this.getList();
     this.getDeptTree();
+    this.zufon = true;
+    this.zifon = true;
     this.mode = store.getters.mode;
     this.languagelist = store.getters.languagelist;
     this.qyoptions = store.getters.usable;
@@ -725,8 +734,12 @@
       this.dialogFormVisible = true;
       if (!b.pid) {
         this.radio = "涓诲垎绫�";
+        this.title="淇敼涓诲垎绫�";
+        this.zufon = false;
       } else {
         this.radio = "瀛愬垎绫�";
+        this.title="淇敼瀛愬垎绫�";
+        this.zifon = false;
       }
       this.classifyform = b;
       this.dialogFormVisible = true;

--
Gitblit v1.9.3