fireAreaJudgeAnalysis.data.ts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. export const boardData = [
  4. {
  5. label: '存在风险情况数量',
  6. value: '10',
  7. },
  8. {
  9. label: '低风险',
  10. value: '27',
  11. },
  12. {
  13. label: '一般风险',
  14. value: '27',
  15. },
  16. {
  17. label: '较高风险',
  18. value: '27',
  19. },
  20. {
  21. label: '高风险',
  22. value: '27',
  23. },
  24. ];
  25. // 实时数据相关
  26. export const columns: BasicColumn[] = [
  27. {
  28. title: '序号',
  29. align: 'center',
  30. width: 80,
  31. customRender: ({ index }: { index: number }) => `${index + 1}`,
  32. },
  33. {
  34. title: '区域',
  35. dataIndex: 'areaName',
  36. width: 100,
  37. },
  38. {
  39. title: '煤矿名称',
  40. dataIndex: 'mineName',
  41. width: 160,
  42. },
  43. {
  44. title: '密闭名称',
  45. dataIndex: 'devicePos',
  46. width: 100,
  47. },
  48. {
  49. title: '所属煤层',
  50. dataIndex: 'coalSeamName',
  51. width: 100,
  52. },
  53. {
  54. title: '自燃倾向性',
  55. dataIndex: 'coalSeamLevel',
  56. width: 100,
  57. },
  58. {
  59. title: '空气温度(℃)',
  60. dataIndex: 'temperature',
  61. width: 100,
  62. },
  63. {
  64. title: 'O2浓度(ppm)',
  65. dataIndex: 'o2Val',
  66. width: 100,
  67. },
  68. {
  69. title: 'C2H4浓度(ppm)',
  70. dataIndex: 'c2h4Val',
  71. width: 100,
  72. },
  73. {
  74. title: 'C2H2浓度(ppm)',
  75. dataIndex: 'c2h2Val',
  76. width: 100,
  77. },
  78. {
  79. title: 'CO浓度(ppm)',
  80. dataIndex: 'coVal',
  81. width: 100,
  82. },
  83. {
  84. title: '出水温度(℃)',
  85. dataIndex: 'temperature',
  86. width: 100,
  87. },
  88. {
  89. title: '监测时长(天)',
  90. dataIndex: 'daysMonitored',
  91. width: 100,
  92. // 自定义渲染函数,计算并显示天数差
  93. customRender: ({ record }) => {
  94. // 校验预警时间是否存在
  95. if (!record?.createTime) {
  96. return '0';
  97. }
  98. const alarmDate = new Date(record.createTime);
  99. alarmDate.setHours(0, 0, 0, 0);
  100. const alarmTime = alarmDate.getTime();
  101. if (isNaN(alarmTime)) {
  102. return '0';
  103. }
  104. const nowDate = new Date();
  105. nowDate.setHours(0, 0, 0, 0);
  106. const nowTime = nowDate.getTime();
  107. const diffDays = Math.floor((nowTime - alarmTime) / 86400000);
  108. return Math.max(diffDays, 0).toString();
  109. },
  110. },
  111. {
  112. title: '风险分析',
  113. dataIndex: 'alarmName',
  114. width: 100,
  115. },
  116. {
  117. title: '预警时间',
  118. dataIndex: 'createTime',
  119. width: 100,
  120. },
  121. {
  122. title: '是否解决',
  123. customRender: () => '未解决',
  124. width: 100,
  125. },
  126. ];
  127. export const searchFormSchema: FormSchema[] = [
  128. {
  129. field: 'mineName',
  130. label: '所属执法处',
  131. component: 'Select',
  132. componentProps: {
  133. options: [
  134. { label: '执法一处', value: '0' },
  135. { label: '执法二处', value: '1' },
  136. { label: '执法三处', value: '2' },
  137. ],
  138. },
  139. colProps: { span: 6 },
  140. },
  141. {
  142. field: 'mineName',
  143. label: '所属区域',
  144. component: 'Select',
  145. componentProps: {
  146. options: [
  147. { label: '执法一处', value: '0' },
  148. { label: '执法二处', value: '1' },
  149. { label: '执法三处', value: '2' },
  150. ],
  151. },
  152. colProps: { span: 6 },
  153. },
  154. {
  155. field: 'mineName',
  156. label: '煤矿名称',
  157. component: 'Input',
  158. colProps: { span: 6 },
  159. },
  160. {
  161. field: 'mineNameAbbr',
  162. label: '煤矿简称',
  163. component: 'Input',
  164. colProps: { span: 6 },
  165. },
  166. {
  167. field: 'productStatus',
  168. label: '生产状态',
  169. component: 'Select',
  170. componentProps: {
  171. options: [
  172. { label: '拟建矿井', value: '0' },
  173. { label: '正常生产矿井', value: '1' },
  174. { label: '长期停产矿井', value: '2' },
  175. ],
  176. },
  177. colProps: { span: 6 },
  178. },
  179. {
  180. field: 'riskLevel',
  181. label: '自燃情况',
  182. component: 'Select',
  183. componentProps: {
  184. options: [
  185. { label: 'Ⅰ类容易自燃', value: '0' },
  186. { label: 'Ⅱ类自燃', value: '1' },
  187. { label: 'Ⅲ类不易自燃', value: '2' },
  188. ],
  189. },
  190. colProps: { span: 6 },
  191. },
  192. ];
  193. export const minesData = [
  194. {
  195. orderNo: 101, // 序号
  196. enforcement: '执法一处', // 区域
  197. mineName: '神木市三江', // 煤矿名称
  198. sealedName: '采空区密闭', // 密闭名称
  199. coalSeam: 'XX煤层', // 所属煤层
  200. riskLevel: 'Ⅰ类容易自燃', // 自燃倾向性(与搜索框选项label一致)
  201. COVal: 24, // CO浓度(ppm)
  202. CH4Val: 0, // CH4浓度(%)
  203. C2H2Val: 0, // C2H2浓度(ppm)
  204. O2Val: 20, // O2浓度(%)
  205. temperature: 35, // 温度(℃)
  206. pressureDiff: 50, // 压差(Pa)
  207. leakage: '气体涌出', // 是否漏风
  208. fireHazard: '低风险', // 自然发火隐患
  209. unsealing: '不可启封', // 密闭启封判定
  210. explosionHazard: '低风险', // 爆炸危险性
  211. updateTime: '2025-11-17 15:00:40', // 更新时间
  212. alertTime: '2025-11-17 15:00:40',
  213. interPressure: '10',
  214. outerPressure: '20',
  215. },
  216. {
  217. orderNo: 102, // 序号
  218. enforcement: '执法一处', // 区域
  219. mineName: '神木市三江', // 煤矿名称
  220. sealedName: '采空区密闭', // 密闭名称
  221. coalSeam: 'XX煤层', // 所属煤层
  222. riskLevel: 'Ⅰ类容易自燃', // 自燃倾向性(与搜索框选项label一致)
  223. COVal: 24, // CO浓度(ppm)
  224. CH4Val: 0, // CH4浓度(%)
  225. C2H2Val: 0, // C2H2浓度(ppm)
  226. O2Val: 20, // O2浓度(%)
  227. temperature: 35, // 温度(℃)
  228. pressureDiff: 50, // 压差(Pa)
  229. leakage: '气体涌出', // 是否漏风
  230. fireHazard: '低风险', // 自然发火隐患
  231. unsealing: '不可启封', // 密闭启封判定
  232. explosionHazard: '低风险', // 爆炸危险性
  233. updateTime: '2025-11-17 15:00:40', // 更新时间
  234. alertTime: '2025-11-17 15:00:40',
  235. interPressure: '10',
  236. outerPressure: '20',
  237. },
  238. {
  239. orderNo: 103, // 序号
  240. enforcement: '执法一处', // 区域
  241. mineName: '神木市三江', // 煤矿名称
  242. sealedName: '采空区密闭', // 密闭名称
  243. coalSeam: 'XX煤层', // 所属煤层
  244. riskLevel: 'Ⅰ类容易自燃', // 自燃倾向性(与搜索框选项label一致)
  245. COVal: 24, // CO浓度(ppm)
  246. CH4Val: 0, // CH4浓度(%)
  247. C2H2Val: 0, // C2H2浓度(ppm)
  248. O2Val: 20, // O2浓度(%)
  249. temperature: 35, // 温度(℃)
  250. pressureDiff: 50, // 压差(Pa)
  251. leakage: '气体涌出', // 是否漏风
  252. fireHazard: '低风险', // 自然发火隐患
  253. unsealing: '不可启封', // 密闭启封判定
  254. explosionHazard: '低风险', // 爆炸危险性
  255. updateTime: '2025-11-17 15:00:40', // 更新时间
  256. alertTime: '2025-11-17 15:00:40',
  257. interPressure: '10',
  258. outerPressure: '20',
  259. },
  260. ];
  261. export const historicalMinesData = [
  262. {
  263. orderNo: 101, // 序号
  264. enforcement: '执法一处', // 区域
  265. mineName: '神木市三江', // 煤矿名称
  266. sealedName: '采空区密闭', // 密闭名称
  267. coalSeam: 'XX煤层', // 所属煤层
  268. riskLevel: 'Ⅰ类容易自燃', // 自燃倾向性(与搜索框选项label一致)
  269. COVal: 24, // CO浓度(ppm)
  270. CH4Val: 0, // CH4浓度(%)
  271. C2H2Val: 0, // C2H2浓度(ppm)
  272. O2Val: 20, // O2浓度(%)
  273. temperature: 35, // 温度(℃)
  274. pressureDiff: 50, // 压差(Pa)
  275. leakage: '气体涌出', // 是否漏风
  276. fireHazard: '低风险', // 自然发火隐患
  277. unsealing: '不可启封', // 密闭启封判定
  278. explosionHazard: '低风险', // 爆炸危险性
  279. updateTime: '2025-12-22 15:00:40', // 更新时间
  280. alertTime: '2025-11-17 15:00:40',
  281. interPressure: '10',
  282. outerPressure: '20',
  283. },
  284. {
  285. orderNo: 102, // 序号
  286. enforcement: '执法一处', // 区域
  287. mineName: '神木市三江', // 煤矿名称
  288. sealedName: '采空区密闭', // 密闭名称
  289. coalSeam: 'XX煤层', // 所属煤层
  290. riskLevel: 'Ⅰ类容易自燃', // 自燃倾向性(与搜索框选项label一致)
  291. COVal: 24, // CO浓度(ppm)
  292. CH4Val: 0, // CH4浓度(%)
  293. C2H2Val: 0, // C2H2浓度(ppm)
  294. O2Val: 20, // O2浓度(%)
  295. temperature: 35, // 温度(℃)
  296. pressureDiff: 50, // 压差(Pa)
  297. leakage: '气体涌出', // 是否漏风
  298. fireHazard: '低风险', // 自然发火隐患
  299. unsealing: '不可启封', // 密闭启封判定
  300. explosionHazard: '低风险', // 爆炸危险性
  301. updateTime: '2025-12-22 15:00:40', // 更新时间
  302. alertTime: '2025-11-17 15:00:40',
  303. interPressure: '10',
  304. outerPressure: '20',
  305. },
  306. {
  307. orderNo: 103, // 序号
  308. enforcement: '执法一处', // 区域
  309. mineName: '神木市三江', // 煤矿名称
  310. sealedName: '采空区密闭', // 密闭名称
  311. coalSeam: 'XX煤层', // 所属煤层
  312. riskLevel: 'Ⅰ类容易自燃', // 自燃倾向性(与搜索框选项label一致)
  313. COVal: 24, // CO浓度(ppm)
  314. CH4Val: 0, // CH4浓度(%)
  315. C2H2Val: 0, // C2H2浓度(ppm)
  316. O2Val: 20, // O2浓度(%)
  317. temperature: 35, // 温度(℃)
  318. pressureDiff: 50, // 压差(Pa)
  319. leakage: '气体涌出', // 是否漏风
  320. fireHazard: '低风险', // 自然发火隐患
  321. unsealing: '不可启封', // 密闭启封判定
  322. explosionHazard: '低风险', // 爆炸危险性
  323. updateTime: '2025-12-22 15:00:40', // 更新时间
  324. alertTime: '2025-11-17 15:00:40',
  325. interPressure: '10',
  326. outerPressure: '20',
  327. },
  328. ];