pressureDiffAnalysis.data.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { alarmCellRender } from '/@/views/monitor/sealedMonitor/monitor.data';
  4. export const boardData = [
  5. {
  6. label: '存在风险情况数量',
  7. value: '10',
  8. },
  9. {
  10. label: '低风险',
  11. value: '27',
  12. },
  13. {
  14. label: '一般风险',
  15. value: '27',
  16. },
  17. {
  18. label: '较高风险',
  19. value: '27',
  20. },
  21. {
  22. label: '高风险',
  23. value: '27',
  24. },
  25. ];
  26. // 实时数据相关
  27. export const columns: BasicColumn[] = [
  28. {
  29. title: '区域',
  30. dataIndex: 'areaName',
  31. width: 100,
  32. },
  33. {
  34. title: '煤矿名称',
  35. dataIndex: 'mineName',
  36. width: 200,
  37. },
  38. {
  39. title: '密闭名称',
  40. dataIndex: 'devicePos',
  41. width: 100,
  42. },
  43. {
  44. title: '所属煤层',
  45. dataIndex: 'coalSeamName',
  46. width: 100,
  47. },
  48. {
  49. title: '自燃倾向性',
  50. dataIndex: 'coalSeamLevel',
  51. width: 100,
  52. },
  53. {
  54. title: '监测压差(Pa)',
  55. dataIndex: 'sourcePressure',
  56. width: 100,
  57. },
  58. {
  59. title: '日常压差均值(Pa)',
  60. dataIndex: 'dailyYaCha',
  61. width: 100,
  62. },
  63. {
  64. title: '绝对压差变化(%)',
  65. dataIndex: 'yaChaChange',
  66. width: 100,
  67. },
  68. {
  69. title: '风险分析',
  70. dataIndex: 'alarmName',
  71. width: 100,
  72. customRender: ({ record }) => {
  73. const riskMap = {
  74. '1': '低风险',
  75. '2': '一般风险',
  76. '3': '较高风险',
  77. '4': '高风险',
  78. };
  79. return alarmCellRender(record, (r) => riskMap[r.alarmName] || r.alarmName);
  80. // if (typeof text !== 'string') {
  81. // return '-';
  82. // }
  83. // return riskMap[text] || text;
  84. },
  85. },
  86. {
  87. title: '预警时间',
  88. dataIndex: 'createTime',
  89. width: 100,
  90. },
  91. {
  92. title: '是否解决',
  93. customRender: () => '未解决',
  94. width: 100,
  95. },
  96. ];
  97. export const searchFormSchema: FormSchema[] = [
  98. {
  99. field: 'mineName',
  100. label: '所属执法处',
  101. component: 'Select',
  102. componentProps: {
  103. options: [
  104. { label: '执法一处', value: '0' },
  105. { label: '执法二处', value: '1' },
  106. { label: '执法三处', value: '2' },
  107. ],
  108. },
  109. colProps: { span: 6 },
  110. },
  111. {
  112. field: 'mineName',
  113. label: '所属区域',
  114. component: 'Select',
  115. componentProps: {
  116. options: [
  117. { label: '执法一处', value: '0' },
  118. { label: '执法二处', value: '1' },
  119. { label: '执法三处', value: '2' },
  120. ],
  121. },
  122. colProps: { span: 6 },
  123. },
  124. {
  125. field: 'mineName',
  126. label: '煤矿名称',
  127. component: 'Input',
  128. colProps: { span: 6 },
  129. },
  130. {
  131. field: 'mineNameAbbr',
  132. label: '煤矿简称',
  133. component: 'Input',
  134. colProps: { span: 6 },
  135. },
  136. {
  137. field: 'productStatus',
  138. label: '生产状态',
  139. component: 'Select',
  140. componentProps: {
  141. options: [
  142. { label: '拟建矿井', value: '0' },
  143. { label: '正常生产矿井', value: '1' },
  144. { label: '长期停产矿井', value: '2' },
  145. ],
  146. },
  147. colProps: { span: 6 },
  148. },
  149. {
  150. field: 'riskLevel',
  151. label: '自燃倾向性',
  152. component: 'Select',
  153. componentProps: {
  154. options: [
  155. { label: 'Ⅰ类容易自燃', value: '0' },
  156. { label: 'Ⅱ类自燃', value: '1' },
  157. { label: 'Ⅲ类不易自燃', value: '2' },
  158. ],
  159. },
  160. colProps: { span: 6 },
  161. },
  162. ];