sealRiskJudgeAnalysis.data.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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: '-',
  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. width: 100,
  32. },
  33. {
  34. title: '煤矿名称',
  35. dataIndex: 'mineName',
  36. width: 160,
  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: 'CO(ppm)',
  55. dataIndex: 'coVal',
  56. width: 100,
  57. },
  58. {
  59. title: 'CH4(%)',
  60. dataIndex: 'ch4Val',
  61. width: 100,
  62. },
  63. {
  64. title: 'C2H4(ppm)',
  65. dataIndex: 'c2h4Val',
  66. width: 100,
  67. },
  68. {
  69. title: 'C2H2(ppm)',
  70. dataIndex: 'c2h2Val',
  71. width: 100,
  72. },
  73. {
  74. title: 'O2(%)',
  75. dataIndex: 'o2Val',
  76. width: 100,
  77. },
  78. {
  79. title: '爆炸危险性',
  80. dataIndex: 'alarmName',
  81. width: 100,
  82. customRender({ record }) {
  83. return alarmCellRender(record);
  84. },
  85. },
  86. {
  87. title: '处置意见',
  88. dataIndex: 'suggestion',
  89. width: 100,
  90. },
  91. {
  92. title: '预警时间',
  93. dataIndex: 'createTime',
  94. width: 100,
  95. },
  96. {
  97. title: '是否解决',
  98. customRender: () => '未解决',
  99. width: 100,
  100. },
  101. ];
  102. export const searchFormSchema: FormSchema[] = [
  103. {
  104. field: 'mineName',
  105. label: '所属执法处',
  106. component: 'Select',
  107. componentProps: {
  108. options: [
  109. { label: '执法一处', value: '0' },
  110. { label: '执法二处', value: '1' },
  111. { label: '执法三处', value: '2' },
  112. ],
  113. },
  114. colProps: { span: 6 },
  115. },
  116. {
  117. field: 'mineName',
  118. label: '所属区域',
  119. component: 'Select',
  120. componentProps: {
  121. options: [
  122. { label: '执法一处', value: '0' },
  123. { label: '执法二处', value: '1' },
  124. { label: '执法三处', value: '2' },
  125. ],
  126. },
  127. colProps: { span: 6 },
  128. },
  129. {
  130. field: 'mineName',
  131. label: '煤矿名称',
  132. component: 'Input',
  133. colProps: { span: 6 },
  134. },
  135. {
  136. field: 'mineNameAbbr',
  137. label: '煤矿简称',
  138. component: 'Input',
  139. colProps: { span: 6 },
  140. },
  141. {
  142. field: 'productStatus',
  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: 'riskLevel',
  156. label: '自燃情况',
  157. component: 'Select',
  158. componentProps: {
  159. options: [
  160. { label: 'Ⅰ类容易自燃', value: '0' },
  161. { label: 'Ⅱ类自燃', value: '1' },
  162. { label: 'Ⅲ类不易自燃', value: '2' },
  163. ],
  164. },
  165. colProps: { span: 6 },
  166. },
  167. ];