comment.data.ts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. import { BasicColumn } from '/@/components/Table';
  2. export const gaspatrolColumnsTwo: 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. children: [
  18. {
  19. title: 'CH4(%)',
  20. dataIndex: 'ch4One',
  21. key: 'ch4One',
  22. align: 'center',
  23. },
  24. {
  25. title: 'CO2(%)',
  26. dataIndex: 'co2One',
  27. key: 'co2One',
  28. align: 'center',
  29. },
  30. {
  31. title: 'CO(ppm)',
  32. dataIndex: 'coOne',
  33. key: 'coOne',
  34. align: 'center',
  35. },
  36. {
  37. title: 'O2(%)',
  38. dataIndex: 'o2One',
  39. key: 'o2One',
  40. align: 'center',
  41. },
  42. {
  43. title: '温度(°C)',
  44. dataIndex: 'tOne',
  45. key: 'tOne',
  46. align: 'center',
  47. },
  48. {
  49. title: '时间',
  50. dataIndex: 'timeOne',
  51. key: 'timeOne',
  52. align: 'center',
  53. },
  54. ]
  55. },
  56. {
  57. title: '第二次',
  58. children: [
  59. {
  60. title: 'CH4(%)',
  61. dataIndex: 'ch4Two',
  62. key: 'ch4Two',
  63. align: 'center',
  64. },
  65. {
  66. title: 'CO2(%)',
  67. dataIndex: 'co2Two',
  68. key: 'co2Two',
  69. align: 'center',
  70. },
  71. {
  72. title: 'CO(ppm)',
  73. dataIndex: 'coTwo',
  74. key: 'coTwo',
  75. align: 'center',
  76. },
  77. {
  78. title: 'O2(%)',
  79. dataIndex: 'o2Two',
  80. key: 'o2Two',
  81. align: 'center',
  82. },
  83. {
  84. title: '温度(°C)',
  85. dataIndex: 'tTwo',
  86. key: 'tTwo',
  87. align: 'center',
  88. },
  89. {
  90. title: '时间',
  91. dataIndex: 'timeTwo',
  92. key: 'timeTwo',
  93. align: 'center',
  94. },
  95. ]
  96. },
  97. {
  98. title: '瓦检员',
  99. dataIndex: 'checkPerson',
  100. key: 'checkPerson',
  101. align: 'center',
  102. },
  103. {
  104. title: '操作',
  105. dataIndex: 'action',
  106. width: 120,
  107. align: 'center',
  108. slots: { customRender: 'action' },
  109. },
  110. ];
  111. export const gaspatrolColumnsOne : BasicColumn[] = [
  112. {
  113. title: '序号',
  114. width: 60,
  115. align: 'center',
  116. customRender: ({ index }: { index: number }) => `${index + 1}`
  117. },
  118. {
  119. title: '地点',
  120. dataIndex: 'strInstallPos',
  121. key: 'strInstallPos',
  122. align: 'center',
  123. },
  124. {
  125. title: 'CH4(%)',
  126. dataIndex: 'ch4One',
  127. key: 'ch4One',
  128. align: 'center',
  129. },
  130. {
  131. title: 'CO2(%)',
  132. dataIndex: 'co2One',
  133. key: 'co2One',
  134. align: 'center',
  135. },
  136. {
  137. title: 'CO(ppm)',
  138. dataIndex: 'coOne',
  139. key: 'coOne',
  140. align: 'center',
  141. },
  142. {
  143. title: 'O2(%)',
  144. dataIndex: 'o2One',
  145. key: 'o2One',
  146. align: 'center',
  147. },
  148. {
  149. title: '温度(°C)',
  150. dataIndex: 'tOne',
  151. key: 'tOne',
  152. align: 'center',
  153. },
  154. {
  155. title: '时间',
  156. dataIndex: 'timeOne',
  157. key: 'timeOne',
  158. align: 'center',
  159. },
  160. {
  161. title: '瓦检员',
  162. dataIndex: 'checkPerson',
  163. key: 'checkPerson',
  164. align: 'center',
  165. },
  166. {
  167. title: '操作',
  168. dataIndex: 'action',
  169. width: 200,
  170. align: 'center',
  171. slots: { customRender: 'action' },
  172. },
  173. ];