feat(member): 会员增加 email 字段
parent
1edaf023c2
commit
26d07e2e28
|
|
@ -13,6 +13,7 @@ export namespace MemberUserApi {
|
||||||
loginIp: string;
|
loginIp: string;
|
||||||
mark: string;
|
mark: string;
|
||||||
mobile: string;
|
mobile: string;
|
||||||
|
email?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
nickname?: string;
|
nickname?: string;
|
||||||
registerIp: string;
|
registerIp: string;
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,17 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'email',
|
||||||
|
label: '邮箱',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
allowClear: true,
|
||||||
|
maxlength: 50,
|
||||||
|
placeholder: '请输入邮箱',
|
||||||
|
},
|
||||||
|
rules: z.string().email('邮箱格式不正确').or(z.literal('')).optional(),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'status',
|
fieldName: 'status',
|
||||||
label: '状态',
|
label: '状态',
|
||||||
|
|
@ -153,6 +164,15 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'email',
|
||||||
|
label: '邮箱',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入邮箱',
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'loginDate',
|
fieldName: 'loginDate',
|
||||||
label: '登录时间',
|
label: '登录时间',
|
||||||
|
|
@ -236,6 +256,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||||
title: '手机号',
|
title: '手机号',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'email',
|
||||||
|
title: '邮箱',
|
||||||
|
minWidth: 180,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'nickname',
|
field: 'nickname',
|
||||||
title: '昵称',
|
title: '昵称',
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,10 @@ const [Descriptions] = useDescription({
|
||||||
field: 'mobile',
|
field: 'mobile',
|
||||||
label: '手机号',
|
label: '手机号',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'email',
|
||||||
|
label: '邮箱',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'sex',
|
field: 'sex',
|
||||||
label: '性别',
|
label: '性别',
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ export namespace MemberUserApi {
|
||||||
loginIp: string;
|
loginIp: string;
|
||||||
mark: string;
|
mark: string;
|
||||||
mobile: string;
|
mobile: string;
|
||||||
|
email?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
nickname?: string;
|
nickname?: string;
|
||||||
registerIp: string;
|
registerIp: string;
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,17 @@ export function useFormSchema(): VbenFormSchema[] {
|
||||||
},
|
},
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'email',
|
||||||
|
label: '邮箱',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
clearable: true,
|
||||||
|
maxlength: 50,
|
||||||
|
placeholder: '请输入邮箱',
|
||||||
|
},
|
||||||
|
rules: z.string().email('邮箱格式不正确').or(z.literal('')).optional(),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'status',
|
fieldName: 'status',
|
||||||
label: '状态',
|
label: '状态',
|
||||||
|
|
@ -152,6 +163,15 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
clearable: true,
|
clearable: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldName: 'email',
|
||||||
|
label: '邮箱',
|
||||||
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入邮箱',
|
||||||
|
clearable: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'loginDate',
|
fieldName: 'loginDate',
|
||||||
label: '登录时间',
|
label: '登录时间',
|
||||||
|
|
@ -235,6 +255,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||||
title: '手机号',
|
title: '手机号',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'email',
|
||||||
|
title: '邮箱',
|
||||||
|
minWidth: 180,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'nickname',
|
field: 'nickname',
|
||||||
title: '昵称',
|
title: '昵称',
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,10 @@ const [Descriptions] = useDescription({
|
||||||
field: 'mobile',
|
field: 'mobile',
|
||||||
label: '手机号',
|
label: '手机号',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'email',
|
||||||
|
label: '邮箱',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'sex',
|
field: 'sex',
|
||||||
label: '性别',
|
label: '性别',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue