1、考勤组详情
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-22 19:11:52 +08:00
parent 34d50c58af
commit b94c6c9268
8 changed files with 444 additions and 89 deletions

View File

@@ -147,7 +147,10 @@ export const modalSchema: FormSchemaGetter = () => [
label: '联系电话',
fieldName: 'phone',
component: 'Input',
rules: z.string().regex(/^1[3-9]\d{9}$/, { message: '格式错误' }),
rules:z.union([
z.string().regex(/^1[3-9]\d{9}$/, { message: '手机号格式错误' }),
z.number().int().min(1000000000).max(19999999999, { message: '手机号格式错误' })
]).transform(val => val.toString()),
},
{
label: '入驻位置',