From 7379f2bcf71fe80d021eb7f2118991525e41ea7e Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期四, 26 十二月 2024 17:58:30 +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