sealRiskJudgeAnalysis.data.ts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import { ModuleDataChart } from '/@/components/Configurable/types';
  2. import { BasicColumn } from '/@/components/Table';
  3. import { alarmCellRender } from '/@/views/monitor/sealedMonitor/monitor.data';
  4. export const boardData = [
  5. {
  6. label: '存在风险情况数量',
  7. value: '-',
  8. },
  9. {
  10. label: '低风险',
  11. value: '-',
  12. },
  13. {
  14. label: '一般风险',
  15. value: '-',
  16. },
  17. {
  18. label: '较高风险',
  19. value: '-',
  20. },
  21. {
  22. label: '高风险',
  23. value: '-',
  24. },
  25. ];
  26. // 实时数据相关
  27. export const columns: BasicColumn[] = [
  28. {
  29. title: '区域',
  30. dataIndex: 'areaName',
  31. fixed: 'left',
  32. width: 100,
  33. },
  34. {
  35. title: '煤矿名称',
  36. dataIndex: 'mineName',
  37. fixed: 'left',
  38. width: 200,
  39. },
  40. {
  41. title: '老空区永久密闭名称',
  42. dataIndex: 'devicePos',
  43. fixed: 'left',
  44. width: 200,
  45. },
  46. {
  47. title: '所属煤层',
  48. dataIndex: 'coalSeamName',
  49. width: 100,
  50. },
  51. {
  52. title: '自燃倾向性',
  53. dataIndex: 'coalSeamLevel',
  54. width: 100,
  55. },
  56. {
  57. title: 'CO(ppm)',
  58. dataIndex: 'coVal',
  59. width: 100,
  60. },
  61. {
  62. title: 'CH4(%)',
  63. dataIndex: 'ch4Val',
  64. width: 100,
  65. },
  66. {
  67. title: 'C2H4(ppm)',
  68. dataIndex: 'c2h4Val',
  69. width: 100,
  70. },
  71. {
  72. title: 'C2H2(ppm)',
  73. dataIndex: 'c2h2Val',
  74. width: 100,
  75. },
  76. {
  77. title: 'O2(%)',
  78. dataIndex: 'o2Val',
  79. width: 100,
  80. },
  81. {
  82. title: '爆炸危险性',
  83. dataIndex: 'alarmName',
  84. width: 100,
  85. customRender({ record }) {
  86. return alarmCellRender(record);
  87. },
  88. },
  89. {
  90. title: '处置意见',
  91. dataIndex: 'suggestion',
  92. width: 100,
  93. },
  94. {
  95. title: '分析时间',
  96. dataIndex: 'createTime',
  97. width: 100,
  98. },
  99. {
  100. title: '是否解决',
  101. customRender: () => '未解决',
  102. width: 100,
  103. },
  104. ];
  105. interface ModalDetailsData {
  106. basicInfo: Record<string, any>[];
  107. board: Record<string, any>[];
  108. gasConcentrationConfig?: ModuleDataChart;
  109. pressureConfig?: ModuleDataChart;
  110. blastDeltaConfig?: Record<string, any>;
  111. }
  112. export const modalDetailsData: ModalDetailsData = {
  113. basicInfo: [
  114. {
  115. label: '煤矿名称',
  116. value: 'mineName',
  117. },
  118. {
  119. label: '设备位置',
  120. value: 'devicePos',
  121. },
  122. {
  123. label: '爆炸危险性',
  124. value: 'alarmLevel',
  125. customRender({ record }) {
  126. return alarmCellRender(record.explosionAlarm);
  127. },
  128. },
  129. ],
  130. board: [
  131. {
  132. label: 'CO(ppm)',
  133. value: 'coVal',
  134. },
  135. {
  136. label: 'CH4(%)',
  137. value: 'ch4Val',
  138. },
  139. {
  140. label: 'C2H4(ppm)',
  141. value: 'c2h4Val',
  142. },
  143. {
  144. label: 'C2H2(ppm)',
  145. value: 'c2h2Val',
  146. },
  147. {
  148. label: 'O2(%)',
  149. value: 'o2Val',
  150. },
  151. ],
  152. blastDeltaConfig: {},
  153. };