From d8daea64158b654bde440bcb9f198a1547b3dbe6 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期四, 26 十二月 2024 18:15:32 +0800
Subject: [PATCH] 赋码展示

---
 src/components/flow/Dept/index.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/components/flow/Dept/index.vue b/src/components/flow/Dept/index.vue
index 0f23c51..44fcb17 100644
--- a/src/components/flow/Dept/index.vue
+++ b/src/components/flow/Dept/index.vue
@@ -7,6 +7,7 @@
 
       :destroy-on-close="true"
       :close-on-click-modal="false"
+      :modal="false"
       :before-close="close">
       <el-tree
         ref="tree"
@@ -66,6 +67,11 @@
   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) {

--
Gitblit v1.8.0