From b10795e18a07b9beb72f25406f26f42491828be5 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 22 十月 2024 09:20:19 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/propaganda/particty.vue |  108 ++++++++++++++++++++++++++---------------------------
 1 files changed, 53 insertions(+), 55 deletions(-)

diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 782a240..f925090 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -70,16 +70,34 @@
                   />
                 </el-form-item>
                 <el-form-item label="鏈嶅姟褰㈠紡">
-                  <el-checkbox-group v-model="checkList">
+                  <el-checkbox-group
+                    v-model="checkList"
+                    @change="handleCheckedCitiesChange"
+                  >
                     <el-checkbox
                       v-for="(item, index) in checkboxlist"
                       :key="index"
                       :label="item.value"
+                       @change="checkboxChange($event, item.value)"
                     >
                       {{ item.label }}</el-checkbox
                     >
                   </el-checkbox-group>
                 </el-form-item>
+                <div class="xinz-infs">
+                  <el-form-item label="鏈嶅姟鎵ц椤哄簭" prop="daytime">
+                    <el-tag
+                      :key="tag.label"
+                      type="success"
+                      v-for="(tag, index) in foncheckList"
+                      closable
+                      :disable-transitions="false"
+                      @close="handleClosetag(tag)"
+                    >
+                      ({{index+1}}){{ tag.label }}
+                    </el-tag>
+                  </el-form-item>
+                </div>
                 <el-form-item label="鏄惁闀挎湡" prop="longTask">
                   <el-radio-group v-model="form.longTask">
                     <el-radio :label="0">鏅�氫换鍔�</el-radio>
@@ -977,6 +995,12 @@
         pageSize: 10,
       },
       checkList: [],
+      foncheckList: [],
+      formatvalue: {
+        format1: "",
+        format2: "",
+        format3: "",
+      },
       deliverytopqueryParams: {
         pageNum: 1, //
         pageSize: 10,
@@ -1052,7 +1076,7 @@
       SelectPatientslist: [],
       form: {
         patTaskRelevances: [],
-        sendType: 1,
+        sendType: 3,
         longTask: 0,
         templatename: "",
         templateid: null,
@@ -1444,7 +1468,6 @@
             this.objyl.suitway = this.objyl.suitway.split(",");
             this.questionList = res.data.ivrLibaTemplateScriptVOList;
             this.getillness(row.id);
-        console.log(res.data, "11");
             this.Variablehandling(res.data.ivrLibaTemplateScriptVOList, 1);
             this.previewtf = true;
           }
@@ -1881,14 +1904,14 @@
       if (this.form.templateid) {
         deleteTaskparticty(this.form.templateid).then((res) => {
           if (res.code == 200) {
-              Taskparticty(this.objyl).then((response) => {
-                this.previewtf = false;
-                this.form.libtemplateid = this.objyl.id;
-                this.form.templateid = response.data;
-                this.putbelongDepts(response.data);
-                this.form.templatename = this.objyl.templateName;
-                this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
-              });
+            Taskparticty(this.objyl).then((response) => {
+              this.previewtf = false;
+              this.form.libtemplateid = this.objyl.id;
+              this.form.templateid = response.data;
+              this.putbelongDepts(response.data);
+              this.form.templatename = this.objyl.templateName;
+              this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
+            });
           }
         });
       } else {
@@ -1923,33 +1946,24 @@
         }
       });
     },
-    // 澶勭悊鏈嶅姟褰㈠紡
-    formatFn(type) {
-      let list = [];
-      let formlist = [];
-      if (type == 1) {
-        this.preachform.forEach((item) => {
-          this.checkList.forEach((obj) => {
-            if (item.label == obj) {
-              list.push(item.value);
-            }
-          });
-        });
-        console.log(list, "list");
-        this.form.preachform = list.join(",");
-      } else {
-        console.log(this.form.preachform, "this.form.preachform");
-        formlist = this.form.preachform.split(",");
-        console.log(11);
-        this.preachform.forEach((item) => {
-          formlist.forEach((obj) => {
-            if (item.value == obj) {
-              list.push(item.label);
-            }
-          });
-        });
-        this.checkList = list;
-      }
+    checkboxChange(checked, value){
+
+    },
+    // 鏈嶅姟褰㈠紡閫夊彇
+    handleCheckedCitiesChange(row) {
+      console.log(row, "鏈嶅姟");
+      this.foncheckList = this.checkboxlist.filter((obj) =>
+        row.includes(obj.value)
+      );
+    },
+    // 鏈嶅姟褰㈠紡鍒犻櫎
+    handleClosetag(tag) {
+      console.log(tag, "tag");
+      console.log(this.foncheckList, "foncheckList");
+      this.checkList = this.checkList.filter((item) => item != tag.value);
+      this.foncheckList = this.foncheckList.filter(obj => obj.value !== tag.value);
+      console.log(this.checkList, "checkList");
+
     },
     // 绉戝澶勭悊
     Departmenttreatment() {
@@ -2063,23 +2077,7 @@
     margin-left: 10px;
   }
 }
-// .leftvlue-jbxx {
-//   margin-bottom: 50px;
-//   font-size: 20px;
-//   span {
-//     position: absolute;
-//     right: 80px;
-//   }
-//   .demo-cascader {
-//     margin-right: 20px;
-//   }
-//   .PreviewTemplate {
-//     color: #02a7f0;
-//     cursor: pointer;
-//     font-size: 20px;
-//     margin: 0 20px;
-//   }
-// }
+
 .preview-left {
   margin: 20px;
   //   margin: 20px;

--
Gitblit v1.9.3