From 87f9ff34b1df44bc67731b3c38117fcb72505c68 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sun, 6 Oct 2024 11:06:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=92=E8=89=B2=E6=8E=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/system/role/index.ts | 2 +- .../src/views/system/role-assign/data.tsx | 29 ++- .../src/views/system/role-assign/index.vue | 165 +++++++++++++++--- .../system/role-assign/role-assign-drawer.vue | 101 +++++++++++ 4 files changed, 273 insertions(+), 24 deletions(-) create mode 100644 apps/web-antd/src/views/system/role-assign/role-assign-drawer.vue diff --git a/apps/web-antd/src/api/system/role/index.ts b/apps/web-antd/src/api/system/role/index.ts index 92bfde01..2a0de1ce 100644 --- a/apps/web-antd/src/api/system/role/index.ts +++ b/apps/web-antd/src/api/system/role/index.ts @@ -62,7 +62,7 @@ export function roleOptionSelect(params?: any) { } export function roleAllocatedList(params: any) { - return requestClient.get(Api.roleAllocatedList, params); + return requestClient.get(Api.roleAllocatedList, { params }); } /** diff --git a/apps/web-antd/src/views/system/role-assign/data.tsx b/apps/web-antd/src/views/system/role-assign/data.tsx index 443c7f04..093ebd72 100644 --- a/apps/web-antd/src/views/system/role-assign/data.tsx +++ b/apps/web-antd/src/views/system/role-assign/data.tsx @@ -1,4 +1,4 @@ -import type { FormSchemaGetter } from '#/adapter'; +import type { FormSchemaGetter, VxeGridProps } from '#/adapter'; export const querySchema: FormSchemaGetter = () => [ { @@ -12,3 +12,30 @@ export const querySchema: FormSchemaGetter = () => [ label: '手机号码', }, ]; + +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '用户账号', + field: 'userName', + }, + { + title: '用户昵称', + field: 'nickName', + }, + { + title: '邮箱', + field: 'email', + }, + { + title: '手机号', + field: 'phonenumber', + }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; diff --git a/apps/web-antd/src/views/system/role-assign/index.vue b/apps/web-antd/src/views/system/role-assign/index.vue index 444b8670..f51a6c9a 100644 --- a/apps/web-antd/src/views/system/role-assign/index.vue +++ b/apps/web-antd/src/views/system/role-assign/index.vue @@ -1,42 +1,163 @@ diff --git a/apps/web-antd/src/views/system/role-assign/role-assign-drawer.vue b/apps/web-antd/src/views/system/role-assign/role-assign-drawer.vue new file mode 100644 index 00000000..94ac020b --- /dev/null +++ b/apps/web-antd/src/views/system/role-assign/role-assign-drawer.vue @@ -0,0 +1,101 @@ + + +