diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 387e6d3f..ba60e48f 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -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(() => { - - + + { name="roleIds" :label-col="{ span: 3 }" v-perms:has="['system:user:editRole']" - v-if="false" >