From f84ce5767570a5bad83f2729a95277ac5ce847b5 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期五, 03 一月 2025 13:38:10 +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