common.data.ts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. import { reactive, markRaw, defineAsyncComponent } from 'vue';
  2. import { getAssetURL } from '/@/utils/ui';
  3. //中间区域数据-通风
  4. export const centerAreaListT1 = [
  5. { id: 0, label: '进风量(m³/min)' },
  6. { id: 1, label: '回风量(m³/min)' },
  7. { id: 2, label: '需风量(m³/min)' },
  8. ];
  9. //中间区域底部数据-通风
  10. export const centerAreaListB1 = [
  11. {
  12. id: 0,
  13. content: '',
  14. },
  15. {
  16. id: 1,
  17. content: '',
  18. },
  19. {
  20. id: 2,
  21. content: '',
  22. },
  23. ];
  24. //内外因火灾菜单列表
  25. export const typeMenuList = [{ name: '内因火灾' }, { name: '外因火灾' }, { name: '火灾指标' }];
  26. //瓦斯监测菜单列表
  27. export const typeMenuListGas = [{ name: '预警监测' }, { name: '预警指标' }];
  28. //当前加载组件
  29. export const componentName = {
  30. fireWork: markRaw(defineAsyncComponent(() => import('./common/fireWork.vue'))),
  31. closeWall: markRaw(defineAsyncComponent(() => import('./common/closeWall.vue'))),
  32. mainWell: markRaw(defineAsyncComponent(() => import('./common/mainWell.vue'))),
  33. warnTargetFireBrt: markRaw(defineAsyncComponent(() => import('./common/warnTargetFire-brt.vue'))),
  34. warnTargetFireBd: markRaw(defineAsyncComponent(() => import('./common/warnTargetFire-bd.vue'))),
  35. };
  36. //顶部区域数据
  37. export const topList = [
  38. {
  39. id: 0,
  40. label: '最高温度(°C)',
  41. imgSrc: true,
  42. value: '--',
  43. text: '',
  44. list: [],
  45. },
  46. {
  47. id: 1,
  48. label: '最低温度(°C)',
  49. imgSrc: true,
  50. value: '--',
  51. text: '',
  52. list: [],
  53. },
  54. {
  55. id: 2,
  56. label: '平均温度(°C)',
  57. imgSrc: true,
  58. value: '--',
  59. text: '',
  60. list: [],
  61. },
  62. { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] },
  63. {
  64. id: 4,
  65. imgSrc: false,
  66. label: '回风隅角',
  67. value: null,
  68. text: '',
  69. list: [
  70. { id: 0, label: 'O₂', value: 0 },
  71. { id: 1, label: 'CO', value: 0 },
  72. ],
  73. },
  74. ];
  75. export const ventilateTopList = [
  76. {
  77. id: 0,
  78. label: '进风量(m³/min)',
  79. imgSrc: true,
  80. value: '--',
  81. text: '',
  82. list: [],
  83. },
  84. {
  85. id: 1,
  86. label: '回风量(m³/min)',
  87. imgSrc: true,
  88. value: '--',
  89. text: '',
  90. list: [],
  91. },
  92. {
  93. id: 2,
  94. label: '需风量(m³/min)',
  95. imgSrc: true,
  96. value: '--',
  97. text: '',
  98. list: [],
  99. },
  100. { id: 3, imgSrc: false, label: '', value: null, text: '--', list: [] },
  101. {
  102. id: 4,
  103. imgSrc: false,
  104. label: '其他信息',
  105. value: null,
  106. text: '',
  107. list: [
  108. { id: 0, label: 'O₂', value: 0 },
  109. { id: 1, label: 'CO', value: 0 },
  110. ],
  111. },
  112. ];
  113. //束管监测选项列表
  114. export const contentList = [
  115. {
  116. id: 0,
  117. list: [
  118. {
  119. id: '0-0',
  120. title: 'O₂',
  121. dw: '(%)',
  122. label: '浓度 : ',
  123. value: '--',
  124. label1: '时间 : ',
  125. time: '--',
  126. },
  127. {
  128. id: '0-1',
  129. title: 'C₂H₄',
  130. dw: '(ppm)',
  131. label: '浓度 : ',
  132. value: '--',
  133. label1: '时间 : ',
  134. time: '--',
  135. },
  136. ],
  137. },
  138. {
  139. id: 1,
  140. list: [
  141. {
  142. id: '1-0',
  143. title: 'CO',
  144. dw: '(ppm)',
  145. label: '浓度 : ',
  146. value: '--',
  147. label1: '时间 : ',
  148. time: '--',
  149. },
  150. {
  151. id: '1-1',
  152. title: 'CH₄',
  153. dw: '(ppm)',
  154. label: '浓度 : ',
  155. value: '--',
  156. label1: '时间 : ',
  157. time: '--',
  158. },
  159. ],
  160. },
  161. {
  162. id: 2,
  163. list: [
  164. {
  165. id: '2-0',
  166. title: 'CO₂',
  167. dw: '(%)',
  168. label: '浓度 : ',
  169. value: '--',
  170. label1: '时间 : ',
  171. time: '--',
  172. },
  173. {
  174. id: '2-1',
  175. title: 'C₂H₂',
  176. dw: '(ppm)',
  177. label: '浓度 : ',
  178. value: '--',
  179. label1: '时间 : ',
  180. time: '--',
  181. },
  182. ],
  183. },
  184. ];
  185. //外因火灾-工作面顶部区域数据
  186. export const topOutList = [
  187. {
  188. id: 0,
  189. imgSrc: true,
  190. label: '最高温度(°C)',
  191. value: '0',
  192. text: '',
  193. },
  194. {
  195. id: 1,
  196. imgSrc: true,
  197. label: '最低温度(°C)',
  198. value: '0',
  199. text: '',
  200. },
  201. {
  202. id: 2,
  203. imgSrc: true,
  204. label: '平均温度(°C)',
  205. value: '0',
  206. text: '',
  207. },
  208. { id: 3, imgSrc: false, label: '', value: null, text: '' },
  209. // {
  210. // id: 4,
  211. // imgSrc: false,
  212. // label: '',
  213. // value: null,
  214. // text: '井下消防材料库',
  215. // },
  216. ];
  217. //外因火灾-中间区域标题数据
  218. export const tabList = [
  219. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  220. { id: 1, label: '一氧化碳传感器监测', details: '设备类型名称' },
  221. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  222. ];
  223. export const tabLists = [
  224. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  225. { id: 1, label: '温度传感器监测', details: '设备类型名称' },
  226. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  227. { id: 3, label: '一氧化碳传感器监测', details: '设备类型名称' },
  228. ];
  229. //外因火灾-传感器table列
  230. export const columns = [
  231. { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
  232. { rowIndex: 2, dataIndex: 'warnLevel_str', title: '状态', type: '1', align: 'center' },
  233. { rowIndex: 3, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
  234. ];
  235. //外因火灾-烟雾传感器table列
  236. export const columnsSmoke = [
  237. { rowIndex: 1, dataIndex: 'strinstallpos', title: '名称', type: '1', align: 'center' },
  238. { rowIndex: 2, dataIndex: 'val', title: '值', type: '1', align: 'center' },
  239. { rowIndex: 3, dataIndex: 'warnLevel_str', title: '状态', type: '1', align: 'center' },
  240. { rowIndex: 4, dataIndex: 'readTime', title: '时间', type: '1', align: 'center' },
  241. ];