historyLsit.data.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import { BasicColumn } from '/@/components/Table';
  2. export const historyColumns: BasicColumn[] = [
  3. // {
  4. // title: '序号',
  5. // width: 60,
  6. // align: 'center',
  7. // customRender: ({ index }: { index: number }) => `${index + 1}`
  8. // },
  9. {
  10. title: '安装位置',
  11. dataIndex: 'strinstallpos',
  12. key: 'strinstallpos',
  13. align: 'center',
  14. },
  15. {
  16. title: 'Ip地址',
  17. dataIndex: 'stripC',
  18. key: 'stripC',
  19. width: 90,
  20. align: 'center',
  21. },
  22. {
  23. title: '监测值',
  24. dataIndex: 'valueJc',
  25. key: 'valueJc',
  26. align: 'center',
  27. },
  28. {
  29. title: '供电模式',
  30. dataIndex: 'gdmsC',
  31. key: 'gdmsC',
  32. width: 90,
  33. align: 'center',
  34. },
  35. {
  36. title: '电池容量(%)',
  37. dataIndex: 'dcrl',
  38. key: 'dcrl',
  39. width: 90,
  40. align: 'center',
  41. },
  42. {
  43. title: '启用状态',
  44. dataIndex: 'linkIdC',
  45. key: 'linkIdC',
  46. width: 80,
  47. align: 'center',
  48. },
  49. {
  50. title: '通讯状态',
  51. dataIndex: 'linkstatusC',
  52. key: 'linkstatusC',
  53. width: 80,
  54. align: 'center',
  55. },
  56. // {
  57. // title: '时间',
  58. // dataIndex: 'updateTime',
  59. // key: 'updateTime',
  60. // width: 120,
  61. // align: 'center',
  62. // },
  63. {
  64. title: '操作',
  65. dataIndex: 'action',
  66. width: 220,
  67. align: 'center',
  68. slots: { customRender: 'action' },
  69. },
  70. ];