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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

89 lines
1.8 KiB

2 years ago
import { BasicColumn, FormSchema, useRender } from '@/components/Table'
2 years ago
import { DICT_TYPE, getDictOptions } from '@/utils/dict'
2 years ago
export const columns: BasicColumn[] = [
{
title: '申请编号',
dataIndex: 'id',
width: 100
},
{
title: '状态',
dataIndex: 'result',
width: 180,
customRender: ({ text }) => {
return useRender.renderDict(text, DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT)
}
},
{
title: '开始时间',
dataIndex: 'startTime',
width: 180,
customRender: ({ text }) => {
return useRender.renderDate(text)
}
},
{
title: '结束时间',
dataIndex: 'endTime',
width: 180,
customRender: ({ text }) => {
return useRender.renderDate(text)
}
},
{
title: '请假类型',
dataIndex: 'type',
width: 180,
customRender: ({ text }) => {
return useRender.renderDict(text, DICT_TYPE.BPM_OA_LEAVE_TYPE)
}
},
{
title: '原因',
dataIndex: 'reason',
width: 180
},
{
title: '申请时间',
dataIndex: 'applyTime',
width: 180,
customRender: ({ text }) => {
return useRender.renderDate(text)
}
}
]
export const searchFormSchema: FormSchema[] = [
{
label: '请假类型',
field: 'status',
component: 'Select',
componentProps: {
2 years ago
options: getDictOptions(DICT_TYPE.BPM_OA_LEAVE_TYPE)
2 years ago
},
colProps: { span: 8 }
},
{
label: '申请时间',
field: 'createTime',
component: 'RangePicker',
colProps: { span: 8 }
},
{
label: '结果',
field: 'status',
component: 'Select',
componentProps: {
2 years ago
options: getDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT)
2 years ago
},
colProps: { span: 8 }
},
{
label: '原因',
field: 'reason',
component: 'Input',
colProps: { span: 8 }
}
]