feat: search form

This commit is contained in:
dap
2024-09-24 11:23:02 +08:00
parent c5971e4407
commit c1e58831e1
32 changed files with 924 additions and 49 deletions

View File

@@ -4,6 +4,41 @@ import dayjs from 'dayjs';
import { type FormSchemaGetter, z } from '#/adapter';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'tenantId',
label: '租户编号',
},
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'companyName',
label: '租户名称',
},
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'contactUserName',
label: '联系人',
},
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'contactPhone',
label: '联系电话',
},
];
const defaultExpireTime = dayjs()
.add(365, 'days')
.startOf('day')