From 7801fc6629074fa2f108af214a68418de0d25328 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Wed, 29 Mar 2023 18:15:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E9=85=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/permission/index.ts | 2 +- src/views/system/user/UserRoleModal.vue | 44 +++++++++++++++++++++++++ src/views/system/user/index.vue | 35 ++++++++++++++++++-- src/views/system/user/user.data.ts | 33 +++++++++++++++++++ 4 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 src/views/system/user/UserRoleModal.vue diff --git a/src/api/system/permission/index.ts b/src/api/system/permission/index.ts index e1f25df8..52d61ff2 100644 --- a/src/api/system/permission/index.ts +++ b/src/api/system/permission/index.ts @@ -37,6 +37,6 @@ export function listUserRoles(userId: number) { } // 赋予用户角色 -export function aassignUserRole(data: PermissionAssignUserRoleReqVO) { +export function assignUserRole(data: PermissionAssignUserRoleReqVO) { return defHttp.post({ url: '/system/permission/assign-user-role', data }) } diff --git a/src/views/system/user/UserRoleModal.vue b/src/views/system/user/UserRoleModal.vue new file mode 100644 index 00000000..de41cfca --- /dev/null +++ b/src/views/system/user/UserRoleModal.vue @@ -0,0 +1,44 @@ + + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 08321707..ed7ccddb 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -14,7 +14,21 @@