fix: 新增用户允许选择角色
This commit is contained in:
@@ -385,8 +385,8 @@ function fnModalVisibleByEdit(userId?: string | number) {
|
||||
modalState.options.posts = posts;
|
||||
const { user, roleIds, postIds } = res.data;
|
||||
modalState.from = Object.assign(modalState.from, user);
|
||||
modalState.from.roleIds = [2]; //roleIds;
|
||||
modalState.from.postIds = [2]; // postIds;
|
||||
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');
|
||||
@@ -1221,8 +1221,8 @@ onMounted(() => {
|
||||
</a-tree-select>
|
||||
</a-form-item>
|
||||
|
||||
<a-row v-if="false">
|
||||
<a-col :lg="12" :md="12" :xs="24">
|
||||
<a-row>
|
||||
<a-col :lg="12" :md="12" :xs="24" v-if="false">
|
||||
<a-form-item
|
||||
:label="t('views.system.user.userWork')"
|
||||
name="postIds"
|
||||
@@ -1449,7 +1449,6 @@ onMounted(() => {
|
||||
name="roleIds"
|
||||
:label-col="{ span: 3 }"
|
||||
v-perms:has="['system:user:editRole']"
|
||||
v-if="false"
|
||||
>
|
||||
<a-select
|
||||
v-model:value="modalState.from.roleIds"
|
||||
|
||||
Reference in New Issue
Block a user