common.data.ts 6.6 KB

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