common.data.ts 6.5 KB

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