运维管理平台前端
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.
 
 
 
 
 
 

121 lines
2.0 KiB

import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
//列表展示
const statusOptions = [
{
label: '待派遣',
value: 0,
},
{
label: '待接单',
value: 1,
},
{
label: '处理中',
value: 2,
},
{
label: '处理中(已延期)',
value: 7,
},
{
label: '作废',
value: 8,
},
{
label: '待接单(派遣)',
value: 9,
},
{
label: '待接单(转派)',
value: 10,
},
{
label: '运维单位处理时回退至派遣',
value: 3,
},
{
label: '初审',
value: 4,
},
{
label: '终审',
value: 5,
},
{
label: '结案',
value: 6,
},
];
export const formSchemas: FormSchema[] = [
{
label: '编号',
field: 'id',
component: 'Input',
componentProps: {
placeholder: '输入编号',
},
},
{
field: '[startDate, endDate]',
label: '报修范围',
component: 'RangePicker',
componentProps: {
format: 'YYYY-MM-DD',
valueFormat: 'YYYY-MM-DD',
},
},
{
field: 'faultLocation',
label: '故障地点',
component: 'Select',
componentProps: {
options: [],
},
},
];
export const columns: BasicColumn[] = [
{
title: '编号',
dataIndex: 'id',
width: 200,
},
{
title: '报修时间',
dataIndex: 'repairTime',
width: 150,
},
{
title: '响应级别',
dataIndex: 'responseLevel',
},
{
title: '故障描述',
dataIndex: 'faultDescription',
},
{
title: '故障地点',
dataIndex: 'faultLocation',
width: '18%',
},
{
title: '剩余处理时间',
dataIndex: 'restTime',
width: 150,
},
{
title: '剩余接单时间',
dataIndex: 'orderAcceptDeadline',
width: 150,
},
{
title: '当前状态',
dataIndex: 'status',
customRender: ({ value }) => {
return statusOptions.find((i) => {
return i.value == value;
})?.label;
},
},
];