| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import { BasicColumn } from '/@/components/Table/src/types/table';
- /**
- * 接入统计 - 多级表头配置
- * 一级表头:基础信息、统计数据
- * 二级表头:基础信息包含序号、区域;统计数据包含所有数值字段
- */
- export function getAccessStatisticsColumns(): BasicColumn[] {
- return [
- {
- title: '序号',
- dataIndex: 'id',
- width: 80,
- fixed: 'left',
- align: 'center',
- customRender: ({ index }: { index: number }) => `${index + 1}`,
- },
- {
- title: '区域',
- dataIndex: 'name',
- width: 150,
- fixed: 'left',
- align: 'center',
- },
- {
- title: '煤矿总数',
- dataIndex: 'mineNum',
- width: 120,
- align: 'center',
- },
- {
- title: '应接入数量',
- dataIndex: 'yjNum',
- width: 120,
- align: 'center',
- },
- {
- title: '无需接入数量',
- dataIndex: 'wxjrNum',
- width: 120,
- align: 'center',
- },
- {
- title: '接入数量',
- dataIndex: 'jrNum',
- width: 120,
- align: 'center',
- },
- {
- title: '未接入数量',
- dataIndex: 'wjNum',
- width: 120,
- align: 'center',
- },
- {
- title: '在线数量',
- dataIndex: 'zxNum',
- width: 120,
- align: 'center',
- },
- {
- title: '离线数量',
- dataIndex: 'lxNum',
- width: 120,
- align: 'center',
- },
- ];
- }
|