workFace.data.ts 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. import { reactive, ref } from 'vue';
  2. import { BasicColumn } from '/@/components/Table';
  3. import echarts from '/@/utils/lib/echarts';
  4. export const monitorNav = [
  5. {
  6. title: '一通三防综合管控',
  7. isShow: true,
  8. },
  9. {
  10. title: '通风监测与管控',
  11. isShow: false,
  12. },
  13. {
  14. title: '防灭火监测与管控',
  15. isShow: false,
  16. },
  17. {
  18. title: '防尘监测与管控',
  19. isShow: false,
  20. },
  21. {
  22. title: '瓦斯防治监测与管控',
  23. isShow: false,
  24. },
  25. ];
  26. export const echartsOption = reactive({
  27. tooltip: { trigger: 'axis', axisPointer: { lineStyle: { color: '#fff' } } },
  28. legend: {
  29. top: '-5',
  30. icon: 'rect',
  31. data: ['进风', '回风'],
  32. right: '10px',
  33. textStyle: { fontSize: 12, color: '#fff' },
  34. },
  35. grid: { x: 50, y: 50, x2: 12, y2: 40, bottom: '25', top: '10' },
  36. xAxis: {
  37. type: 'category',
  38. boundaryGap: false,
  39. axisLine: { lineStyle: { color: '#8EAFB9' } },
  40. axisLabel: { color: '#ffffffcc' },
  41. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  42. data: [],
  43. },
  44. yAxis: [
  45. {
  46. type: 'value',
  47. name: 'm³/min',
  48. axisTick: {
  49. show: false,
  50. },
  51. axisLine: { lineStyle: { show: true, color: '#8EAFB9' } },
  52. axisLabel: { margin: 10, fontSize: 12, color: '#ffffffcc' },
  53. splitLine: { show: true, lineStyle: { color: '#57617B22', type: 'dashed' } },
  54. },
  55. ],
  56. series: [
  57. {
  58. name: '进风',
  59. type: 'line',
  60. smooth: true,
  61. lineStyle: { width: 2 },
  62. yAxisIndex: 0,
  63. // markLine: {
  64. // data: [{ yAxis: 0, name: '需风量' }],
  65. // },
  66. areaStyle: {
  67. color: new echarts.graphic.LinearGradient(
  68. 0,
  69. 0,
  70. 0,
  71. 1,
  72. [
  73. {
  74. offset: 0,
  75. color: 'rgba(185,150,248,0.3)',
  76. },
  77. {
  78. offset: 0.8,
  79. color: 'rgba(185,150,248,0)',
  80. },
  81. ],
  82. false
  83. ),
  84. shadowColor: 'rgba(0, 0, 0, 0.1)',
  85. shadowBlur: 10,
  86. },
  87. itemStyle: { color: '#B996F8' },
  88. data: [],
  89. },
  90. {
  91. name: '回风',
  92. type: 'line',
  93. smooth: true,
  94. lineStyle: { width: 2 },
  95. yAxisIndex: 0,
  96. // markLine: {
  97. // data: [{ yAxis: 0, name: '需风量' }],
  98. // },
  99. areaStyle: {
  100. color: new echarts.graphic.LinearGradient(
  101. 0,
  102. 0,
  103. 0,
  104. 1,
  105. [
  106. {
  107. offset: 0,
  108. color: 'rgba(3, 194, 236, 0.3)',
  109. },
  110. {
  111. offset: 0.8,
  112. color: 'rgba(3, 194, 236, 0)',
  113. },
  114. ],
  115. false
  116. ),
  117. shadowColor: 'rgba(0, 0, 0, 0.1)',
  118. shadowBlur: 10,
  119. },
  120. itemStyle: { color: '#03C2EC' },
  121. data: [],
  122. },
  123. ],
  124. });
  125. export const ventParam = [
  126. {
  127. title: '允许超出风量(m³/min)',
  128. value: '',
  129. type: 'input',
  130. },
  131. {
  132. title: '瓦斯浓度限值(%)',
  133. value: '',
  134. type: 'input',
  135. },
  136. {
  137. title: '瓦斯持续超限时间(s)',
  138. value: '',
  139. type: 'input',
  140. },
  141. {
  142. title: '风量调控策略',
  143. value: '1',
  144. type: 'radio',
  145. },
  146. ];
  147. export const warningConfig = reactive({
  148. header: ['设备名称', '预警信息', '时间'],
  149. data: [
  150. ['火焰6', '严重报警', '03-05'],
  151. ['测点43', '一般预警', '03-05'],
  152. ['CO23', '一版预警', '03-05'],
  153. ['测点6', '超高预警', '03-05'],
  154. ['测点65', '超高预警', '03-05'],
  155. ['温度4', '一般预警', '03-05'],
  156. ['测点61', '一般预警', '03-05'],
  157. ['测点87', '一般信息', '03-05'],
  158. ],
  159. index: false,
  160. headerBGC: '#3d9dd45d',
  161. oddRowBGC: '#009acd10',
  162. evenRowBGC: '#009acd05',
  163. align: ['center', 'center', 'center'],
  164. });
  165. export const locationConfig = reactive({
  166. header: ['人名', '所在位置', '距离'],
  167. data: [],
  168. index: false,
  169. columnWidth: [100, 200, 80],
  170. headerBGC: '#3d9dd45d',
  171. oddRowBGC: '#009acd10',
  172. evenRowBGC: '#009acd05',
  173. align: ['center', 'center', 'center'],
  174. });
  175. export const sensorColumns: BasicColumn[] = [
  176. {
  177. title: '名称',
  178. dataIndex: 'strname',
  179. width: 100,
  180. align: 'center',
  181. },
  182. {
  183. title: '实时值',
  184. dataIndex: 'smokeval',
  185. width: 80,
  186. align: 'center',
  187. },
  188. {
  189. title: '报警',
  190. dataIndex: 'warnFlag',
  191. width: 100,
  192. align: 'center',
  193. },
  194. ];
  195. export const gateColumns: BasicColumn[] = [
  196. {
  197. title: '名称',
  198. dataIndex: 'strname',
  199. width: 100,
  200. align: 'center',
  201. },
  202. {
  203. title: '前门状态',
  204. dataIndex: 'frontGateOpen',
  205. width: 80,
  206. align: 'center',
  207. },
  208. {
  209. title: '后门状态',
  210. dataIndex: 'rearGateOpen',
  211. width: 80,
  212. align: 'center',
  213. },
  214. {
  215. title: '操作',
  216. dataIndex: 'action',
  217. width: 80,
  218. align: 'center',
  219. },
  220. ];
  221. export const windowColumns: BasicColumn[] = [
  222. {
  223. title: '名称',
  224. dataIndex: 'strname',
  225. width: 100,
  226. align: 'center',
  227. },
  228. {
  229. title: '过风量',
  230. dataIndex: 'forntm3',
  231. width: 80,
  232. align: 'center',
  233. },
  234. {
  235. title: '操作',
  236. dataIndex: 'action',
  237. width: 80,
  238. align: 'center',
  239. },
  240. ];
  241. export const windColumns: BasicColumn[] = [
  242. {
  243. title: '名称',
  244. dataIndex: 'strname',
  245. width: 100,
  246. align: 'center',
  247. },
  248. {
  249. title: '风量',
  250. dataIndex: 'm³',
  251. width: 80,
  252. align: 'center',
  253. },
  254. {
  255. title: '操作',
  256. dataIndex: 'action',
  257. width: 80,
  258. align: 'center',
  259. },
  260. ];
  261. export const dustColumns: BasicColumn[] = [
  262. {
  263. title: '名称',
  264. dataIndex: 'strname',
  265. width: 100,
  266. align: 'center',
  267. },
  268. {
  269. title: '链接状态',
  270. dataIndex: 'netStatus',
  271. width: 80,
  272. align: 'center',
  273. },
  274. {
  275. title: '操作',
  276. dataIndex: 'action',
  277. width: 100,
  278. align: 'center',
  279. },
  280. ];
  281. export const beamTubeColumns = [
  282. {
  283. gasval: '甲烷(%)',
  284. ch2val: '乙烯(ppm)',
  285. },
  286. {
  287. o2val: '氧气(%)',
  288. chval: '乙炔(ppm)',
  289. },
  290. {
  291. coval: '一氧化碳(ppm)',
  292. co2val: '二氧化碳(%)',
  293. },
  294. ];
  295. export const groutColumns = [
  296. {
  297. flowRate: '流量(m³/min)',
  298. pressure: '压力(Pa)',
  299. },
  300. ];
  301. export const nitrogenColumns = [
  302. {
  303. cumulativeFlow: '流量(m³/min)',
  304. nitrogenPressure: '压力(Pa)',
  305. },
  306. ];
  307. export const sprayColumns: BasicColumn[] = [
  308. {
  309. title: '名称',
  310. dataIndex: 'strname',
  311. width: 100,
  312. align: 'center',
  313. },
  314. {
  315. title: '连接状态',
  316. dataIndex: 'netStatus',
  317. width: 80,
  318. align: 'center',
  319. },
  320. {
  321. title: '启停',
  322. dataIndex: 'action',
  323. width: 80,
  324. align: 'center',
  325. },
  326. ];
  327. export const disasterParam = ref([
  328. {
  329. title: '触发灾变传感器',
  330. value: '1',
  331. type: 'select',
  332. options: [
  333. {
  334. label: 'CO与烟雾',
  335. value: '1',
  336. },
  337. {
  338. label: 'CO',
  339. value: '2',
  340. },
  341. {
  342. label: '烟雾',
  343. value: '3',
  344. },
  345. ],
  346. },
  347. {
  348. title: 'CO浓度限值(ppm)',
  349. value: '',
  350. type: 'input',
  351. },
  352. {
  353. title: 'CO报警持续时间(s)',
  354. value: '',
  355. type: 'input',
  356. },
  357. {
  358. title: '烟雾报警持续时间(s)',
  359. value: '',
  360. type: 'input',
  361. },
  362. ]);
  363. export const compressorMonitor = [
  364. {
  365. title: '总吸风量',
  366. code: 'windQuantity2',
  367. unit: 'm³/min',
  368. },
  369. {
  370. title: '总供风量',
  371. code: 'windQuantity1',
  372. unit: 'm³/min',
  373. },
  374. {
  375. title: '局扇频率',
  376. code: 'fHz',
  377. unit: 'Hz',
  378. },
  379. {
  380. title: '进风风窗当前面积',
  381. code: 'jinArea',
  382. unit: '㎡',
  383. },
  384. {
  385. title: '回风风窗当前面积',
  386. code: 'huiArea',
  387. unit: '㎡',
  388. },
  389. ];
  390. export const compressorParam = [
  391. {
  392. title: 'O2浓度限值',
  393. value: '',
  394. type: 'input',
  395. },
  396. {
  397. title: 'CO浓度限值',
  398. value: '',
  399. type: 'input',
  400. },
  401. ];
  402. export const compressorDeviceParam = [
  403. {
  404. title: '局扇频率调节(Hz)',
  405. value: '',
  406. type: 'input',
  407. },
  408. {
  409. title: '进风风窗当前面积(㎡)',
  410. value: '',
  411. type: 'input',
  412. },
  413. {
  414. title: '回风风窗当前面积(㎡)',
  415. value: '',
  416. type: 'input',
  417. },
  418. ];
  419. export const coalMachineDustParam = [
  420. {
  421. title: '内喷雾压力',
  422. value: '',
  423. unit: 'Pa',
  424. },
  425. {
  426. title: '内喷雾流量',
  427. value: '',
  428. unit: 'm³/min',
  429. },
  430. {
  431. title: '外喷雾压力',
  432. value: '',
  433. unit: 'Pa',
  434. },
  435. {
  436. title: '外喷雾流量',
  437. value: '',
  438. unit: 'm³/min',
  439. },
  440. ];
  441. export const beltMachineDustParam = [
  442. {
  443. title: '全尘',
  444. value: '',
  445. unit: 'mg/m³',
  446. },
  447. {
  448. title: '呼尘',
  449. value: '',
  450. unit: 'mg/m³',
  451. },
  452. {
  453. title: '内喷雾压力',
  454. value: '',
  455. unit: 'Pa',
  456. },
  457. {
  458. title: '内喷雾流量',
  459. value: '',
  460. unit: 'm³/min',
  461. },
  462. {
  463. title: '外喷雾压力',
  464. value: '',
  465. unit: 'Pa',
  466. },
  467. {
  468. title: '外喷雾流量',
  469. value: '',
  470. type: 'input',
  471. unit: 'm³/min',
  472. },
  473. ];
  474. export const dustConfig = reactive({
  475. header: ['编号', '位置', '触发', '故障诊断'],
  476. data: [
  477. ['001', '0m', '是', '正常'],
  478. ['002', '2m', '是', '正常'],
  479. ['003', '4m', '是', '正常'],
  480. ['004', '6m', '是', '正常'],
  481. ['005', '8m', '是', '正常'],
  482. ['006', '10m', '是', '正常'],
  483. ['007', '12m', '是', '正常'],
  484. ],
  485. index: false,
  486. headerBGC: '#3d9dd45d',
  487. oddRowBGC: '#009acd10',
  488. evenRowBGC: '#009acd05',
  489. align: ['center', 'center', 'center', 'center'],
  490. });
  491. export const gasMonitor = [
  492. {
  493. title: '甲烷浓度T0 (%)',
  494. code: 'T0',
  495. },
  496. {
  497. title: '甲烷浓度T1 (%)',
  498. code: 'T1',
  499. },
  500. {
  501. title: '甲烷浓度T2 (%)',
  502. code: 'T2',
  503. },
  504. {
  505. title: '二氧化碳浓度 (%)',
  506. code: 'CO2',
  507. },
  508. {
  509. title: '瓦斯抽采浓度 (%)',
  510. code: 'gasC',
  511. },
  512. {
  513. title: '瓦斯抽采混量 (m³/min)',
  514. code: 'gasMixMass',
  515. },
  516. {
  517. title: '瓦斯抽采纯量 (m³/min)',
  518. code: 'gasMass',
  519. },
  520. {
  521. title: '残余瓦斯含量 (m³/t)',
  522. code: 'gasMass',
  523. },
  524. {
  525. title: '累计抽采量 (m³)',
  526. code: 'gasTotalMass',
  527. },
  528. {
  529. title: '风压 (kPa)',
  530. code: 'windPressure',
  531. },
  532. ];
  533. export const gasParamData = [
  534. {
  535. title: '走向长度 (m)',
  536. code: 'lenH',
  537. },
  538. {
  539. title: '倾向长度 (m)',
  540. code: 'lenDip',
  541. },
  542. {
  543. title: '煤层厚度 (m)',
  544. code: 'thickness',
  545. },
  546. {
  547. title: '煤层倾角 (°)',
  548. code: 'angleDip',
  549. },
  550. {
  551. title: '吸附常数a (cm³/gdaf)',
  552. code: 'adsorbA',
  553. },
  554. {
  555. title: '吸附常数b (MPa-l)',
  556. code: 'adsorbB',
  557. },
  558. {
  559. title: '水分Mad (%)',
  560. code: 'waterMad',
  561. },
  562. {
  563. title: '灰分Ad (%)',
  564. code: 'dustAd',
  565. },
  566. {
  567. title: '挥发分Vdaf (%)',
  568. code: 'volatilizeAd',
  569. },
  570. {
  571. title: '孔隙率 (m³)',
  572. code: 'poreRate',
  573. },
  574. {
  575. title: '真相对密度',
  576. code: 'trueDensity',
  577. },
  578. {
  579. title: '视相对密度',
  580. code: 'apparentDensity',
  581. },
  582. ];
  583. export const currentGasMonitor = [
  584. {
  585. title: '原始瓦斯含量 (m³/t)',
  586. code: 'gasOriginalMass',
  587. },
  588. {
  589. title: '残余瓦斯含量 (m³/t)',
  590. code: 'gasRemnantMass',
  591. },
  592. {
  593. title: '残存瓦斯含量 (m³/t)',
  594. code: 'gasSurviveMass',
  595. },
  596. {
  597. title: '瓦斯压力 (MPa)',
  598. code: 'gasTotalMass',
  599. },
  600. {
  601. title: '煤层厚度 (m)',
  602. code: 'currentThickness',
  603. },
  604. {
  605. title: '煤层倾角 (°)',
  606. code: 'currentAngleDip',
  607. },
  608. {
  609. title: '地质构造',
  610. code: 'geologicStructure',
  611. },
  612. ];
  613. export const gasPumpValve = [
  614. {
  615. title: '1#智能阀门',
  616. code: 'valve1Val',
  617. inputNum: 0,
  618. },
  619. {
  620. title: '2#智能阀门',
  621. code: 'valve2Val',
  622. inputNum: 0,
  623. },
  624. {
  625. title: '3#智能阀门',
  626. code: 'valve3Val',
  627. inputNum: 0,
  628. },
  629. {
  630. title: '4#智能阀门',
  631. code: 'valve4Val',
  632. inputNum: 0,
  633. },
  634. {
  635. title: '5#智能阀门',
  636. code: 'valve5Val',
  637. inputNum: 0,
  638. },
  639. ];
  640. export const highTensionNum = 3;
  641. export const lowTensionNum = 1;
  642. export const gasExtractionUnit = [
  643. {
  644. title: '负压 (kPa)',
  645. code: 'nPressure',
  646. },
  647. {
  648. title: 'CH4 (%)',
  649. code: 'CH4 ',
  650. },
  651. {
  652. title: '流量 (m³/min)',
  653. code: 'flowRate',
  654. },
  655. {
  656. title: '纯量 (m³/min)',
  657. code: 'scalarRate',
  658. },
  659. // {
  660. // title: '累计抽采量 (m³)',
  661. // code: 'unitTotalMass',
  662. // },
  663. ];
  664. export const gasPump = [
  665. {
  666. title: '1#抽采泵',
  667. code: 'extractionPump1',
  668. value: '0',
  669. ctrCode: 'gasPump1Open',
  670. },
  671. {
  672. title: '1#抽采泵',
  673. code: 'extractionPump1',
  674. value: '0',
  675. ctrCode: 'gasPump2Open',
  676. },
  677. ];
  678. export const gasPumpCtr = reactive({
  679. gasPump1Open: '0',
  680. gasPump2Open: '0',
  681. });
  682. export const gasUnitDetail = [
  683. {
  684. title: '抽采负压(kPa)',
  685. code: 'nPressure',
  686. // unit: 'kPa',
  687. },
  688. {
  689. title: '甲烷浓度(%)',
  690. code: 'CH4 ',
  691. // unit: '%',
  692. },
  693. {
  694. title: '气体温度(℃)',
  695. code: 'temperature',
  696. // unit: '℃',
  697. },
  698. {
  699. title: '瞬时流量(万m³)',
  700. code: 'flowRate',
  701. // unit: '万m³',
  702. },
  703. {
  704. title: '实时累计纯量(万m³)',
  705. code: 'scalarRate',
  706. // unit: '万m³',
  707. },
  708. // {
  709. // title: '累计抽采量 (m³)',
  710. // code: 'unitTotalMass',
  711. // },
  712. ];