access.data.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { BasicColumn } from '/@/components/Table/src/types/table';
  2. /**
  3. * 接入统计 - 多级表头配置
  4. * 一级表头:基础信息、统计数据
  5. * 二级表头:基础信息包含序号、区域;统计数据包含所有数值字段
  6. */
  7. export function getAccessStatisticsColumns(): BasicColumn[] {
  8. return [
  9. {
  10. title: '序号',
  11. dataIndex: 'id',
  12. width: 80,
  13. fixed: 'left',
  14. align: 'center',
  15. customRender: ({ index }: { index: number }) => `${index + 1}`,
  16. },
  17. {
  18. title: '区域',
  19. dataIndex: 'name',
  20. width: 150,
  21. fixed: 'left',
  22. align: 'center',
  23. },
  24. {
  25. title: '煤矿总数',
  26. dataIndex: 'mineNum',
  27. width: 120,
  28. align: 'center',
  29. },
  30. {
  31. title: '应接入数量',
  32. dataIndex: 'yjNum',
  33. width: 120,
  34. align: 'center',
  35. },
  36. {
  37. title: '无需接入数量',
  38. dataIndex: 'wxjrNum',
  39. width: 120,
  40. align: 'center',
  41. },
  42. {
  43. title: '接入数量',
  44. dataIndex: 'jrNum',
  45. width: 120,
  46. align: 'center',
  47. },
  48. {
  49. title: '未接入数量',
  50. dataIndex: 'wjNum',
  51. width: 120,
  52. align: 'center',
  53. },
  54. {
  55. title: '在线数量',
  56. dataIndex: 'zxNum',
  57. width: 120,
  58. align: 'center',
  59. },
  60. {
  61. title: '离线数量',
  62. dataIndex: 'lxNum',
  63. width: 120,
  64. align: 'center',
  65. },
  66. ];
  67. }