billboard.data.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. import type { Component } from 'vue';
  9. // 基础的表格列配置,针对普通设备
  10. export const GAS_STATUS_COLUMN = [
  11. {
  12. name: '设备类型',
  13. prop: 'typeName',
  14. },
  15. {
  16. name: '监测数量',
  17. prop: 'num',
  18. },
  19. {
  20. name: '当前状态',
  21. prop: 'warnLevelStr',
  22. },
  23. ];
  24. // 粉尘状态模块表格列配置
  25. export const DUST_STATUS_COLUMN = [
  26. {
  27. name: '设备类型',
  28. prop: 'deviceType',
  29. },
  30. {
  31. name: '监测数量',
  32. prop: 'num',
  33. },
  34. {
  35. name: '当前状态',
  36. prop: 'warnLevelStr',
  37. },
  38. ];
  39. // 火灾状态监测相关的内容配置项
  40. export const FIRE_STATUS_LIST = [
  41. {
  42. icon: 'warning-optical-fiber',
  43. label: '矿井光纤测温系统报警',
  44. prop: 'fiberInfo',
  45. },
  46. {
  47. icon: 'warning-tubes',
  48. label: '矿井束管监测系统报警',
  49. prop: 'bundletubeInfo',
  50. },
  51. {
  52. icon: 'warning-smoke-2',
  53. label: '矿井烟雾传感器报警',
  54. prop: 'smokeSensorInfo',
  55. },
  56. {
  57. icon: 'warning-CO-2',
  58. label: '矿井CO传感器报警',
  59. prop: 'coSensorInfo',
  60. },
  61. {
  62. icon: 'warning-temp',
  63. label: '矿井温度传感器报警',
  64. prop: 'tempSensorInfo',
  65. },
  66. {
  67. icon: 'warning-max-temp',
  68. label: '矿井温度传感器最高值',
  69. prop: 'tempMax',
  70. },
  71. ];
  72. // 文件总览相关的内容配置项
  73. export const FILE_OVERVIEW_CONFIG = [
  74. { src: leftImg, text: '文档总数', prop: 'totalNum', id: 'file_cfg_001' },
  75. { src: rightImg, text: '待审批数', prop: 'approvalNum', id: 'file_cfg_002' },
  76. ];
  77. // 通风状态监测相关的内容配置项
  78. export const VENTILATION_STATUS_HEADER_CONFIG = [
  79. {
  80. label: '总进风量(m³/min)',
  81. prop: 'zongjinfeng',
  82. type: 'blue-to-left',
  83. },
  84. {
  85. label: '总回风量(m³/min)',
  86. prop: 'zonghuifeng',
  87. type: 'green-to-right',
  88. },
  89. {
  90. label: '总需风量(m³/min)',
  91. prop: 'xufengliang',
  92. type: 'green-to-left',
  93. },
  94. {
  95. label: '通风巷道总长度',
  96. prop: 'totallength',
  97. type: 'blue-to-right',
  98. },
  99. ];
  100. // 通风状态监测(树形节点详情)相关的内容配置项
  101. export const VENTILATION_STATUS_TREE_CONFIG = {
  102. prefix: '',
  103. prop: 'strname',
  104. suffix: '',
  105. children: [
  106. {
  107. prefix: '名称:',
  108. prop: 'strinstallpos',
  109. suffix: '',
  110. },
  111. {
  112. prefix: '1号风机风量:',
  113. prop: 'Fan1m3',
  114. suffix: '(m³/min)',
  115. },
  116. {
  117. prefix: '2号风机风量:',
  118. prop: 'Fan2m3',
  119. suffix: '(m³/min)',
  120. },
  121. {
  122. prefix: '频率:',
  123. prop: 'FanFreqHz',
  124. suffix: 'Hz',
  125. },
  126. {
  127. prefix: '三区阻力分布:',
  128. prop: 'sqzlfb',
  129. suffix: '',
  130. },
  131. ],
  132. };
  133. // 瓦斯状态监测相关的内容配置项
  134. export const GAS_STATUS_HEADER_CONFIG = [
  135. {
  136. label: '瓦斯风险等级',
  137. prop: 'gasWarnLevel',
  138. type: 'to-bottom-right',
  139. },
  140. {
  141. label: '瓦斯鉴定等级',
  142. prop: 'gasJudgeLevel',
  143. type: 'to-top-right',
  144. },
  145. ];
  146. // 各个监测类型对应的要展示的组件
  147. export const COMPONENTS_MAP = new Map<string, Component>([
  148. ['dust', DustStatus],
  149. ['fire', FireStatus],
  150. ['file', FileOverview],
  151. ['ventilate', VentilationStatus],
  152. ['gas', GasStatus],
  153. ]);
  154. export const DEFAULT_TEST_DATA = {
  155. dustInfo: {
  156. // 矿井粉尘风险信息
  157. totalNum: 0,
  158. dustTypeList: [
  159. {
  160. deviceType: '/',
  161. warnLevel: 0,
  162. num: 0,
  163. typeName: '/',
  164. },
  165. ],
  166. dustWarnLevel: 0, // 矿井粉尘风险性等级
  167. },
  168. fileServerInfo: {
  169. totalNum: 0, // 文档总数
  170. approvalNum: 0, // 待审批文档
  171. },
  172. fireInfo: {
  173. tempMax: 0, // 矿井温度传感器最高温度
  174. fireWarnLevel: 0, // 矿井火灾风险等级
  175. coSensorInfo: 0, // 矿井CO传感器报警等级
  176. bundletubeInfo: 0, // 矿井束管监测报警等级
  177. smokeSensorInfo: 0, // 矿井烟雾传感器报警等级
  178. fiberInfo: 0, // 矿井光纤测温系统报警等级
  179. tempSensorInfo: 0, // 矿井温度传感器报警等级
  180. },
  181. gasInfo: {
  182. gasWarnLevel: 0, // 瓦斯风险等级
  183. gasTypeList: [
  184. {
  185. warnLevel: 0,
  186. num: 0,
  187. typeName: '/',
  188. },
  189. ],
  190. },
  191. ventInfo: {
  192. //通风系统信息
  193. totallength: 0, //矿井巷道总长度
  194. zonghuifeng: '0', //总回风
  195. fanMainList: [
  196. {
  197. sqzlfb: '/',
  198. strname: '/',
  199. strinstallpos: '/',
  200. Fan1m3: '/',
  201. Fan2m3: '/',
  202. },
  203. ],
  204. xufengliang: 0, //总需风量
  205. zongjinfeng: '/', //总进风
  206. },
  207. orgname: '/',
  208. orgcode: '/',
  209. ip: 'localhost',
  210. };
  211. export type BillboardType = typeof DEFAULT_TEST_DATA;