common.data.ts 6.7 KB

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