common.data.ts 5.5 KB

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