Files
SaaS-lib/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/config.ts

122 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-07-11 09:17:20 +08:00
export const tableColumns = [
{
title: '序号',
customRender: (text: any) => {
return text.index + 1;
2024-07-10 11:01:46 +08:00
},
2024-07-11 09:17:20 +08:00
},
{
title: '能源种类',
2024-07-11 16:23:42 +08:00
dataIndex: 'energyType',
2024-07-11 09:17:20 +08:00
},
{
title: '计量单位',
2024-07-11 16:23:42 +08:00
className: 'unit',
dataIndex: 'unit',
2024-07-11 09:17:20 +08:00
},
{
title: '全年',
2024-07-11 16:23:42 +08:00
dataIndex: 'yearly',
2024-07-11 09:17:20 +08:00
},
{
title: '1月',
2024-07-11 16:23:42 +08:00
dataIndex: 'jan',
2024-07-12 16:59:33 +08:00
// customRender: ({ text, record }) => ({
// children: text,
// attrs: {
// style: record.janFlag === 1 ? 'color: red' : 'color: blue'
// }
// })
2024-07-11 09:17:20 +08:00
},
{
title: '2月',
2024-07-11 16:23:42 +08:00
dataIndex: 'feb',
2024-07-11 09:17:20 +08:00
},
{
title: '3月',
2024-07-11 16:23:42 +08:00
dataIndex: 'mar',
2024-07-11 09:17:20 +08:00
},
{
title: '4月',
2024-07-11 16:23:42 +08:00
dataIndex: 'apr',
2024-07-11 09:17:20 +08:00
},
{
title: '5月',
2024-07-11 16:23:42 +08:00
dataIndex: 'may',
2024-07-11 09:17:20 +08:00
},
{
title: '6月',
2024-07-11 16:23:42 +08:00
dataIndex: 'jun',
2024-07-11 09:17:20 +08:00
},
{
title: '7月',
2024-07-11 16:23:42 +08:00
dataIndex: 'jul',
2024-07-11 09:17:20 +08:00
},
{
title: '8月',
2024-07-11 16:23:42 +08:00
dataIndex: 'aug',
2024-07-11 09:17:20 +08:00
},
{
title: '9月',
2024-07-11 16:23:42 +08:00
dataIndex: 'sep',
2024-07-11 09:17:20 +08:00
},
{
title: '10月',
2024-07-11 16:23:42 +08:00
dataIndex: 'oct',
2024-07-11 09:17:20 +08:00
},
{
title: '11月',
2024-07-11 16:23:42 +08:00
dataIndex: 'nov',
2024-07-11 09:17:20 +08:00
},
{
title: '12月',
2024-07-11 16:23:42 +08:00
dataIndex: 'dec',
2024-07-11 09:17:20 +08:00
},
{
title: '操作',
key: 'action',
width: 130
},
2024-07-15 15:54:07 +08:00
];
export const columns = [
{
title: '序号',
customRender: (text: any) => {
return text.index + 1;
},
},
{
title: '因子值',
dataIndex: 'energyType',
},
{
title: '计量单位',
className: 'unit',
dataIndex: 'unit',
},
{
title: '更新时间',
className: 'unit',
dataIndex: 'unit',
},
{
title: '启用时间',
className: 'unit',
dataIndex: 'unit',
},
{
title: '结束时间',
className: 'unit',
dataIndex: 'unit',
},
{
title: '数据来源',
className: 'unit',
dataIndex: 'unit',
},
{
title: '操作',
key: 'action',
width: 130
},
2024-07-11 09:17:20 +08:00
];