common.data.ts 6.7 KB

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