overlimitAlarm.data.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. import { BasicColumn, FormSchema } from '/@/components/Table';
  2. import { alarmCellRender } from '/@/views/monitor/sealedMonitor/monitor.data';
  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. dataIndex: 'areaName',
  30. width: 100,
  31. },
  32. {
  33. title: '煤矿名称',
  34. dataIndex: 'mineName',
  35. width: 200,
  36. },
  37. {
  38. title: '老空区永久密闭名称',
  39. dataIndex: 'devicePos',
  40. width: 200,
  41. },
  42. {
  43. title: '所属煤层',
  44. dataIndex: 'coalSeamName',
  45. width: 100,
  46. },
  47. {
  48. title: '自燃倾向性',
  49. dataIndex: 'coalSeamLevel',
  50. width: 100,
  51. },
  52. {
  53. title: 'CO浓度(ppm)',
  54. dataIndex: 'coVal',
  55. width: 100,
  56. },
  57. // {
  58. // title: 'CO日增率(%)',
  59. // dataIndex: 'coRzl',
  60. // width: 100,
  61. // },
  62. {
  63. title: 'O2浓度(%)',
  64. dataIndex: 'o2Val',
  65. width: 100,
  66. },
  67. {
  68. title: '温度(℃)',
  69. dataIndex: 'temperature',
  70. width: 100,
  71. },
  72. {
  73. title: '温差(℃)',
  74. dataIndex: 'temperatureDiff',
  75. width: 100,
  76. },
  77. {
  78. title: '风险分析',
  79. dataIndex: 'alarmName',
  80. width: 100,
  81. customRender({ record }) {
  82. return alarmCellRender(record);
  83. },
  84. },
  85. {
  86. title: '预警时间',
  87. dataIndex: 'createTime',
  88. width: 100,
  89. },
  90. {
  91. title: '是否解决',
  92. customRender: () => '未解决',
  93. width: 100,
  94. },
  95. ];
  96. export const schemas: FormSchema[] = [
  97. {
  98. label: '煤矿名称',
  99. field: 'deptId',
  100. component: 'MineCascader', // 自定义组件名
  101. colProps: { span: 6 },
  102. rules: [],
  103. },
  104. {
  105. label: '超限判定条件',
  106. field: 'alarmFiled',
  107. component: 'Select', // 自定义组件名
  108. colProps: { span: 6 },
  109. componentProps: {
  110. options: [
  111. {
  112. label: '氧气',
  113. value: 'o2Val',
  114. },
  115. {
  116. label: '一氧化碳',
  117. value: 'coVal',
  118. },
  119. {
  120. label: '温度',
  121. value: 'temperature',
  122. },
  123. ],
  124. },
  125. rules: [],
  126. },
  127. ];