dust-table.data.ts 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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 Swcolumns = [
  210. {
  211. title: '序号',
  212. width: 60,
  213. align: 'center',
  214. customRender: ({ index }: { index: number }) => `${index + 1}`,
  215. },
  216. {
  217. title: '班次',
  218. dataIndex: 'class',
  219. key: 'class',
  220. width: 100,
  221. align: 'center',
  222. },
  223. {
  224. title: '工作场所',
  225. dataIndex: 'gzcs',
  226. key: 'gzcs',
  227. width: 100,
  228. align: 'center',
  229. },
  230. {
  231. title: '监测地点',
  232. dataIndex: 'jcdd',
  233. key: 'jcdd',
  234. width: 100,
  235. align: 'center',
  236. },
  237. {
  238. title: '粉尘种类',
  239. dataIndex: 'fczl',
  240. key: 'fczl',
  241. width: 80,
  242. align: 'center',
  243. },
  244. {
  245. title: '总尘(时间加权平均浓度,单位:mg/m³)',
  246. dataIndex: 'zcjqpj',
  247. key: 'zcjqpj',
  248. width: 100,
  249. align: 'center',
  250. },
  251. {
  252. title: '呼尘(时间加权平均浓度,单位:mg/m³)',
  253. dataIndex: 'hcjqpj',
  254. key: 'hcjqpj',
  255. width: 100,
  256. align: 'center',
  257. },
  258. ];
  259. export const fieldMapping = {
  260. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  261. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  262. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  263. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  264. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  265. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  266. zcrxd_ds: '总尘容许浓度(短时间监测浓度,mg/m³)',
  267. zcrxd_jqpj: '总尘容许浓度(时间加权平均浓度,mg/m³)',
  268. hcrxd_ds: '呼尘容许浓度(短时间监测浓度,mg/m³)',
  269. hcrxd_jqpj: '呼尘容许浓度(时间加权平均浓度,mg/m³)',
  270. };
  271. export const fieldDltMapping = {
  272. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  273. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  274. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  275. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  276. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  277. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  278. };
  279. export const fieldSwMapping = {
  280. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  281. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  282. };
  283. export const dataColumns = [
  284. {
  285. title: '监测字段',
  286. align: 'center',
  287. dataIndex: 'key',
  288. key: 'key',
  289. width: 200,
  290. customRender: ({ text }) => fieldMapping[text] || text,
  291. },
  292. {
  293. title: '最大值',
  294. dataIndex: 'value',
  295. align: 'center',
  296. width: 100,
  297. key: 'value',
  298. },
  299. {
  300. title: '工种',
  301. width: 100,
  302. dataIndex: 'gz',
  303. align: 'center',
  304. key: 'gz',
  305. },
  306. {
  307. width: 100,
  308. align: 'center',
  309. title: '检测地点',
  310. dataIndex: 'jcdd',
  311. key: 'jcdd',
  312. },
  313. {
  314. width: 100,
  315. align: 'center',
  316. title: '粉尘种类',
  317. dataIndex: 'fczl',
  318. key: 'fczl',
  319. },
  320. ];
  321. export const dataDltColumns = [
  322. {
  323. title: '监测字段',
  324. align: 'center',
  325. dataIndex: 'key',
  326. key: 'key',
  327. width: 200,
  328. customRender: ({ text }) => fieldDltMapping[text] || text,
  329. },
  330. {
  331. title: '最大值',
  332. dataIndex: 'value',
  333. align: 'center',
  334. width: 100,
  335. key: 'value',
  336. },
  337. {
  338. width: 100,
  339. align: 'center',
  340. title: '检测地点',
  341. dataIndex: 'jcdd',
  342. key: 'jcdd',
  343. },
  344. {
  345. width: 100,
  346. align: 'center',
  347. title: '粉尘种类',
  348. dataIndex: 'fczl',
  349. key: 'fczl',
  350. },
  351. ];
  352. export const dataSwColumns = [
  353. {
  354. title: '监测字段',
  355. align: 'center',
  356. dataIndex: 'key',
  357. key: 'key',
  358. width: 200,
  359. customRender: ({ text }) => fieldSwMapping[text] || text,
  360. },
  361. {
  362. title: '最大值',
  363. dataIndex: 'value',
  364. align: 'center',
  365. width: 100,
  366. key: 'value',
  367. },
  368. {
  369. width: 100,
  370. align: 'center',
  371. title: '检测地点',
  372. dataIndex: 'jcdd',
  373. key: 'jcdd',
  374. },
  375. {
  376. width: 100,
  377. align: 'center',
  378. title: '粉尘种类',
  379. dataIndex: 'fczl',
  380. key: 'fczl',
  381. },
  382. ];
  383. export const AllDataColumns = [
  384. {
  385. title: '监测字段',
  386. align: 'center',
  387. dataIndex: 'key',
  388. key: 'key',
  389. width: 200,
  390. customRender: ({ text }) => fieldMapping[text] || text,
  391. },
  392. {
  393. title: '最大值',
  394. dataIndex: 'value',
  395. align: 'center',
  396. width: 100,
  397. key: 'value',
  398. },
  399. {
  400. width: 100,
  401. title: '工作场所',
  402. dataIndex: 'gzcs',
  403. align: 'center',
  404. key: 'gzcs',
  405. },
  406. {
  407. title: '工种',
  408. width: 100,
  409. dataIndex: 'gz',
  410. align: 'center',
  411. key: 'gz',
  412. },
  413. {
  414. width: 100,
  415. align: 'center',
  416. title: '检测地点',
  417. dataIndex: 'jcdd',
  418. key: 'jcdd',
  419. },
  420. {
  421. width: 100,
  422. align: 'center',
  423. title: '粉尘种类',
  424. dataIndex: 'fczl',
  425. key: 'fczl',
  426. },
  427. ];
  428. export const AllDataDltColumns = [
  429. {
  430. title: '监测字段',
  431. align: 'center',
  432. dataIndex: 'key',
  433. key: 'key',
  434. width: 200,
  435. customRender: ({ text }) => fieldDltMapping[text] || text,
  436. },
  437. {
  438. title: '最大值',
  439. dataIndex: 'value',
  440. align: 'center',
  441. width: 100,
  442. key: 'value',
  443. },
  444. {
  445. width: 100,
  446. align: 'center',
  447. title: '检测地点',
  448. dataIndex: 'jcdd',
  449. key: 'jcdd',
  450. },
  451. {
  452. width: 100,
  453. align: 'center',
  454. title: '粉尘种类',
  455. dataIndex: 'fczl',
  456. key: 'fczl',
  457. },
  458. ];
  459. export const AllDataSwColumns = [
  460. {
  461. title: '监测字段',
  462. align: 'center',
  463. dataIndex: 'key',
  464. key: 'key',
  465. width: 200,
  466. customRender: ({ text }) => fieldSwMapping[text] || text,
  467. },
  468. {
  469. title: '最大值',
  470. dataIndex: 'value',
  471. align: 'center',
  472. width: 100,
  473. key: 'value',
  474. },
  475. {
  476. width: 100,
  477. title: '工作场所',
  478. dataIndex: 'gzcs',
  479. align: 'center',
  480. key: 'gzcs',
  481. },
  482. {
  483. width: 100,
  484. align: 'center',
  485. title: '检测地点',
  486. dataIndex: 'jcdd',
  487. key: 'jcdd',
  488. },
  489. {
  490. width: 100,
  491. align: 'center',
  492. title: '粉尘种类',
  493. dataIndex: 'fczl',
  494. key: 'fczl',
  495. },
  496. ];