common.data.ts 6.5 KB

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