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 = Object.assign(modalState.from, user);
modalState.from.roleIds = roleIds; modalState.from.roleIds = roleIds;
modalState.from.postIds = postIds; modalState.from.postIds = postIds;
modalState.from.deptId = deptTreeData.value[0].id;
modalState.title = modalState.title =
t('common.addText') + t('views.system.user.userInfo'); t('common.addText') + t('views.system.user.userInfo');
modalState.visibleByEdit = true; modalState.visibleByEdit = true;
@@ -1218,7 +1219,12 @@ onMounted(() => {
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </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 <a-form-item
:label="t('views.system.user.permission')" :label="t('views.system.user.permission')"
name="roleIds" name="roleIds"