feat(member): 会员增加 email 字段

pull/351/MERGE
YunaiV 2026-05-30 22:55:27 +08:00
parent 1edaf023c2
commit 26d07e2e28
6 changed files with 60 additions and 0 deletions

View File

@ -13,6 +13,7 @@ export namespace MemberUserApi {
loginIp: string;
mark: string;
mobile: string;
email?: string;
name?: string;
nickname?: string;
registerIp: string;

View File

@ -36,6 +36,17 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
{
fieldName: 'email',
label: '邮箱',
component: 'Input',
componentProps: {
allowClear: true,
maxlength: 50,
placeholder: '请输入邮箱',
},
rules: z.string().email('邮箱格式不正确').or(z.literal('')).optional(),
},
{
fieldName: 'status',
label: '状态',
@ -153,6 +164,15 @@ export function useGridFormSchema(): VbenFormSchema[] {
allowClear: true,
},
},
{
fieldName: 'email',
label: '邮箱',
component: 'Input',
componentProps: {
placeholder: '请输入邮箱',
allowClear: true,
},
},
{
fieldName: 'loginDate',
label: '登录时间',
@ -236,6 +256,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
title: '手机号',
minWidth: 120,
},
{
field: 'email',
title: '邮箱',
minWidth: 180,
},
{
field: 'nickname',
title: '昵称',

View File

@ -34,6 +34,10 @@ const [Descriptions] = useDescription({
field: 'mobile',
label: '手机号',
},
{
field: 'email',
label: '邮箱',
},
{
field: 'sex',
label: '性别',

View File

@ -13,6 +13,7 @@ export namespace MemberUserApi {
loginIp: string;
mark: string;
mobile: string;
email?: string;
name?: string;
nickname?: string;
registerIp: string;

View File

@ -36,6 +36,17 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
{
fieldName: 'email',
label: '邮箱',
component: 'Input',
componentProps: {
clearable: true,
maxlength: 50,
placeholder: '请输入邮箱',
},
rules: z.string().email('邮箱格式不正确').or(z.literal('')).optional(),
},
{
fieldName: 'status',
label: '状态',
@ -152,6 +163,15 @@ export function useGridFormSchema(): VbenFormSchema[] {
clearable: true,
},
},
{
fieldName: 'email',
label: '邮箱',
component: 'Input',
componentProps: {
placeholder: '请输入邮箱',
clearable: true,
},
},
{
fieldName: 'loginDate',
label: '登录时间',
@ -235,6 +255,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
title: '手机号',
minWidth: 120,
},
{
field: 'email',
title: '邮箱',
minWidth: 180,
},
{
field: 'nickname',
title: '昵称',

View File

@ -34,6 +34,10 @@ const [Descriptions] = useDescription({
field: 'mobile',
label: '手机号',
},
{
field: 'email',
label: '邮箱',
},
{
field: 'sex',
label: '性别',