billboard.data.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. import DustStatus from './components/DustStatus.vue';
  2. import FileOverview from './components/FileOverview.vue';
  3. import FireStatus from './components/FireStatus.vue';
  4. import VentilationStatus from './components/VentilationStatus.vue';
  5. import GasStatus from './components/GasStatus.vue';
  6. import leftImg from '/@/assets/images/files/homes/file.svg';
  7. import rightImg from '/@/assets/images/files/homes/sp.svg';
  8. // 各个煤矿看板的配置
  9. export const BILLBOARDS = [
  10. {
  11. title: 'A矿',
  12. type: 'dust',
  13. },
  14. {
  15. title: 'B矿',
  16. type: 'fire',
  17. },
  18. {
  19. title: 'C矿',
  20. type: 'file',
  21. },
  22. {
  23. title: 'D矿',
  24. type: 'ventilate',
  25. },
  26. {
  27. title: 'E矿',
  28. type: 'gas',
  29. },
  30. {
  31. title: 'F矿',
  32. type: 'dust',
  33. },
  34. {
  35. title: 'G矿',
  36. type: 'fire',
  37. },
  38. {
  39. title: 'H矿',
  40. type: 'file',
  41. },
  42. {
  43. title: 'I矿',
  44. type: 'ventilate',
  45. },
  46. {
  47. title: 'J矿',
  48. type: 'gas',
  49. },
  50. ];
  51. // 基础的表格列配置,针对普通设备
  52. export const BASIC_COLUMN = [
  53. {
  54. name: '设备类型',
  55. prop: 'a',
  56. },
  57. {
  58. name: '监测数量',
  59. prop: 'b',
  60. },
  61. {
  62. name: '当前状态',
  63. prop: 'c',
  64. },
  65. ];
  66. // 火灾状态监测相关的内容配置项
  67. export const FIRE_STATUS_LIST = [
  68. {
  69. icon: 'warning-optical-fiber',
  70. label: '矿井光纤测温系统报警',
  71. prop: 'a',
  72. },
  73. {
  74. icon: 'warning-tubes',
  75. label: '矿井束管监测系统报警',
  76. prop: 'b',
  77. },
  78. {
  79. icon: 'warning-smoke-2',
  80. label: '矿井烟雾传感器报警',
  81. prop: 'c',
  82. },
  83. {
  84. icon: 'warning-CO-2',
  85. label: '矿井CO传感器报警',
  86. prop: 'd',
  87. },
  88. {
  89. icon: 'warning-temp',
  90. label: '矿井温度传感器报警',
  91. prop: 'e',
  92. },
  93. {
  94. icon: 'warning-max-temp',
  95. label: '矿井温度传感器最高值',
  96. prop: 'f',
  97. },
  98. ];
  99. // 文件总览相关的内容配置项
  100. export const FILE_OVERVIEW_CONFIG = [
  101. { src: leftImg, text: '文档总数', num: 233, id: 'file_cfg_001' },
  102. { src: rightImg, text: '待审批数', num: 50, id: 'file_cfg_002' },
  103. ];
  104. // 通风状态监测相关的内容配置项
  105. export const VENTILATION_STATUS_HEADER_CONFIG = [
  106. {
  107. label: '总进风量(m³/min)',
  108. prop: 'a',
  109. type: 'blue-to-left',
  110. },
  111. {
  112. label: '总回风量(m³/min)',
  113. prop: 'b',
  114. type: 'green-to-right',
  115. },
  116. {
  117. label: '总需风量(m³/min)',
  118. prop: 'c',
  119. type: 'green-to-left',
  120. },
  121. {
  122. label: '通风巷道总长度',
  123. prop: 'd',
  124. type: 'blue-to-right',
  125. },
  126. ];
  127. // 瓦斯状态监测相关的内容配置项
  128. export const GAS_STATUS_HEADER_CONFIG = [
  129. {
  130. label: '瓦斯风险等级',
  131. prop: 'a',
  132. type: 'to-bottom-right',
  133. },
  134. {
  135. label: '瓦斯鉴定等级',
  136. prop: 'b',
  137. type: 'to-top-right',
  138. },
  139. ];
  140. // 各个监测类型对应的要展示的组件
  141. export const COMPONENTS_MAP = new Map([
  142. ['dust', DustStatus],
  143. ['fire', FireStatus],
  144. ['file', FileOverview],
  145. ['ventilate', VentilationStatus],
  146. ['gas', GasStatus],
  147. ]);