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

71 lines
1.3 KiB

2 weeks ago
import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
export const formSchemas: FormSchema[] = [
{
field: 'area',
label: '所在区域',
component: 'Select',
componentProps: {
options: [],
},
},
{
field: 'monitorCompany',
label: '监理公司',
component: 'Select',
componentProps: {
options: [
{
value: '宁波国研信息科技有限公司',
},
],
},
},
];
export const columns: BasicColumn[] = [
{
title: '站点',
dataIndex: 'station',
},
{
title: '所属区域',
dataIndex: 'area',
},
{
title: '状态',
dataIndex: 'status',
},
{
title: '运维单位',
dataIndex: 'ioCompany',
},
{
title: '最新数据时间',
dataIndex: 'lastTime',
},
2 weeks ago
{
title: '本月应收数据',
dataIndex: 'planIncome',
},
{
title: '本月实收数据',
dataIndex: 'actualIncome',
},
{
title: '数据完整率',
dataIndex: 'completionRate',
customRender({ record }) {
if (record.actualIncome) {
return (record.actualIncome*100/ record.planIncome).toFixed(2);
2 weeks ago
}
return null;
},
},
{
title: '监理单位',
dataIndex: 'monitorCompany',
},
];