safetyList.data.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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: 'strinstallpos',
  12. key: 'strinstallpos',
  13. align: 'center',
  14. },
  15. {
  16. title: '监测值',
  17. dataIndex: 'valueJc',
  18. key: 'valueJc',
  19. align: 'center',
  20. },
  21. {
  22. title: '供电模式',
  23. dataIndex: 'gdmsC',
  24. key: 'gdmsC',
  25. width: 90,
  26. align: 'center',
  27. },
  28. {
  29. title: '电池容量(%)',
  30. dataIndex: 'dcrl',
  31. key: 'dcrl',
  32. width: 110,
  33. align: 'center',
  34. },
  35. {
  36. title: '启用状态',
  37. dataIndex: 'linkIdC',
  38. key: 'linkIdC',
  39. width: 80,
  40. align: 'center',
  41. },
  42. {
  43. title: '通讯状态',
  44. dataIndex: 'linkstatusC',
  45. key: 'linkstatusC',
  46. width: 80,
  47. align: 'center',
  48. },
  49. {
  50. title: '时间',
  51. dataIndex: 'updateTime',
  52. key: 'updateTime',
  53. width: 120,
  54. align: 'center',
  55. },
  56. {
  57. title: '操作',
  58. dataIndex: 'action',
  59. width: 220,
  60. align: 'center',
  61. slots: { customRender: 'action' },
  62. },
  63. ];
  64. export const columnsDetail: BasicColumn[] = [
  65. {
  66. title: '读写状态',
  67. dataIndex: 'dxzt',
  68. key: 'dxzt',
  69. align: 'center',
  70. },
  71. {
  72. title: '程序版本号',
  73. dataIndex: 'cxbbh',
  74. key: 'cxbbh',
  75. align: 'center',
  76. },
  77. {
  78. title: '电源状态',
  79. dataIndex: 'dyzt',
  80. key: 'dyzt',
  81. align: 'center',
  82. },
  83. {
  84. title: '电量(%)',
  85. dataIndex: 'dl',
  86. key: 'dl',
  87. align: 'center',
  88. },
  89. {
  90. title: '断线标志',
  91. dataIndex: 'dxbz',
  92. key: 'dxbz',
  93. align: 'center',
  94. },
  95. {
  96. title: '电池组总电压(mv)',
  97. dataIndex: 'dczzdy',
  98. key: 'dczzdy',
  99. align: 'center',
  100. },
  101. {
  102. title: '负载电流(mA)',
  103. dataIndex: 'fzcdl',
  104. key: 'fzcdl',
  105. align: 'center',
  106. },
  107. {
  108. title: '电池数量(节)',
  109. dataIndex: 'dcsl',
  110. key: 'dcsl',
  111. align: 'center',
  112. },
  113. {
  114. title: '单节电池电压1',
  115. dataIndex: 'djdcdy1',
  116. key: 'djdcdy1',
  117. align: 'center',
  118. },
  119. {
  120. title: '单节电池电压2',
  121. dataIndex: 'djdcdy2',
  122. key: 'djdcdy2',
  123. align: 'center',
  124. },
  125. {
  126. title: '单节电池电压3',
  127. dataIndex: 'djdcdy3',
  128. key: 'djdcdy3',
  129. align: 'center',
  130. },
  131. {
  132. title: '单节电池电压4',
  133. dataIndex: 'djdcdy4',
  134. key: 'djdcdy4',
  135. align: 'center',
  136. },
  137. {
  138. title: '单节电池电压5',
  139. dataIndex: 'djdcdy5',
  140. key: 'djdcdy5',
  141. align: 'center',
  142. },
  143. {
  144. title: '单节电池电压6',
  145. dataIndex: 'djdcdy6',
  146. key: 'djdcdy6',
  147. align: 'center',
  148. },
  149. {
  150. title: '操作',
  151. dataIndex: 'action',
  152. width: 150,
  153. align: 'center',
  154. slots: { customRender: 'action' },
  155. },
  156. ];