dust-table.data.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  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 Bdcolumns = [
  380. {
  381. title: '序号',
  382. width: 60,
  383. align: 'center',
  384. dataIndex: 'xh',
  385. },
  386. {
  387. title: '测定地点',
  388. dataIndex: 'jcdd',
  389. key: 'jcdd',
  390. width: 150,
  391. align: 'center',
  392. },
  393. {
  394. title: '作业环境(工序)',
  395. dataIndex: 'zyhj',
  396. key: 'zyhj',
  397. width: 80,
  398. align: 'center',
  399. },
  400. {
  401. title: '粉尘浓度(mg/m³)',
  402. width: 100,
  403. align: 'center',
  404. children: [
  405. {
  406. title: '全尘',
  407. dataIndex: 'qc',
  408. key: 'qc',
  409. width: 80,
  410. align: 'center',
  411. },
  412. {
  413. title: '呼尘',
  414. dataIndex: 'hc',
  415. key: 'hc',
  416. width: 80,
  417. align: 'center',
  418. },
  419. ],
  420. },
  421. {
  422. title: '备注',
  423. dataIndex: 'smark',
  424. key: 'smark',
  425. width: 80,
  426. align: 'center',
  427. },
  428. ];
  429. //监测字段
  430. export const fieldMapping = {
  431. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  432. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  433. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  434. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  435. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  436. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  437. zcrxd_ds: '总尘容许浓度(短时间监测浓度,mg/m³)',
  438. zcrxd_jqpj: '总尘容许浓度(时间加权平均浓度,mg/m³)',
  439. hcrxd_ds: '呼尘容许浓度(短时间监测浓度,mg/m³)',
  440. hcrxd_jqpj: '呼尘容许浓度(时间加权平均浓度,mg/m³)',
  441. };
  442. export const fieldDltMapping = {
  443. sc_zcds: '总尘-作业工序-生产(短时间监测浓度,mg/m³)',
  444. jx_zcds: '总尘-作业工序-检修(短时间监测浓度,mg/m³)',
  445. sc_hcds: '呼尘-作业工序-生产(短时间监测浓度,mg/m³)',
  446. jx_hcds: '呼尘-作业工序-检修(短时间监测浓度,mg/m³)',
  447. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  448. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  449. };
  450. export const fieldSwMapping = {
  451. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  452. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  453. };
  454. export const fieldHjtMapping = {
  455. sc_zcds: '总尘(生产期间粉尘浓度,mg/m³)',
  456. sc_hcds: '呼尘(生产期间粉尘浓度,mg/m³)',
  457. jx_zcds: '总尘(检修期间粉尘浓度,mg/m³)',
  458. jx_hcds: '呼尘(检修期间粉尘浓度,mg/m³)',
  459. zcjqpj: '总尘(时间加权平均浓度,mg/m³)',
  460. hcjqpj: '呼尘(时间加权平均浓度,mg/m³)',
  461. };
  462. export const fieldBdMapping = {
  463. qc: '总尘(粉尘浓度,mg/m³)',
  464. hc: '呼尘(粉尘浓度,mg/m³)',
  465. };
  466. // 检测地点
  467. export const dataColumns = [
  468. {
  469. title: '监测字段',
  470. align: 'center',
  471. dataIndex: 'key',
  472. key: 'key',
  473. width: 200,
  474. customRender: ({ text }) => fieldMapping[text] || text,
  475. },
  476. {
  477. title: '最大值',
  478. dataIndex: 'value',
  479. align: 'center',
  480. width: 100,
  481. key: 'value',
  482. },
  483. {
  484. title: '工种',
  485. width: 100,
  486. dataIndex: 'gz',
  487. align: 'center',
  488. key: 'gz',
  489. },
  490. {
  491. width: 100,
  492. align: 'center',
  493. title: '监测地点',
  494. dataIndex: 'jcdd',
  495. key: 'jcdd',
  496. },
  497. {
  498. width: 100,
  499. align: 'center',
  500. title: '粉尘种类',
  501. dataIndex: 'fczl',
  502. key: 'fczl',
  503. },
  504. ];
  505. export const dataDltColumns = [
  506. {
  507. title: '监测字段',
  508. align: 'center',
  509. dataIndex: 'key',
  510. key: 'key',
  511. width: 130,
  512. customRender: ({ text }) => fieldDltMapping[text] || text,
  513. },
  514. {
  515. title: '最大值',
  516. dataIndex: 'value',
  517. align: 'center',
  518. width: 100,
  519. key: 'value',
  520. },
  521. {
  522. width: 130,
  523. align: 'center',
  524. title: '监测地点',
  525. dataIndex: 'jcdd',
  526. key: 'jcdd',
  527. },
  528. {
  529. width: 100,
  530. align: 'center',
  531. title: '粉尘种类',
  532. dataIndex: 'fczl',
  533. key: 'fczl',
  534. },
  535. ];
  536. export const dataSwColumns = [
  537. {
  538. title: '监测字段',
  539. align: 'center',
  540. dataIndex: 'key',
  541. key: 'key',
  542. width: 200,
  543. customRender: ({ text }) => fieldSwMapping[text] || text,
  544. },
  545. {
  546. title: '最大值',
  547. dataIndex: 'value',
  548. align: 'center',
  549. width: 100,
  550. key: 'value',
  551. },
  552. {
  553. width: 100,
  554. align: 'center',
  555. title: '监测地点',
  556. dataIndex: 'jcdd',
  557. key: 'jcdd',
  558. },
  559. {
  560. width: 100,
  561. align: 'center',
  562. title: '粉尘种类',
  563. dataIndex: 'fczl',
  564. key: 'fczl',
  565. },
  566. ];
  567. export const dataHjtColumns = [
  568. {
  569. title: '监测字段',
  570. align: 'center',
  571. dataIndex: 'key',
  572. key: 'key',
  573. width: 100,
  574. customRender: ({ text }) => fieldHjtMapping[text] || text,
  575. },
  576. {
  577. title: '最大值',
  578. dataIndex: 'value',
  579. align: 'center',
  580. width: 100,
  581. key: 'value',
  582. },
  583. {
  584. width: 100,
  585. align: 'center',
  586. title: '监测地点',
  587. dataIndex: 'jcdd',
  588. key: 'jcdd',
  589. },
  590. {
  591. width: 100,
  592. align: 'center',
  593. title: '作业环境(工序)',
  594. dataIndex: 'fczl',
  595. key: 'fczl',
  596. },
  597. ];
  598. export const dataBdColumns = [
  599. {
  600. title: '监测字段',
  601. align: 'center',
  602. dataIndex: 'key',
  603. key: 'key',
  604. width: 100,
  605. customRender: ({ text }) => fieldBdMapping[text] || text,
  606. },
  607. {
  608. title: '最大值',
  609. dataIndex: 'value',
  610. align: 'center',
  611. width: 100,
  612. key: 'value',
  613. },
  614. {
  615. width: 100,
  616. align: 'center',
  617. title: '监测地点',
  618. dataIndex: 'jcdd',
  619. key: 'jcdd',
  620. },
  621. {
  622. width: 100,
  623. align: 'center',
  624. title: '作业环境(工序)',
  625. dataIndex: 'zyhj',
  626. key: 'zyhj',
  627. },
  628. ];
  629. // 当日情况粉尘情况分析
  630. export const AllDataColumns = [
  631. {
  632. title: '监测字段',
  633. align: 'center',
  634. dataIndex: 'key',
  635. key: 'key',
  636. width: 200,
  637. customRender: ({ text }) => fieldMapping[text] || text,
  638. },
  639. {
  640. title: '最大值',
  641. dataIndex: 'value',
  642. align: 'center',
  643. width: 100,
  644. key: 'value',
  645. },
  646. {
  647. width: 100,
  648. title: '工作场所',
  649. dataIndex: 'gzcs',
  650. align: 'center',
  651. key: 'gzcs',
  652. },
  653. {
  654. title: '工种',
  655. width: 100,
  656. dataIndex: 'gz',
  657. align: 'center',
  658. key: 'gz',
  659. },
  660. {
  661. width: 100,
  662. align: 'center',
  663. title: '监测地点',
  664. dataIndex: 'jcdd',
  665. key: 'jcdd',
  666. },
  667. {
  668. width: 100,
  669. align: 'center',
  670. title: '粉尘种类',
  671. dataIndex: 'fczl',
  672. key: 'fczl',
  673. },
  674. ];
  675. export const AllDataDltColumns = [
  676. {
  677. title: '监测字段',
  678. align: 'center',
  679. dataIndex: 'key',
  680. key: 'key',
  681. width: 130,
  682. customRender: ({ text }) => fieldDltMapping[text] || text,
  683. },
  684. {
  685. title: '最大值',
  686. dataIndex: 'value',
  687. align: 'center',
  688. width: 100,
  689. key: 'value',
  690. },
  691. {
  692. width: 130,
  693. align: 'center',
  694. title: '监测地点',
  695. dataIndex: 'jcdd',
  696. key: 'jcdd',
  697. },
  698. {
  699. width: 100,
  700. align: 'center',
  701. title: '粉尘种类',
  702. dataIndex: 'fczl',
  703. key: 'fczl',
  704. },
  705. ];
  706. export const AllDataSwColumns = [
  707. {
  708. title: '监测字段',
  709. align: 'center',
  710. dataIndex: 'key',
  711. key: 'key',
  712. width: 200,
  713. customRender: ({ text }) => fieldSwMapping[text] || text,
  714. },
  715. {
  716. title: '最大值',
  717. dataIndex: 'value',
  718. align: 'center',
  719. width: 100,
  720. key: 'value',
  721. },
  722. {
  723. width: 100,
  724. title: '工作场所',
  725. dataIndex: 'gzcs',
  726. align: 'center',
  727. key: 'gzcs',
  728. },
  729. {
  730. width: 100,
  731. align: 'center',
  732. title: '监测地点',
  733. dataIndex: 'jcdd',
  734. key: 'jcdd',
  735. },
  736. {
  737. width: 100,
  738. align: 'center',
  739. title: '粉尘种类',
  740. dataIndex: 'fczl',
  741. key: 'fczl',
  742. },
  743. ];
  744. export const AllDataHjtColumns = [
  745. {
  746. title: '监测字段',
  747. align: 'center',
  748. dataIndex: 'key',
  749. key: 'key',
  750. width: 100,
  751. customRender: ({ text }) => fieldHjtMapping[text] || text,
  752. },
  753. {
  754. title: '最大值',
  755. dataIndex: 'value',
  756. align: 'center',
  757. width: 100,
  758. key: 'value',
  759. },
  760. {
  761. width: 100,
  762. align: 'center',
  763. title: '监测地点',
  764. dataIndex: 'jcdd',
  765. key: 'jcdd',
  766. },
  767. {
  768. width: 100,
  769. align: 'center',
  770. title: '作业环境(工序)',
  771. dataIndex: 'fczl',
  772. key: 'fczl',
  773. },
  774. ];
  775. export const AllDataBdColumns = [
  776. {
  777. title: '监测字段',
  778. align: 'center',
  779. dataIndex: 'key',
  780. key: 'key',
  781. width: 100,
  782. customRender: ({ text }) => fieldBdMapping[text] || text,
  783. },
  784. {
  785. title: '最大值',
  786. dataIndex: 'value',
  787. align: 'center',
  788. width: 100,
  789. key: 'value',
  790. },
  791. {
  792. width: 100,
  793. align: 'center',
  794. title: '监测地点',
  795. dataIndex: 'jcdd',
  796. key: 'jcdd',
  797. },
  798. {
  799. width: 100,
  800. align: 'center',
  801. title: '作业环境(工序)',
  802. dataIndex: 'zyhj',
  803. key: 'zyhj',
  804. },
  805. ];