feat: 角色授权

This commit is contained in:
dap
2024-10-06 11:06:56 +08:00
parent ba73a23d4f
commit 87f9ff34b1
4 changed files with 273 additions and 24 deletions

View File

@@ -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,
},
];