import { BasicColumn } from '@/components/Table'; import { FormSchema } from '@/components/Form'; export const formSchemas: FormSchema[] = [ { label: '编号', field: 'workOrderInfoId', component: 'Input', componentProps: { placeholder: '输入编号', }, }, { field: 'fixRange', label: '报修范围', component: 'RangePicker', }, { label: '地址', field: 'location', component: 'Input', componentProps: { placeholder: '输入天数', }, }, ]; //列表展示 const responseLevelOptions = [ { value: 0, label: '常规', }, { value: 1, label: '紧急', }, { value: 2, label: '特级', }, ]; export const columns: BasicColumn[] = [ { title: '编号', dataIndex: 'workOrderInfoId', }, { title: '报修时间', dataIndex: 'fixTime', }, { title: '响应级别', dataIndex: 'responseLevel', customRender({ text }) { return responseLevelOptions.find((i) => { return i.value == text; })?.label; }, }, { title: '故障描述', dataIndex: 'faultDescription', }, { title: '故障地点', dataIndex: 'faultLocation', }, { title: '处理时限', dataIndex: 'handleTime', }, { title: '当前状态', dataIndex: 'status', }, ];