From cdba63e2223fa4b145644879906259b783b174ab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 12 十月 2024 18:26:44 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   39 ++++++++++++++++++++-------------------
 src/views/patient/propaganda/QuestionnaireTask.vue     |    4 ++--
 2 files changed, 22 insertions(+), 21 deletions(-)

diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index 93470b3..2f5f62a 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -1423,9 +1423,9 @@
         if (res.code == 200) {
           this.objyl = res.data;
           if (this.objyl.taskid == data.taskId) {
-          this.objyl.isoperation = 1;
-          }else{
           this.objyl.isoperation = 2;
+          }else{
+          this.objyl.isoperation = 1;
           }
           this.objyl.taskid = data.taskId;
           TaskQuestioncomit(this.objyl).then((response) => {
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index da60548..493e953 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -269,7 +269,7 @@
                     class="ruleFormaa"
                     v-for="item in flatArray"
                     :key="item.deptCode"
-                    :label="item.deptName"
+                    :label="item.label"
                     :value="item.deptCode"
                   >
                   </el-option>
@@ -291,9 +291,9 @@
                   <el-option
                     class="ruleFormaa"
                     v-for="item in flatArray"
-                    :key="item.districtCode"
-                    :label="item.districtName"
-                    :value="item.districtCode"
+                    :key="item.deptCode"
+                    :label="item.label"
+                    :value="item.deptCode"
                   >
                   </el-option>
                 </el-select> </el-form-item
@@ -869,6 +869,8 @@
     <!-- 娣诲姞棰樼洰寮圭獥 -->
     <el-drawer
       title="娣诲姞棰樼洰"
+      @close="$forceUpdate()"
+      @closed="$forceUpdate()"
       :visible.sync="drawer"
       custom-class="demo-drawer"
       size="50%"
@@ -1464,7 +1466,8 @@
         { variatename: "鐢佃瘽", variate: "${phone}", default: 1 },
         { variatename: "鐥呮儏", variate: "${illness}", default: 1 },
       ],
-      deptList: [],
+      deptlist: [],
+      hosplist: [],
       flatArray:[],
       props: { multiple: true, value: "deptId", label: "deptName" },
 
@@ -1481,6 +1484,7 @@
       // 棰樼洰琛ㄦ牸鏁版嵁
       userList: [],
       belongWards: [],
+      belongDepts: [],
       belongDepts: [],
       // 鏌ヨ鍙傛暟
       queryParams: {
@@ -1563,7 +1567,6 @@
       deptTreeSelect().then((response) => {
         this.deptOptions = response.data;
         this.flatArray = this.flattenArray(response.data);
-        console.log(this.flatArray,'鎵╁睍鏁版嵁');
       });
     },
     flattenArray(multiArray) {
@@ -1629,9 +1632,7 @@
         this.tempDetpRelevanceslist = [];
       }
 
-      listDept(this.queryParams).then((response) => {
-        this.deptList = this.handleTree(response.data, "deptId");
-      });
+
     },
     // 闄勫睘鏁版嵁琛�
     auxiliary() {
@@ -1641,24 +1642,28 @@
       });
       this.tempDetpRelevanceslist = [];
       this.tempbelongWards = [];
+
       depthospgetsonlist(this.queryParamsdept).then((res) => {
         if (res.code == 200) {
           let arr = res.rows;
+          console.log(arr,'arr');
+
           arr.forEach((item) => {
             if (item.deptType == 1) {
+              console.log(this.deptlist,'11');
               this.deptlist.push(item);
+              console.log('22');
               this.tempDetpRelevanceslist.push(item.deptCode);
             } else if (item.deptType == 2) {
               this.hosplist.push(item);
               this.tempbelongWards.push(item.deptCode);
+              console.log('33');
+
             }
           });
         }
       });
-      // 绉戝
-      listDept(this.queryParams).then((response) => {
-        this.deptList = this.handleTree(response.data, "deptId");
-      });
+
       // 鐤剧梾
       getillnesslist({
         pageNum: 1,
@@ -1750,9 +1755,7 @@
     Departmenttreatment() {
       this.$modal.loading("姝e湪淇淇濆瓨鏁版嵁锛岃绋嶅��...");
       this.tempDetpRelevanceslist.forEach((item) => {
-        console.log(item);
         let result = this.deptlist.some((obj) => obj.deptCode == item);
-        console.log(this.result, "result");
 
         if (!result) {
           this.tempDetpRelevanceslistform.push({
@@ -1872,13 +1875,10 @@
         tagcategoryid: "0",
       };
       listtag(tagqueryParams).then((response) => {
-        console.log(response);
         this.optionstag = response.rows;
       });
     },
     handleClosetag(tag) {
-      console.log(tag);
-      console.log(this.dynamicTags.indexOf(tag));
       const lindex = this.dynamicTags.indexOf(tag);
       this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
       this.ruleForm.ivrLibaTemplateTagList[lindex].isoperation = 3;
@@ -1965,7 +1965,6 @@
         });
         this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data);
         this.sortFn();
-        this.$forceUpdate();
         this.$modal.msgSuccess("娣诲姞鎴愬姛");
       });
     },
@@ -2045,6 +2044,8 @@
           });
         }
       });
+      this.$forceUpdate();
+
       console.log(this.ruleForm.ivrLibaTemplateScriptVOList);
     },
     // -----------------------璇濇湳閫夐」

--
Gitblit v1.9.3