import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; import { getDictOptions } from '#/utils/dict'; import { renderDict } from '#/utils/render'; export const modalSchema: FormSchemaGetter = () => [ { label: '', fieldName: 'id', component: 'Input', dependencies: { show: () => false, triggerFields: [''], }, }, { label: '姓名', fieldName: 'username', component: 'Input', rules:'required' }, { label: '部门', fieldName: 'departmentId', component: 'ApiSelect', rules:'required' }, { label: '请假类型', fieldName: 'leaveType', component: 'Select', componentProps: { }, rules:'required' }, { label: '开始时间', fieldName: 'startTime', component: 'DatePicker', componentProps: { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss', }, rules:'required' }, { label: '结束时间', fieldName: 'endTime', component: 'DatePicker', componentProps: { showTime: true, format: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD HH:mm:ss', }, rules:'required' }, { label: '合计时间', fieldName: 'totalDuration', component: 'Input', disabled:true, rules:'required' }, { label: '请假事由', fieldName: 'reason', component: 'Textarea', rules:'required' } ];