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