From d03829bdf327d0e457a2f4e3699a69d5ad47d3a3 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 03 九月 2024 10:41:34 +0800
Subject: [PATCH] 测试完成

---
 src/views/system/user/index.vue                         |    3 +
 src/views/repositoryai/templateku/configurat/index.vue  |    5 ++
 src/views/knowledge/questionnaire/compilequer/index.vue |   25 +++++++++---
 src/views/patient/propaganda/particty.vue               |   34 +++++++++++++++--
 src/views/patient/propaganda/QuestionnaireTask.vue      |    2 
 5 files changed, 55 insertions(+), 14 deletions(-)

diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 0eb6d7e..83ebd65 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -695,7 +695,7 @@
             <div
               class="scriptTopic-dev"
               :key="item.sort"
-              v-if="item.scriptType == 3"
+              v-if="item.scriptType == 4"
             >
               <div class="dev-text">
                 {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span>
@@ -1278,13 +1278,13 @@
   },
   activated() {
     if (this.id != this.$route.query.id) {
-      this.gettabList();
       this.getissueinfo();
+      this.gettabList();
     }
   },
   created() {
-    this.gettabList();
     this.getissueinfo();
+    this.gettabList();
     this.mode = store.getters.Askmode;
     this.languagelist = store.getters.languagelist;
     this.usable = store.getters.usable;
@@ -1337,6 +1337,12 @@
     // 鑾峰彇鏁版嵁
     getissueinfo() {
       this.id = this.$route.query.id;
+      this.ruleForm = {
+        svyTemplateLibScripts: [],
+        tempDetpRelevances: [],
+        svyLibTemplateTagList: [],
+      };
+
       if (this.id) {
         getQtemplateobj({ svyid: this.id }).then((res) => {
           this.ruleForm = res.rows[0];
@@ -1365,9 +1371,11 @@
       });
     },
     submitForm(formName) {
-      this.$modal.loading("姝e湪涓婁紶鏁版嵁锛岃绋嶅��...");
+      this.$modal.loading("姝e湪淇淇濆瓨鏁版嵁锛岃绋嶅��...");
       this.ruleForm.suitway = this.ruleForm.suitway.join(",");
-
+      if (!this.ruleForm.categoryid) {
+        this.ruleForm.categoryid = -1;
+      }
       if (this.id) {
         this.ruleForm.isoperation = 2;
         compileQtemplate(this.ruleForm).then((res) => {
@@ -1808,12 +1816,15 @@
 
       const allGreaterThanTen = arr.every((array) => {
         const totalScore = array.reduce((accumulator, current) => {
-          return accumulator + current.score;
+          return accumulator + Number(current.score);
         }, 0);
+        console.log(totalScore);
+        console.log(this.ruleForm.scriptScore);
+
         return totalScore == this.ruleForm.scriptScore;
       });
       if (allGreaterThanTen) {
-        this.$modal.msgSuccess("棰樼洰鍒嗗�肩疮鍔犲拰妯$増鎬诲垎鐩哥");
+        this.$modal.msgSuccess("鍒嗗�兼牎楠屾垚鍔�");
       } else {
         this.$modal.msgError("棰樼洰鍒嗗�肩疮鍔犲拰妯$増鍒嗗�间笉绗�");
       }
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 316ce12..3297f8f 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -425,7 +425,7 @@
           class="scriptTopic-dev"
           v-for="item in questionList"
           :key="item.sort"
-          v-if="item.scriptType == 3"
+          v-if="item.scriptType == 4"
         >
           <div class="dev-text">
             {{ item.sort }}銆乕濉┖]<span>{{ item.scriptContent }}</span>
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index acc683b..feff433 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -447,11 +447,8 @@
               v-show="showSearch"
               label-width="98px"
             >
-              <el-form-item label="闅忚涓婚">
-                <el-input v-model="topqueryParams.name"></el-input>
-              </el-form-item>
               <el-form-item label="闅忚鍚嶇О">
-                <el-input v-model="topqueryParams.name"></el-input>
+                <el-input v-model="topqueryParams.templateName"></el-input>
               </el-form-item>
 
               <el-form-item label="閫傜敤绉戝" prop="status">
@@ -463,6 +460,28 @@
                     :value="item.value"
                   >
                   </el-option>
+                </el-select>
+              </el-form-item>
+              <el-form-item label="闅忚妯$増鍒嗙被" prop="region">
+                <el-select
+                  v-model="topqueryParams.assortid"
+                  size="medium"
+                  filterable
+                  placeholder="璇烽�夋嫨鍒嗙被"
+                >
+                  <el-option-group
+                    v-for="group in indexAssortlist"
+                    :key="group.id"
+                    :label="group.indexAssortName"
+                  >
+                    <el-option
+                      v-for="item in group.ivrLibaTemplateAssortList"
+                      :key="item.id"
+                      :label="item.indexAssortName"
+                      :value="item.id"
+                    >
+                    </el-option>
+                  </el-option-group>
                 </el-select>
               </el-form-item>
               <el-form-item>
@@ -519,6 +538,7 @@
   delhetaskinfo,
   Editsingletask,
   getvFollowup,
+  getFollowupclassify,
 } from "@/api/AiCentre/index";
 import { listDept } from "@/api/system/dept";
 
@@ -615,6 +635,8 @@
       patientuserList: [], //閫夋嫨鎮h�呭垪琛�
       sonuserList: [], //閫変腑鎮h�呭垪琛�
       delvariableList: [], //鍒犻櫎鍙橀噺涓存椂瀛樺偍
+      indexAssortlist: [],
+
       variableList: [
         {
           name: "濮撳悕",
@@ -793,6 +815,7 @@
         this.total = response.total;
       });
     },
+
     nextstep() {
       if (this.Editprogress <= 3) {
         return this.Editprogress++;
@@ -1056,6 +1079,9 @@
           }
         });
       }
+      getFollowupclassify({}).then((res) => {
+        this.indexAssortlist = res.rows;
+      });
     },
     // 鑾峰彇绉戝鍒楄〃
     listDept() {
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index be649eb..48d4926 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -1626,6 +1626,9 @@
       } else {
         this.ruleForm.isoperation = 1;
       }
+      if (!this.ruleForm.assortid) {
+        this.ruleForm.assortid = -1;
+      }
       this.ruleForm.labelInfo = JSON.stringify(this.dynamicTags);
       this.ruleForm.suitway = this.ruleForm.suitway.join(",");
       this.ruleForm.campus = this.ruleForm.campus.join(",");
@@ -1680,7 +1683,7 @@
     },
     // 绉戝澶勭悊
     Departmenttreatment() {
-      this.$modal.loading("姝e湪涓婁紶鏁版嵁锛岃绋嶅��...");
+      this.$modal.loading("姝e湪淇淇濆瓨鏁版嵁锛岃绋嶅��...");
       this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist);
       this.ruleForm.ivrLibaTemplateScriptVOList =
         this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList);
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index bb206c6..d31eecf 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -307,7 +307,7 @@
           <el-col :span="12">
             <el-form-item label="褰掑睘閮ㄩ棬" prop="deptId">
               <treeselect
-                v-model="deptIds"
+                v-model="form.depts"
                 :options="deptOptions"
                 :multiple="true"
                 :show-count="true"
@@ -743,6 +743,7 @@
         this.open = true;
         this.title = "娣诲姞鐢ㄦ埛";
         this.form.password = this.initPassword;
+        this.form.depts = [];
       });
     },
     /** 淇敼鎸夐挳鎿嶄綔 */

--
Gitblit v1.9.3