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

78 lines
1.3 KiB

import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
export const formSchemas: FormSchema[] = [
{
label: '编号',
4 months ago
field: 'id',
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: '编号',
4 months ago
dataIndex: 'id',
},
{
title: '报修时间',
3 months ago
dataIndex: 'repairTime',
},
{
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',
},
];