You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
// 表单校验
|
|
export const GroupRules = reactive({
|
|
groupNo: [required],
|
|
groupName: [required]
|
|
})
|
|
|
|
export const Group = useCrudSchemas(reactive<CrudSchema[]>([
|
|
// {
|
|
// label: '主键、自增',
|
|
// field: 'id',
|
|
// sort: 'custom',
|
|
// isForm: false,
|
|
// },
|
|
{
|
|
label: '集团编号',
|
|
field: 'groupNo',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
},
|
|
{
|
|
label: '集团名称',
|
|
field: 'groupName',
|
|
sort: 'custom',
|
|
isSearch: true,
|
|
},
|
|
{
|
|
label: '描述',
|
|
field: 'groupDesc',
|
|
sort: 'custom',
|
|
isSearch: false,
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
field: 'createTime',
|
|
sort: 'custom',
|
|
formatter: dateFormatter,
|
|
isSearch: false,
|
|
search: {
|
|
component: 'DatePicker',
|
|
componentProps: {
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
type: 'daterange',
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
|
|
}
|
|
},
|
|
isForm: false,
|
|
},
|
|
{
|
|
label: '操作',
|
|
field: 'action',
|
|
isForm: false,
|
|
table: {
|
|
width: 150,
|
|
fixed: 'right'
|
|
}
|
|
}
|
|
]))
|
|
|