dust-table.data.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  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 Hjtcolumns = [
  260. {
  261. title: '序号',
  262. width: 60,
  263. align: 'center',
  264. customRender: ({ index }: { index: number }) => `${index + 1}`,
  265. },
  266. {
  267. title: '监测地点',
  268. dataIndex: 'jcdd',
  269. key: 'jcdd',
  270. width: 150,
  271. align: 'center',
  272. },
  273. {
  274. title: '作业环境(工序)',
  275. dataIndex: 'fczl',
  276. key: 'fczl',
  277. width: 80,
  278. align: 'center',
  279. },
  280. {
  281. title: '生产期间粉尘浓度(mg/m³)',
  282. width: 100,
  283. align: 'center',
  284. children: [
  285. {
  286. title: '总尘',
  287. dataIndex: 'sc_zcds',
  288. key: 'sc_zcds',
  289. width: 80,
  290. align: 'center',
  291. },
  292. {
  293. title: '呼尘',
  294. dataIndex: 'sc_hcds',
  295. key: 'sc_hcds',
  296. width: 80,
  297. align: 'center',
  298. },
  299. {
  300. title: '正常生产时间',
  301. dataIndex: 'sc_sj',
  302. key: 'sc_sj',
  303. width: 100,
  304. align: 'center',
  305. },
  306. ],
  307. },
  308. {
  309. title: '检修期间粉尘浓度(mg/m³)',
  310. width: 100,
  311. align: 'center',
  312. children: [
  313. {
  314. title: '总尘',
  315. dataIndex: 'jx_zcds',
  316. key: 'jx_zcds',
  317. width: 80,
  318. align: 'center',
  319. },
  320. {
  321. title: '呼尘',
  322. dataIndex: 'jx_hcds',
  323. key: 'jx_hcds',
  324. width: 80,
  325. align: 'center',
  326. },
  327. {
  328. title: '停机检修时间',
  329. dataIndex: 'jx_sj',
  330. key: 'jx_sj',
  331. width: 100,
  332. align: 'center',
  333. },
  334. ],
  335. },
  336. {
  337. title: '时间加权平均浓度(mg/m³)',
  338. width: 100,
  339. align: 'center',
  340. children: [
  341. {
  342. title: '总尘',
  343. dataIndex: 'zcjqpj',
  344. key: 'zcjqpj',
  345. width: 80,
  346. align: 'center',
  347. },
  348. {
  349. title: '是否合格',
  350. dataIndex: 'zcsfhgjqpj',
  351. key: 'zcsfhgjqpj',
  352. width: 80,
  353. align: 'center',
  354. },
  355. {
  356. title: '呼尘',
  357. dataIndex: 'hcjqpj',
  358. key: 'hcjqpj',
  359. width: 80,
  360. align: 'center',
  361. },
  362. {
  363. title: '是否合格',
  364. dataIndex: 'hcsfhgjqpj',
  365. key: 'hcsfhgjqpj',
  366. width: 80,
  367. align: 'center',
  368. },
  369. ],
  370. },
  371. {
  372. title: '采取措施',
  373. dataIndex: 'smark',
  374. key: 'smark',
  375. width: 80,
  376. align: 'center',
  377. },
  378. ];
  379. export const fieldMapping = {
  380. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  381. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  382. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  383. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  384. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  385. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  386. zcrxd_ds: '总尘容许浓度(短时间监测浓度,mg/m³)',
  387. zcrxd_jqpj: '总尘容许浓度(时间加权平均浓度,mg/m³)',
  388. hcrxd_ds: '呼尘容许浓度(短时间监测浓度,mg/m³)',
  389. hcrxd_jqpj: '呼尘容许浓度(时间加权平均浓度,mg/m³)',
  390. };
  391. export const fieldDltMapping = {
  392. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  393. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  394. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  395. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  396. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  397. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  398. };
  399. export const fieldSwMapping = {
  400. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  401. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  402. };
  403. export const fieldHjtMapping = {
  404. sc_zcds: '总尘(生产期间粉尘浓度,mg/m³)',
  405. sc_hcds: '呼尘(生产期间粉尘浓度,mg/m³)',
  406. jx_zcds: '总尘(检修期间粉尘浓度,mg/m³)',
  407. jx_hcds: '呼尘(检修期间粉尘浓度,mg/m³)',
  408. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  409. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  410. };
  411. export const dataColumns = [
  412. {
  413. title: '监测字段',
  414. align: 'center',
  415. dataIndex: 'key',
  416. key: 'key',
  417. width: 200,
  418. customRender: ({ text }) => fieldMapping[text] || text,
  419. },
  420. {
  421. title: '最大值',
  422. dataIndex: 'value',
  423. align: 'center',
  424. width: 100,
  425. key: 'value',
  426. },
  427. {
  428. title: '工种',
  429. width: 100,
  430. dataIndex: 'gz',
  431. align: 'center',
  432. key: 'gz',
  433. },
  434. {
  435. width: 100,
  436. align: 'center',
  437. title: '监测地点',
  438. dataIndex: 'jcdd',
  439. key: 'jcdd',
  440. },
  441. {
  442. width: 100,
  443. align: 'center',
  444. title: '粉尘种类',
  445. dataIndex: 'fczl',
  446. key: 'fczl',
  447. },
  448. ];
  449. export const dataDltColumns = [
  450. {
  451. title: '监测字段',
  452. align: 'center',
  453. dataIndex: 'key',
  454. key: 'key',
  455. width: 130,
  456. customRender: ({ text }) => fieldDltMapping[text] || text,
  457. },
  458. {
  459. title: '最大值',
  460. dataIndex: 'value',
  461. align: 'center',
  462. width: 100,
  463. key: 'value',
  464. },
  465. {
  466. width: 130,
  467. align: 'center',
  468. title: '监测地点',
  469. dataIndex: 'jcdd',
  470. key: 'jcdd',
  471. },
  472. {
  473. width: 100,
  474. align: 'center',
  475. title: '粉尘种类',
  476. dataIndex: 'fczl',
  477. key: 'fczl',
  478. },
  479. ];
  480. export const dataSwColumns = [
  481. {
  482. title: '监测字段',
  483. align: 'center',
  484. dataIndex: 'key',
  485. key: 'key',
  486. width: 200,
  487. customRender: ({ text }) => fieldSwMapping[text] || text,
  488. },
  489. {
  490. title: '最大值',
  491. dataIndex: 'value',
  492. align: 'center',
  493. width: 100,
  494. key: 'value',
  495. },
  496. {
  497. width: 100,
  498. align: 'center',
  499. title: '监测地点',
  500. dataIndex: 'jcdd',
  501. key: 'jcdd',
  502. },
  503. {
  504. width: 100,
  505. align: 'center',
  506. title: '粉尘种类',
  507. dataIndex: 'fczl',
  508. key: 'fczl',
  509. },
  510. ];
  511. export const dataHjtColumns = [
  512. {
  513. title: '监测字段',
  514. align: 'center',
  515. dataIndex: 'key',
  516. key: 'key',
  517. width: 100,
  518. customRender: ({ text }) => fieldHjtMapping[text] || text,
  519. },
  520. {
  521. title: '最大值',
  522. dataIndex: 'value',
  523. align: 'center',
  524. width: 100,
  525. key: 'value',
  526. },
  527. {
  528. width: 100,
  529. align: 'center',
  530. title: '监测地点',
  531. dataIndex: 'jcdd',
  532. key: 'jcdd',
  533. },
  534. {
  535. width: 100,
  536. align: 'center',
  537. title: '作业环境(工序)',
  538. dataIndex: 'fczl',
  539. key: 'fczl',
  540. },
  541. ];
  542. export const AllDataColumns = [
  543. {
  544. title: '监测字段',
  545. align: 'center',
  546. dataIndex: 'key',
  547. key: 'key',
  548. width: 200,
  549. customRender: ({ text }) => fieldMapping[text] || text,
  550. },
  551. {
  552. title: '最大值',
  553. dataIndex: 'value',
  554. align: 'center',
  555. width: 100,
  556. key: 'value',
  557. },
  558. {
  559. width: 100,
  560. title: '工作场所',
  561. dataIndex: 'gzcs',
  562. align: 'center',
  563. key: 'gzcs',
  564. },
  565. {
  566. title: '工种',
  567. width: 100,
  568. dataIndex: 'gz',
  569. align: 'center',
  570. key: 'gz',
  571. },
  572. {
  573. width: 100,
  574. align: 'center',
  575. title: '监测地点',
  576. dataIndex: 'jcdd',
  577. key: 'jcdd',
  578. },
  579. {
  580. width: 100,
  581. align: 'center',
  582. title: '粉尘种类',
  583. dataIndex: 'fczl',
  584. key: 'fczl',
  585. },
  586. ];
  587. export const AllDataDltColumns = [
  588. {
  589. title: '监测字段',
  590. align: 'center',
  591. dataIndex: 'key',
  592. key: 'key',
  593. width: 130,
  594. customRender: ({ text }) => fieldDltMapping[text] || text,
  595. },
  596. {
  597. title: '最大值',
  598. dataIndex: 'value',
  599. align: 'center',
  600. width: 100,
  601. key: 'value',
  602. },
  603. {
  604. width: 130,
  605. align: 'center',
  606. title: '监测地点',
  607. dataIndex: 'jcdd',
  608. key: 'jcdd',
  609. },
  610. {
  611. width: 100,
  612. align: 'center',
  613. title: '粉尘种类',
  614. dataIndex: 'fczl',
  615. key: 'fczl',
  616. },
  617. ];
  618. export const AllDataSwColumns = [
  619. {
  620. title: '监测字段',
  621. align: 'center',
  622. dataIndex: 'key',
  623. key: 'key',
  624. width: 200,
  625. customRender: ({ text }) => fieldSwMapping[text] || text,
  626. },
  627. {
  628. title: '最大值',
  629. dataIndex: 'value',
  630. align: 'center',
  631. width: 100,
  632. key: 'value',
  633. },
  634. {
  635. width: 100,
  636. title: '工作场所',
  637. dataIndex: 'gzcs',
  638. align: 'center',
  639. key: 'gzcs',
  640. },
  641. {
  642. width: 100,
  643. align: 'center',
  644. title: '监测地点',
  645. dataIndex: 'jcdd',
  646. key: 'jcdd',
  647. },
  648. {
  649. width: 100,
  650. align: 'center',
  651. title: '粉尘种类',
  652. dataIndex: 'fczl',
  653. key: 'fczl',
  654. },
  655. ];
  656. export const AllDataHjtColumns = [
  657. {
  658. title: '监测字段',
  659. align: 'center',
  660. dataIndex: 'key',
  661. key: 'key',
  662. width: 100,
  663. customRender: ({ text }) => fieldHjtMapping[text] || text,
  664. },
  665. {
  666. title: '最大值',
  667. dataIndex: 'value',
  668. align: 'center',
  669. width: 100,
  670. key: 'value',
  671. },
  672. {
  673. width: 100,
  674. align: 'center',
  675. title: '监测地点',
  676. dataIndex: 'jcdd',
  677. key: 'jcdd',
  678. },
  679. {
  680. width: 100,
  681. align: 'center',
  682. title: '作业环境(工序)',
  683. dataIndex: 'fczl',
  684. key: 'fczl',
  685. },
  686. ];