fix: 用户部门默认选取自身拥有的

This commit is contained in:
TsMask
2024-06-18 19:12:44 +08:00
parent 8f3cce52c0
commit 3298203f60

View File

@@ -385,6 +385,7 @@ function fnModalVisibleByEdit(userId?: string | number) {
modalState.from = Object.assign(modalState.from, user);
modalState.from.roleIds = roleIds;
modalState.from.postIds = postIds;
modalState.from.deptId = deptTreeData.value[0].id;
modalState.title =
t('common.addText') + t('views.system.user.userInfo');
modalState.visibleByEdit = true;
@@ -1218,7 +1219,12 @@ onMounted(() => {
</a-select>
</a-form-item>
</a-col>
<a-col :lg="12" :md="12" :xs="24">
<a-col
:lg="12"
:md="12"
:xs="24"
v-perms:has="['system:user:editRole']"
>
<a-form-item
:label="t('views.system.user.permission')"
name="roleIds"