fire.data.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. import { reactive, markRaw, defineAsyncComponent } from 'vue';
  2. import { BasicColumn, FormSchema } from '/@/components/Table';
  3. import echarts from '/@/utils/lib/echarts';
  4. import type { EChartsOption } from 'echarts';
  5. import { getAssetURL } from '/@/utils/ui';
  6. //内外因火灾菜单列表
  7. export const typeMenuList = [{ name: '内因火灾' }, { name: '外因火灾' }];
  8. //菜单列表
  9. export const menuList = [
  10. { name: '综采工作面1', warn: '低风险', type: 'on' },
  11. { name: '密闭工作面1', warn: '低风险', type: 'on' },
  12. { name: '其他工作面1', warn: '低风险', type: 'on' },
  13. ];
  14. //当前加载组件
  15. export const componentName = {
  16. fireWork: markRaw(defineAsyncComponent(() => import('./fire/fireWork.vue'))),
  17. closeWall: markRaw(defineAsyncComponent(() => import('./fire/closeWall.vue'))),
  18. otherMonitor: markRaw(defineAsyncComponent(() => import('./fire/otherMonitor.vue'))),
  19. mainWell: markRaw(defineAsyncComponent(() => import('./fire/mainWell.vue'))),
  20. subStation: markRaw(defineAsyncComponent(() => import('./fire/subStation.vue'))),
  21. otherOut: markRaw(defineAsyncComponent(() => import('./fire/otherOut.vue'))),
  22. };
  23. //工作面
  24. //顶部区域数据
  25. export const topList = [
  26. {
  27. id: 0,
  28. label: '最高温度(°C)',
  29. imgSrc: true,
  30. value: 10,
  31. text: '',
  32. list: [],
  33. },
  34. {
  35. id: 1,
  36. label: '最低温度(°C)',
  37. imgSrc: true,
  38. value: 20,
  39. text: '',
  40. list: [],
  41. },
  42. {
  43. id: 2,
  44. label: '平均温度(°C)',
  45. imgSrc: true,
  46. value: 15,
  47. text: '',
  48. list: [],
  49. },
  50. { id: 3, imgSrc: false, label: '', value: null, text: '无自然发火征兆和隐患', list: [] },
  51. {
  52. id: 4,
  53. imgSrc: false,
  54. label: '回风隅角',
  55. value: null,
  56. text: '',
  57. list: [
  58. { id: 0, label: 'O2', value: 0 },
  59. { id: 1, label: 'CO', value: 0 },
  60. ],
  61. },
  62. ];
  63. //光钎测温测点编号列表
  64. export const pointList = [
  65. { label: '测点1', value: 0 },
  66. { label: '测点2', value: 1 },
  67. ];
  68. //光钎图表数据
  69. export const echartDataGq = {
  70. maxData: [45, 42, 43, 46, 44, 41, 42, 45, 47, 46, 48],
  71. minData: [25, 22, 23, 26, 24, 21, 22, 25, 27, 26, 28],
  72. aveValue: [35, 32, 33, 36, 34, 31, 32, 35, 37, 36, 38],
  73. xData: [
  74. '2023-09-12 11:22',
  75. '2023-09-12 11:23',
  76. '2023-09-12 11:24',
  77. '2023-09-12 11:25',
  78. '2023-09-12 11:26',
  79. '2023-09-12 11:27',
  80. '2023-09-12 11:28',
  81. '2023-09-12 11:29',
  82. '2023-09-12 11:30',
  83. '2023-09-12 11:31',
  84. '2023-09-12 11:32',
  85. ],
  86. };
  87. //束管监测-测点编号列表
  88. export const pointList1 = [
  89. { label: '测点1', value: 0 },
  90. { label: '测点2', value: 1 },
  91. ];
  92. //束管监测选项列表
  93. export const contentList = [
  94. {
  95. id: 0,
  96. list: [
  97. {
  98. id: '0-0',
  99. title: 'O2',
  100. label: '浓度 : ',
  101. value: 10,
  102. label1: '时间 : ',
  103. time: '2023-09-12 14:00',
  104. },
  105. {
  106. id: '0-1',
  107. title: 'C2H4',
  108. label: '浓度 : ',
  109. value: 10,
  110. label1: '时间 : ',
  111. time: '2023-09-12 14:01',
  112. },
  113. ],
  114. },
  115. {
  116. id: 1,
  117. list: [
  118. {
  119. id: '1-0',
  120. title: 'CO',
  121. label: '浓度 : ',
  122. value: 20,
  123. label1: '时间 : ',
  124. time: '2023-09-12 14:02',
  125. },
  126. {
  127. id: '1-1',
  128. title: 'CH4',
  129. label: '浓度 : ',
  130. value: 20,
  131. label1: '时间 : ',
  132. time: '2023-09-12 14:03',
  133. },
  134. ],
  135. },
  136. {
  137. id: 2,
  138. list: [
  139. {
  140. id: '2-0',
  141. title: 'CO2',
  142. label: '浓度 : ',
  143. value: 30,
  144. label1: '时间 : ',
  145. time: '2023-09-12 14:04',
  146. },
  147. {
  148. id: '2-1',
  149. title: 'C2H2',
  150. label: '浓度 : ',
  151. value: 30,
  152. label1: '时间 : ',
  153. time: '2023-09-12 14:05',
  154. },
  155. ],
  156. },
  157. ];
  158. //束管监测-图表数据
  159. export const echartDataSg = {
  160. xData: [
  161. '2023-09-12 13:40',
  162. '2023-09-12 13:41',
  163. '2023-09-12 13:42',
  164. '2023-09-12 13:43',
  165. '2023-09-12 13:44',
  166. '2023-09-12 13:45',
  167. '2023-09-12 13:46',
  168. '2023-09-12 13:47',
  169. ],
  170. yData: [42, 38, 41, 43, 40, 45, 44, 47, 43],
  171. };
  172. //密闭参数列表
  173. export const mbList = [
  174. {
  175. label: 'O2',
  176. label1: '浓度',
  177. label2: '时间',
  178. label3: '位置',
  179. nd: 4.45,
  180. time1: '2023-09-12 15:04',
  181. address: '综采工作面45联巷密闭',
  182. },
  183. {
  184. label: 'CO',
  185. label1: '浓度',
  186. label2: '时间',
  187. label3: '位置',
  188. nd: 2.2,
  189. time1: '2023-09-12 15:04',
  190. address: '综采工作面45联巷密闭',
  191. },
  192. {
  193. label: 'CO2',
  194. label1: '浓度',
  195. label2: '时间',
  196. label3: '位置',
  197. nd: 0.28,
  198. time1: '2023-09-12 15:04',
  199. address: '综采工作面45联巷密闭',
  200. },
  201. {
  202. label: 'CH4',
  203. label1: '浓度',
  204. label2: '时间',
  205. label3: '位置',
  206. nd: 0.29,
  207. time1: '2023-09-12 15:04',
  208. address: '综采工作面45联巷密闭',
  209. },
  210. {
  211. label: 'DP',
  212. label1: '浓度',
  213. label2: '时间',
  214. label3: '位置',
  215. nd: 0,
  216. time1: '2023-09-12 15:04',
  217. address: '综采工作面45联巷密闭',
  218. },
  219. {
  220. label: 'T',
  221. label1: '浓度',
  222. label2: '时间',
  223. label3: '位置',
  224. nd: 16.48,
  225. time1: '2023-09-12 15:04',
  226. address: '综采工作面45联巷密闭',
  227. },
  228. ];
  229. //其他工作面table列
  230. export const columnsOther = [
  231. { rowIndex: 1, dataIndex: 'info', title: '监测位置', type: '1', align: 'center' },
  232. { rowIndex: 2, dataIndex: 'wd', title: '甲烷浓度(℃)', type: '1', align: 'center' },
  233. { rowIndex: 3, dataIndex: 'tempmax', title: '一氧化碳(℃)', type: '1', align: 'center' },
  234. { rowIndex: 4, dataIndex: 'tempmin', title: '二氧化碳(℃)', type: '1', align: 'center' },
  235. { rowIndex: 5, dataIndex: 'info.netStatus', title: '氧气', type: '1', align: 'center' },
  236. { rowIndex: 6, dataIndex: 'info.warnStatus', title: '温度', type: '1', align: 'center' },
  237. { rowIndex: 7, dataIndex: 'createTime', title: '检测人', type: '1', align: 'center' },
  238. { rowIndex: 8, dataIndex: 'createTime1', title: '日期', type: '1', align: 'center' },
  239. ];
  240. //外因火灾-工作面顶部区域数据
  241. export const topOutList = [
  242. {
  243. id: 0,
  244. imgSrc: true,
  245. label: '最高温度(°C)',
  246. value: 17.69,
  247. text: '',
  248. },
  249. {
  250. id: 1,
  251. imgSrc: true,
  252. label: '最低温度(°C)',
  253. value: 14.26,
  254. text: '',
  255. },
  256. {
  257. id: 2,
  258. imgSrc: true,
  259. label: '平均温度(°C)',
  260. value: 16.78,
  261. text: '',
  262. },
  263. { id: 3, imgSrc: false, label: '', value: null, text: '无自然发火征兆和隐患' },
  264. {
  265. id: 4,
  266. imgSrc: false,
  267. label: '',
  268. value: null,
  269. text: '井下消防材料库',
  270. },
  271. ];
  272. //外因火灾-中间区域标题数据
  273. export const tabList = [
  274. { id: 0, label: '烟雾传感器监测', details: '设备类型名称' },
  275. { id: 1, label: '火焰传感器监测', details: '设备类型名称' },
  276. { id: 2, label: '自动喷淋灭火装置监测', details: '设备类型名称' },
  277. ];
  278. //外因火灾-传感器table列
  279. export const columns = [
  280. { rowIndex: 1, dataIndex: 'pointName', title: '名称', type: '1', align: 'center' },
  281. { rowIndex: 2, dataIndex: 'isOpen', title: '状态', type: '1', align: 'center' },
  282. { rowIndex: 3, dataIndex: 'time', title: '时间', type: '1', align: 'center' },
  283. ];
  284. //外因火灾温度监测-测点列表
  285. export const pointOutList = [
  286. { label: '测点1', value: 0 },
  287. { label: '测点2', value: 1 },
  288. ];
  289. //外因火灾温度监测-图表数据
  290. export const echartDataWd = {
  291. xData: [
  292. '2023-09-13 10:15',
  293. '2023-09-13 10:16',
  294. '2023-09-13 10:17',
  295. '2023-09-13 10:18',
  296. '2023-09-13 10:19',
  297. '2023-09-13 10:20',
  298. '2023-09-13 10:21',
  299. '2023-09-13 10:22',
  300. ],
  301. maxData: [32, 33, 31, 33, 34, 36, 35, 37],
  302. minData: [13, 15, 14, 12, 16, 15, 17, 19],
  303. aveaData: [21, 24, 23, 22, 26, 24, 25, 23],
  304. };
  305. //井下消防材料库列表
  306. export const dataList = [
  307. {
  308. fq: '1防区',
  309. btnText: '开启灭火器',
  310. label: '喷气',
  311. value: '正常',
  312. contentList: [
  313. {
  314. id: 0,
  315. imgSrc: getAssetURL('fire/fire.svg'),
  316. label: '喷气',
  317. value: '正常',
  318. },
  319. {
  320. id: 1,
  321. imgSrc: getAssetURL('fire/smoke.svg'),
  322. label: '喷气1',
  323. value: '正常',
  324. },
  325. {
  326. id: 2,
  327. imgSrc: getAssetURL('fire/fire.svg'),
  328. label: '喷气2',
  329. value: '正常',
  330. },
  331. {
  332. id: 3,
  333. imgSrc: getAssetURL('fire/warn.svg'),
  334. label: '喷气3',
  335. value: '正常',
  336. },
  337. ],
  338. },
  339. {
  340. fq: '2防区',
  341. btnText: '开启灭火器',
  342. label: '喷气',
  343. value: '正常',
  344. contentList: [
  345. {
  346. id: 0,
  347. imgSrc: getAssetURL('fire/fire.svg'),
  348. label: '喷气',
  349. value: '正常',
  350. },
  351. {
  352. id: 1,
  353. imgSrc: getAssetURL('fire/smoke.svg'),
  354. label: '喷气1',
  355. value: '正常',
  356. },
  357. {
  358. id: 2,
  359. imgSrc: getAssetURL('fire/fire.svg'),
  360. label: '喷气2',
  361. value: '正常',
  362. },
  363. {
  364. id: 3,
  365. imgSrc: getAssetURL('fire/warn.svg'),
  366. label: '喷气3',
  367. value: '正常',
  368. },
  369. ],
  370. },
  371. {
  372. fq: '3防区',
  373. btnText: '开启灭火器',
  374. label: '喷气',
  375. value: '正常',
  376. contentList: [
  377. {
  378. id: 0,
  379. imgSrc: getAssetURL('fire/fire.svg'),
  380. label: '喷气',
  381. value: '正常',
  382. },
  383. {
  384. id: 1,
  385. imgSrc: getAssetURL('fire/smoke.svg'),
  386. label: '喷气1',
  387. value: '正常',
  388. },
  389. {
  390. id: 2,
  391. imgSrc: getAssetURL('fire/fire.svg'),
  392. label: '喷气2',
  393. value: '正常',
  394. },
  395. {
  396. id: 3,
  397. imgSrc: getAssetURL('fire/warn.svg'),
  398. label: '喷气3',
  399. value: '正常',
  400. },
  401. ],
  402. },
  403. ];
  404. //外应火灾井下消防材料库标题列表1
  405. export const tabList1 = [
  406. { id: 0, label: '综采工作面温度监测', details: '设备类型名称' },
  407. { id: 1, label: '掘进工作面监测', details: '设备类型名称' },
  408. { id: 2, label: '运输系统烟雾传感器监测', details: '设备类型名称' },
  409. { id: 3, label: '机电硐室及配电点温度监测', details: '设备类型名称' },
  410. ];
  411. //综采温度table列
  412. export const columnWd = [
  413. { rowIndex: 1, dataIndex: 'nodePlacement', title: '测点位置', align: 'center', width: '210px', type: '1' },
  414. { rowIndex: 2, dataIndex: 'detectValue', title: '温度(℃)', align: 'center', type: '1' },
  415. { rowIndex: 3, dataIndex: 'warningMsg', title: '预警级别', align: 'center', type: '1' },
  416. { rowIndex: 4, dataIndex: 'dateTime', title: '时间', align: 'center', type: '1' },
  417. ];
  418. //掘进监测table列
  419. export const columnsJj = [
  420. { rowIndex: 1, dataIndex: 'name', title: '测点位置', align: 'center', width: '180px', type: '1' },
  421. { rowIndex: 2, dataIndex: 'co', title: 'CO浓度(%)', align: 'center', type: '1' },
  422. { rowIndex: 3, dataIndex: 'wd', title: '温度(℃)', align: 'center', type: '1' },
  423. { rowIndex: 4, dataIndex: 'warningMsg', title: '预警级别', align: 'center', type: '1' },
  424. { rowIndex: 5, dataIndex: 'dateTime', title: '时间', align: 'center', width: '180px', type: '1' },
  425. ];
  426. //运输烟雾table列
  427. export const columnsYw = [
  428. { rowIndex: 1, dataIndex: 'nodePlacement', title: '测点位置', align: 'center', width: '180px', type: '1' },
  429. { rowIndex: 2, dataIndex: 'detectValue', title: '温度(℃)', align: 'center', type: '1' },
  430. { rowIndex: 3, dataIndex: 'warningMsg', title: '预警级别', align: 'center', type: '1' },
  431. { rowIndex: 4, dataIndex: 'dateTime', title: '时间', align: 'center', width: '180px', type: '1' },
  432. ];
  433. //机电硐室table列
  434. export const columnsJd = [
  435. { rowIndex: 1, dataIndex: 'nodePlacement', title: '测点位置', align: 'center', width: '180px', type: '1' },
  436. { rowIndex: 2, dataIndex: 'detectValue', title: '温度(℃)', align: 'center', type: '1' },
  437. { rowIndex: 3, dataIndex: 'warningMsg', title: '预警级别', align: 'center', type: '1' },
  438. { rowIndex: 4, dataIndex: 'dateTime', title: '时间', align: 'center', width: '180px', type: '1' },
  439. ];