From 31d78dd4e988cfce8f0a16678f2041849cc0dce3 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 06 六月 2025 18:07:52 +0800
Subject: [PATCH] 工作台

---
 src/components/flow/Dept/index.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/components/flow/Dept/index.vue b/src/components/flow/Dept/index.vue
index 0f23c51..7081767 100644
--- a/src/components/flow/Dept/index.vue
+++ b/src/components/flow/Dept/index.vue
@@ -4,9 +4,9 @@
       :title="`閫夋嫨鍊欓�夐儴闂╜"
       :visible.sync="show"
       width="65%"
-
       :destroy-on-close="true"
       :close-on-click-modal="false"
+      :modal="false"
       :before-close="close">
       <el-tree
         ref="tree"
@@ -66,10 +66,17 @@
   methods: {
     setCheckList(value) {
       this.checkList = value
+      this.$nextTick(() => {
+        if (this.$refs.tree && this.checkeds) {
+          this.$refs.tree.setCheckedKeys(this.checkeds);
+        }
+      });
     },
     handleCheckChange(data, checked, indeterminate) {
       if (checked) {
-        this.checkList.push(data)
+        if (this.checkList.indexOf(data) === -1) {
+          this.checkList.push(data)
+        }
       } else {
         this.checkList = this.checkList.filter(item => item !== data)
       }

--
Gitblit v1.8.0