dust-table.data.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. export const columns = [
  2. {
  3. title: '序号',
  4. width: 60,
  5. align: 'center',
  6. customRender: ({ index }: { index: number }) => `${index + 1}`,
  7. },
  8. {
  9. title: '工作场所',
  10. dataIndex: 'gzcs',
  11. key: 'gzcs',
  12. width: 100,
  13. align: 'center',
  14. },
  15. {
  16. title: '工种',
  17. dataIndex: 'gz',
  18. key: 'gz',
  19. width: 100,
  20. align: 'center',
  21. },
  22. {
  23. title: '监测地点',
  24. dataIndex: 'jcdd',
  25. key: 'jcdd',
  26. width: 100,
  27. align: 'center',
  28. },
  29. {
  30. title: '粉尘种类',
  31. dataIndex: 'fczl',
  32. key: 'fczl',
  33. width: 80,
  34. align: 'center',
  35. },
  36. {
  37. title: '总尘(短时间监测浓度,单位:mg/m³)',
  38. width: 100,
  39. align: 'center',
  40. children: [
  41. {
  42. title: '作业工序-生产',
  43. dataIndex: 'sc_zcds',
  44. key: 'sc_zcds',
  45. width: 100,
  46. align: 'center',
  47. },
  48. {
  49. title: '作业工序-检修',
  50. dataIndex: 'jx_zcds',
  51. key: 'jx_zcds',
  52. width: 100,
  53. align: 'center',
  54. },
  55. ],
  56. },
  57. {
  58. title: '呼尘(短时间监测浓度,单位:mg/m³)',
  59. width: 100,
  60. align: 'center',
  61. children: [
  62. {
  63. title: '作业工序-生产',
  64. dataIndex: 'sc_hcds',
  65. key: 'sc_hcds',
  66. width: 100,
  67. align: 'center',
  68. },
  69. {
  70. title: '作业工序-检修',
  71. dataIndex: 'jx_hcds',
  72. key: 'jx_hcds',
  73. width: 100,
  74. align: 'center',
  75. },
  76. ],
  77. },
  78. {
  79. title: '总尘(时间加权平均浓度,单位:mg/m³)',
  80. dataIndex: 'zcjqpj',
  81. key: 'zcjqpj',
  82. width: 100,
  83. align: 'center',
  84. },
  85. {
  86. title: '呼尘(时间加权平均浓度,单位:mg/m³)',
  87. dataIndex: 'hcjqpj',
  88. key: 'hcjqpj',
  89. width: 100,
  90. align: 'center',
  91. },
  92. {
  93. title: '总尘容许浓度(mg/m³)',
  94. children: [
  95. {
  96. title: '短时间监测浓度',
  97. dataIndex: 'zcrxd_ds',
  98. key: 'zcrxd_ds',
  99. width: 100,
  100. align: 'center',
  101. },
  102. {
  103. title: '时间加权平均浓度',
  104. dataIndex: 'zcrxd_jqpj',
  105. key: 'zcrxd_jqpj',
  106. width: 120,
  107. align: 'center',
  108. },
  109. ],
  110. },
  111. {
  112. title: '呼尘容许浓度(mg/m³)',
  113. children: [
  114. {
  115. title: '短时间监测浓度',
  116. dataIndex: 'hcrxd_ds',
  117. key: 'hcrxd_ds',
  118. width: 120,
  119. align: 'center',
  120. },
  121. {
  122. title: '时间加权平均浓度',
  123. dataIndex: 'hcrxd_jqpj',
  124. key: 'hcrxd_jqpj',
  125. width: 120,
  126. align: 'center',
  127. },
  128. ],
  129. },
  130. ];
  131. export const Dltcolumns = [
  132. {
  133. title: '序号',
  134. width: 60,
  135. align: 'center',
  136. customRender: ({ index }: { index: number }) => `${index + 1}`,
  137. },
  138. {
  139. title: '监测地点',
  140. dataIndex: 'jcdd',
  141. key: 'jcdd',
  142. width: 100,
  143. align: 'center',
  144. },
  145. {
  146. title: '粉尘种类',
  147. dataIndex: 'fczl',
  148. key: 'fczl',
  149. width: 80,
  150. align: 'center',
  151. },
  152. {
  153. title: '总尘(短时间监测浓度,单位:mg/m³)',
  154. width: 100,
  155. align: 'center',
  156. children: [
  157. {
  158. title: '作业工序-生产',
  159. dataIndex: 'sc_zcds',
  160. key: 'sc_zcds',
  161. width: 100,
  162. align: 'center',
  163. },
  164. {
  165. title: '作业工序-检修',
  166. dataIndex: 'jx_zcds',
  167. key: 'jx_zcds',
  168. width: 100,
  169. align: 'center',
  170. },
  171. ],
  172. },
  173. {
  174. title: '呼尘(短时间监测浓度,单位:mg/m³)',
  175. width: 100,
  176. align: 'center',
  177. children: [
  178. {
  179. title: '作业工序-生产',
  180. dataIndex: 'sc_hcds',
  181. key: 'sc_hcds',
  182. width: 100,
  183. align: 'center',
  184. },
  185. {
  186. title: '作业工序-检修',
  187. dataIndex: 'jx_hcds',
  188. key: 'jx_hcds',
  189. width: 100,
  190. align: 'center',
  191. },
  192. ],
  193. },
  194. {
  195. title: '总尘(时间加权平均浓度,单位:mg/m³)',
  196. dataIndex: 'zcjqpj',
  197. key: 'zcjqpj',
  198. width: 100,
  199. align: 'center',
  200. },
  201. {
  202. title: '呼尘(时间加权平均浓度,单位:mg/m³)',
  203. dataIndex: 'hcjqpj',
  204. key: 'hcjqpj',
  205. width: 100,
  206. align: 'center',
  207. },
  208. ];
  209. export const fieldMapping = {
  210. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  211. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  212. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  213. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  214. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  215. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  216. zcrxd_ds: '总尘容许浓度(短时间监测浓度,mg/m³)',
  217. zcrxd_jqpj: '总尘容许浓度(时间加权平均浓度,mg/m³)',
  218. hcrxd_ds: '呼尘容许浓度(短时间监测浓度,mg/m³)',
  219. hcrxd_jqpj: '呼尘容许浓度(时间加权平均浓度,mg/m³)',
  220. };
  221. export const dataColumns = [
  222. {
  223. title: '监测字段',
  224. align: 'center',
  225. dataIndex: 'key',
  226. key: 'key',
  227. width: 200,
  228. customRender: ({ text }) => fieldMapping[text] || text,
  229. },
  230. {
  231. title: '最大值',
  232. dataIndex: 'value',
  233. align: 'center',
  234. width: 100,
  235. key: 'value',
  236. },
  237. {
  238. title: '工种',
  239. width: 100,
  240. dataIndex: 'gz',
  241. align: 'center',
  242. key: 'gz',
  243. },
  244. {
  245. width: 100,
  246. align: 'center',
  247. title: '检测地点',
  248. dataIndex: 'jcdd',
  249. key: 'jcdd',
  250. },
  251. {
  252. width: 100,
  253. align: 'center',
  254. title: '粉尘种类',
  255. dataIndex: 'fczl',
  256. key: 'fczl',
  257. },
  258. ];
  259. export const AllDataColumns = [
  260. {
  261. title: '监测字段',
  262. align: 'center',
  263. dataIndex: 'key',
  264. key: 'key',
  265. width: 200,
  266. customRender: ({ text }) => fieldMapping[text] || text,
  267. },
  268. {
  269. title: '最大值',
  270. dataIndex: 'value',
  271. align: 'center',
  272. width: 100,
  273. key: 'value',
  274. },
  275. {
  276. width: 100,
  277. title: '工作场所',
  278. dataIndex: 'gzcs',
  279. align: 'center',
  280. key: 'gzcs',
  281. },
  282. {
  283. title: '工种',
  284. width: 100,
  285. dataIndex: 'gz',
  286. align: 'center',
  287. key: 'gz',
  288. },
  289. {
  290. width: 100,
  291. align: 'center',
  292. title: '检测地点',
  293. dataIndex: 'jcdd',
  294. key: 'jcdd',
  295. },
  296. {
  297. width: 100,
  298. align: 'center',
  299. title: '粉尘种类',
  300. dataIndex: 'fczl',
  301. key: 'fczl',
  302. },
  303. ];