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

85 lines
1.4 KiB

import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
//列表展示
const responseLevelOptions = [
{
value: '常规',
},
{
value: '紧急',
},
{
value: '特级',
},
];
export const formSchemas: FormSchema[] = [
{
field: 'projectName',
label: '项目名称',
component: 'Select',
componentProps: {
options: [
],
},
},
{
field: 'projectName',
label: '响应级别',
component: 'Select',
componentProps: {
options: responseLevelOptions,
},
},
{
label: '编号',
field: 'id',
component: 'Input',
componentProps: {
placeholder: '输入编号',
},
},
{
field: 'fixRange',
label: '报修范围',
component: 'RangePicker',
},
{
field: 'faultSubcategory',
label: '故障小类',
component: 'Select',
componentProps: {
options: [
],
},
},
];
export const columns: BasicColumn[] = [
{
title: '编号',
dataIndex: 'id',
},
{
title: '报修时间',
dataIndex: 'repairTime',
},
{
title: '响应级别',
dataIndex: 'responseLevel',
},
{
title: '故障描述',
dataIndex: 'faultDescription',
},
{
title: '故障地点',
dataIndex: 'faultLocation',
},
{
title: '当前状态',
dataIndex: 'status',
customRender: ({ value }) => {
return value == 0 ? '启用' : '禁用';
},
},
];