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

80 lines
1.1 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',
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
},
];