billboard.data.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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 GAS_STATUS_COLUMN = [
  10. {
  11. name: '设备类型',
  12. prop: 'typeName',
  13. },
  14. {
  15. name: '监测数量',
  16. prop: 'num',
  17. },
  18. {
  19. name: '当前状态',
  20. prop: 'warnLevel',
  21. },
  22. ];
  23. // 粉尘状态模块表格列配置
  24. export const DUST_STATUS_COLUMN = [
  25. {
  26. name: '设备类型',
  27. prop: 'deviceType',
  28. },
  29. {
  30. name: '监测数量',
  31. prop: 'num',
  32. },
  33. {
  34. name: '当前状态',
  35. prop: 'warnLevelStr',
  36. },
  37. ];
  38. // 火灾状态监测相关的内容配置项
  39. export const FIRE_STATUS_LIST = [
  40. {
  41. icon: 'warning-optical-fiber',
  42. label: '矿井光纤测温系统报警',
  43. prop: 'fiberInfo',
  44. },
  45. {
  46. icon: 'warning-tubes',
  47. label: '矿井束管监测系统报警',
  48. prop: 'bundletubeInfo',
  49. },
  50. {
  51. icon: 'warning-smoke-2',
  52. label: '矿井烟雾传感器报警',
  53. prop: 'smokeSensorInfo',
  54. },
  55. {
  56. icon: 'warning-CO-2',
  57. label: '矿井CO传感器报警',
  58. prop: 'coSensorInfo',
  59. },
  60. {
  61. icon: 'warning-temp',
  62. label: '矿井温度传感器报警',
  63. prop: 'tempSensorInfo',
  64. },
  65. {
  66. icon: 'warning-max-temp',
  67. label: '矿井温度传感器最高值',
  68. prop: 'tempMax',
  69. },
  70. ];
  71. // 文件总览相关的内容配置项
  72. export const FILE_OVERVIEW_CONFIG = [
  73. { src: leftImg, text: '文档总数', prop: 'totalNum', id: 'file_cfg_001' },
  74. { src: rightImg, text: '待审批数', prop: 'approvalNum', id: 'file_cfg_002' },
  75. ];
  76. // 通风状态监测相关的内容配置项
  77. export const VENTILATION_STATUS_HEADER_CONFIG = [
  78. {
  79. label: '总进风量(m³/min)',
  80. prop: 'zongjinfeng',
  81. type: 'blue-to-left',
  82. },
  83. {
  84. label: '总回风量(m³/min)',
  85. prop: 'zonghuifeng',
  86. type: 'green-to-right',
  87. },
  88. {
  89. label: '总需风量(m³/min)',
  90. prop: 'xufengliang',
  91. type: 'green-to-left',
  92. },
  93. {
  94. label: '通风巷道总长度',
  95. prop: 'totallength',
  96. type: 'blue-to-right',
  97. },
  98. ];
  99. // 通风状态监测(树形节点详情)相关的内容配置项
  100. export const VENTILATION_STATUS_TREE_CONFIG = {
  101. prefix: '',
  102. prop: 'strname',
  103. suffix: '',
  104. children: [
  105. {
  106. prefix: '名称:',
  107. prop: 'strinstallpos',
  108. suffix: '',
  109. },
  110. {
  111. prefix: '1号风机风量:',
  112. prop: 'Fan1m3',
  113. suffix: '(m³/min)',
  114. },
  115. {
  116. prefix: '2号风机风量:',
  117. prop: 'Fan2m3',
  118. suffix: '(m³/min)',
  119. },
  120. {
  121. prefix: '频率:',
  122. prop: 'FanFreqHz',
  123. suffix: 'Hz',
  124. },
  125. {
  126. prefix: '三区阻力分布:',
  127. prop: 'sqzlfb',
  128. suffix: '',
  129. },
  130. ],
  131. };
  132. // 瓦斯状态监测相关的内容配置项
  133. export const GAS_STATUS_HEADER_CONFIG = [
  134. {
  135. label: '瓦斯风险等级',
  136. prop: 'gasWarnLevel',
  137. type: 'to-bottom-right',
  138. },
  139. {
  140. label: '瓦斯鉴定等级',
  141. prop: 'gasJudgeLevel',
  142. type: 'to-top-right',
  143. },
  144. ];
  145. // 各个监测类型对应的要展示的组件
  146. export const COMPONENTS_MAP = new Map([
  147. ['dust', DustStatus],
  148. ['fire', FireStatus],
  149. ['file', FileOverview],
  150. ['ventilate', VentilationStatus],
  151. ['gas', GasStatus],
  152. ]);