gasAnalysis.data.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import { BasicColumn } from '/@/components/Table';
  2. export const columns: BasicColumn[] = [
  3. {
  4. title: '序号',
  5. width: 60,
  6. align: 'center',
  7. customRender: ({ index }: { index: number }) => `${index + 1}`
  8. },
  9. {
  10. title: '时间',
  11. dataIndex: 'reportTime',
  12. key: 'reportTime',
  13. align: 'center',
  14. },
  15. {
  16. title: '班次',
  17. dataIndex: 'bc',
  18. key: 'bc',
  19. align: 'center',
  20. },
  21. {
  22. title: '巡检类别',
  23. dataIndex: 'insType',
  24. key: 'insType',
  25. align: 'center',
  26. },
  27. {
  28. title: '巡检总数',
  29. dataIndex: 'xjzs',
  30. key: 'xjzs',
  31. align: 'center',
  32. },
  33. {
  34. title: '已巡检数',
  35. dataIndex: 'yxjs',
  36. key: 'yxjs',
  37. align: 'center',
  38. },
  39. {
  40. title: '未巡检数',
  41. dataIndex: 'wxjs',
  42. key: 'wxjs',
  43. align: 'center',
  44. },
  45. {
  46. title: '漏检率',
  47. dataIndex: 'ljv',
  48. key: 'ljv',
  49. align: 'center',
  50. },
  51. {
  52. title: '漏检详情',
  53. dataIndex: 'ljxq',
  54. key: 'ljxq',
  55. align: 'center',
  56. },
  57. {
  58. title: '班总漏检率',
  59. dataIndex: 'bzljv',
  60. key: 'bzljv',
  61. align: 'center',
  62. },
  63. {
  64. title: '日总漏检率',
  65. dataIndex: 'totalLossDay',
  66. key: 'totalLossDay',
  67. align: 'center',
  68. },
  69. ];
  70. //分页参数
  71. export const pagination = {
  72. current: 1, // 当前页码
  73. pageSize: 20, // 每页显示条数
  74. total: 0, // 总条目数,后端返回
  75. // showTotal: (total, range) => `${range[0]}-${range[1]} 条,总共 ${total} 条`, // 分页右下角显示信息
  76. showSizeChanger: true, // 是否可改变每页显示条数
  77. pageSizeOptions: ['10', '20', '50'], // 可选的每页显示条数
  78. };