From 96476b7dfc6785f85ad97afbf9d58b536aff6247 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Tue, 4 Jul 2023 20:55:22 +0800 Subject: [PATCH] Fix https://github.com/elunez/eladmin/issues/625 close https://github.com/elunez/eladmin/issues/625 --- src/views/system/role/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 242ed1a..bea269d 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -34,6 +34,9 @@ v-model="deptDatas" :load-options="loadDepts" :options="depts" + :flat="true" + :auto-select-descendants="true" + :default-expand-level="1" multiple style="width: 380px" placeholder="请选择" @@ -192,6 +195,7 @@ export default { }, // 提交前做的操作 [CRUD.HOOK.afterValidateCU](crud) { + console.log(this.deptDatas) if (crud.form.dataScope === '自定义' && this.deptDatas.length === 0) { this.$message({ message: '自定义数据权限不能为空',