tunFace.data.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849
  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: '10',
  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 },
  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(255, 178, 18,0.3)',
  76. },
  77. {
  78. offset: 0.8,
  79. color: 'rgba(255, 178, 18,0)',
  80. },
  81. ],
  82. false
  83. ),
  84. shadowColor: 'rgba(0, 0, 0, 0.1)',
  85. shadowBlur: 10,
  86. },
  87. itemStyle: { color: '#FFB212', borderColor: 'rgba(221, 220, 107, .1)' },
  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 ventMonitor = [
  126. {
  127. title: '吸风量 (m³/min)',
  128. code: '',
  129. },
  130. {
  131. title: '供风量 (m³/min)',
  132. code: '',
  133. },
  134. {
  135. title: '需风量 (m³/t)',
  136. code: '',
  137. },
  138. {
  139. title: '漏风率 (%)',
  140. code: '',
  141. },
  142. {
  143. title: '风筒长度 (m)',
  144. code: '',
  145. },
  146. {
  147. title: '风筒直径 (cm)',
  148. code: '',
  149. },
  150. ];
  151. export const fanMonitor = [
  152. {
  153. title: '供风侧风速 (m/s)',
  154. code: '',
  155. },
  156. {
  157. title: '供风侧风量 (m³/min)',
  158. code: '',
  159. },
  160. {
  161. title: '当前运行风机',
  162. code: '',
  163. },
  164. {
  165. title: '运行频率 (Hz)',
  166. code: '',
  167. },
  168. {
  169. title: '输出电流 (A)',
  170. code: '',
  171. },
  172. {
  173. title: '输出电压 (V)',
  174. code: '',
  175. },
  176. {
  177. title: '输出功率 (kW)',
  178. code: '',
  179. },
  180. {
  181. title: '功率因数',
  182. code: '',
  183. },
  184. ];
  185. export const warningConfig = reactive({
  186. header: ['设备名称', '预警信息', '时间'],
  187. data: [
  188. ['火焰6', '严重报警', '03-05'],
  189. ['测点43', '一般预警', '03-05'],
  190. ['CO23', '一般预警', '03-05'],
  191. ['测点6', '超高预警', '03-05'],
  192. ['测点65', '超高预警', '03-05'],
  193. ['温度4', '一般预警', '03-05'],
  194. ['测点61', '一般预警', '03-05'],
  195. ['测点87', '一般信息', '03-05'],
  196. ],
  197. index: false,
  198. // columnWidth: [150, 80, 150, 150],
  199. headerBGC: '#3d9dd45d',
  200. oddRowBGC: '#009acd10',
  201. evenRowBGC: '#009acd05',
  202. align: ['center', 'center', 'center'],
  203. });
  204. export const locationConfig = reactive({
  205. header: ['人名', '所在位置', '距离'],
  206. data: [],
  207. index: false,
  208. columnWidth: [100, 200, 80],
  209. headerBGC: '#3d9dd45d',
  210. oddRowBGC: '#009acd10',
  211. evenRowBGC: '#009acd05',
  212. align: ['center', 'center', 'center'],
  213. });
  214. export const sensorColumns: BasicColumn[] = [
  215. {
  216. title: '名称',
  217. dataIndex: 'strname',
  218. width: 100,
  219. align: 'center',
  220. },
  221. {
  222. title: '实时值',
  223. dataIndex: 'smokeval',
  224. width: 80,
  225. align: 'center',
  226. },
  227. {
  228. title: '报警',
  229. dataIndex: 'warnFlag',
  230. width: 100,
  231. align: 'center',
  232. },
  233. ];
  234. export const gateColumns: BasicColumn[] = [
  235. {
  236. title: '名称',
  237. dataIndex: 'strname',
  238. width: 100,
  239. align: 'center',
  240. },
  241. {
  242. title: '前门状态',
  243. dataIndex: 'frontGateOpen',
  244. width: 80,
  245. align: 'center',
  246. },
  247. {
  248. title: '后门状态',
  249. dataIndex: 'rearGateOpen',
  250. width: 80,
  251. align: 'center',
  252. },
  253. {
  254. title: '操作',
  255. dataIndex: 'action',
  256. width: 80,
  257. align: 'center',
  258. },
  259. ];
  260. export const windowColumns: BasicColumn[] = [
  261. {
  262. title: '名称',
  263. dataIndex: 'strname',
  264. width: 100,
  265. align: 'center',
  266. },
  267. {
  268. title: '过风量',
  269. dataIndex: 'forntm3',
  270. width: 80,
  271. align: 'center',
  272. },
  273. {
  274. title: '操作',
  275. dataIndex: 'action',
  276. width: 80,
  277. align: 'center',
  278. },
  279. ];
  280. export const windColumns: BasicColumn[] = [
  281. {
  282. title: '名称',
  283. dataIndex: 'strname',
  284. width: 100,
  285. align: 'center',
  286. },
  287. {
  288. title: '风量',
  289. dataIndex: 'm3',
  290. width: 80,
  291. align: 'center',
  292. },
  293. {
  294. title: '操作',
  295. dataIndex: 'action',
  296. width: 80,
  297. align: 'center',
  298. },
  299. ];
  300. export const dustColumns: BasicColumn[] = [
  301. {
  302. title: '名称',
  303. dataIndex: 'strname',
  304. width: 100,
  305. align: 'center',
  306. },
  307. {
  308. title: '链接状态',
  309. dataIndex: 'netStatus',
  310. width: 80,
  311. align: 'center',
  312. },
  313. {
  314. title: '操作',
  315. dataIndex: 'action',
  316. width: 100,
  317. align: 'center',
  318. },
  319. ];
  320. export const beamTubeColumns = [
  321. {
  322. gasval: '甲烷(%)',
  323. ch2val: '乙烯(ppm)',
  324. },
  325. {
  326. o2val: '氧气(%)',
  327. chval: '乙炔(ppm)',
  328. },
  329. {
  330. coval: '一氧化碳(ppm)',
  331. co2val: '二氧化碳(%)',
  332. },
  333. ];
  334. export const groutColumns = [
  335. {
  336. flowRate: '流量(m³/min)',
  337. pressure: '压力(Pa)',
  338. },
  339. ];
  340. export const nitrogenColumns = [
  341. {
  342. cumulativeFlow: '流量(m³/min)',
  343. nitrogenPressure: '压力(Pa)',
  344. },
  345. ];
  346. export const sprayColumns: BasicColumn[] = [
  347. {
  348. title: '名称',
  349. dataIndex: 'strname',
  350. width: 100,
  351. align: 'center',
  352. },
  353. {
  354. title: '连接状态',
  355. dataIndex: 'netStatus',
  356. width: 80,
  357. align: 'center',
  358. },
  359. {
  360. title: '启停',
  361. dataIndex: 'action',
  362. width: 80,
  363. align: 'center',
  364. },
  365. ];
  366. export const dustFanParam = [
  367. {
  368. title: '输出电流 (A)',
  369. code: '',
  370. value: '6.5',
  371. },
  372. {
  373. title: '输出电压 (V)',
  374. code: '',
  375. value: '220',
  376. },
  377. {
  378. title: '排灰功率 (kW)',
  379. code: '',
  380. value: '400',
  381. },
  382. {
  383. title: '运行频率 (Hz)',
  384. code: '',
  385. value: '45',
  386. },
  387. {
  388. title: '漏风率 (%)',
  389. code: '',
  390. value: '4.22',
  391. },
  392. {
  393. title: '工作噪声 (dB(A))',
  394. code: '',
  395. value: '71',
  396. },
  397. {
  398. title: '震动速度 (mm/s)',
  399. code: '',
  400. value: '800',
  401. },
  402. {
  403. title: '气液比(L/m³)',
  404. code: '',
  405. value: '0.31',
  406. },
  407. ];
  408. export const disasterParam = ref([
  409. {
  410. title: '触发灾变传感器',
  411. value: '1',
  412. type: 'select',
  413. options: [
  414. {
  415. label: 'CO与烟雾',
  416. value: '1',
  417. },
  418. {
  419. label: 'CO',
  420. value: '2',
  421. },
  422. {
  423. label: '烟雾',
  424. value: '3',
  425. },
  426. ],
  427. },
  428. {
  429. title: 'CO浓度限值(ppm)',
  430. value: '',
  431. type: 'input',
  432. },
  433. {
  434. title: 'CO报警持续时间(s)',
  435. value: '',
  436. type: 'input',
  437. },
  438. {
  439. title: '烟雾报警持续时间(s)',
  440. value: '',
  441. type: 'input',
  442. },
  443. ]);
  444. export const dustFanSetting = ref([
  445. {
  446. title: '除尘器频率设置(Hz)',
  447. code: 'dustFrequency',
  448. type: 'input',
  449. inputNum: 0,
  450. },
  451. {
  452. title: '清灰时间(ms)',
  453. code: 'clearDust',
  454. type: 'input',
  455. inputNum: 0,
  456. },
  457. {
  458. title: '清灰周期(s)',
  459. code: 'clearCycle',
  460. type: 'input',
  461. inputNum: 0,
  462. },
  463. ]);
  464. export const dustMonitor = ref([
  465. {
  466. title: '处理风量',
  467. unit: '(m³/min)',
  468. code: '487',
  469. value: '487',
  470. },
  471. {
  472. title: '总粉尘除尘效率',
  473. unit: '(%)',
  474. code: '99',
  475. value: '99',
  476. },
  477. {
  478. title: '进口粉尘允许浓度',
  479. unit: '(g/m³)',
  480. code: '0.79',
  481. value: '0.79',
  482. },
  483. {
  484. title: '呼吸性粉尘除尘效率',
  485. unit: '(%)',
  486. code: '96',
  487. value: '96',
  488. },
  489. ]);
  490. export const compressorMonitor = [
  491. {
  492. title: '总吸风量',
  493. code: '',
  494. unit: 'm³/min',
  495. },
  496. {
  497. title: '总供风量',
  498. code: '',
  499. unit: 'm³/min',
  500. },
  501. {
  502. title: '局扇频率',
  503. code: '',
  504. unit: 'Hz',
  505. },
  506. {
  507. title: '进风风窗当前面积',
  508. code: '',
  509. unit: '㎡',
  510. },
  511. {
  512. title: '回风风窗当前面积',
  513. code: '',
  514. unit: '㎡',
  515. },
  516. ];
  517. export const compressorParam = [
  518. {
  519. title: '迎头瓦斯增长率限值',
  520. value: '',
  521. type: 'input',
  522. },
  523. {
  524. title: '迎头瓦斯浓度限值',
  525. value: '',
  526. type: 'input',
  527. },
  528. ];
  529. export const compressorDeviceParam = [
  530. {
  531. title: '局扇频率调节(Hz)',
  532. value: '',
  533. type: 'input',
  534. },
  535. ];
  536. export const coalMachineDustParam = [
  537. {
  538. title: '喷雾状态',
  539. value: '1',
  540. unit: '',
  541. flag: 'sign',
  542. },
  543. {
  544. title: '通信状态',
  545. value: '1',
  546. unit: '',
  547. flag: 'sign',
  548. },
  549. {
  550. title: '供水压力',
  551. value: '0.22',
  552. unit: 'MPa',
  553. },
  554. {
  555. title: '内喷雾压力',
  556. value: '0.47',
  557. unit: 'MPa',
  558. },
  559. {
  560. title: '内喷雾流量',
  561. value: '25.6',
  562. unit: 'L/min',
  563. },
  564. {
  565. title: '外喷雾压力',
  566. value: '0.42',
  567. unit: 'MPa',
  568. },
  569. {
  570. title: '外喷雾流量',
  571. value: '25.2',
  572. unit: 'm³/min',
  573. },
  574. {
  575. title: '除尘效率',
  576. value: '99',
  577. unit: '%',
  578. },
  579. ];
  580. export const beltMachineDustParam = [
  581. {
  582. title: '全尘',
  583. value: '',
  584. unit: 'mg/m³',
  585. },
  586. {
  587. title: '呼尘',
  588. value: '',
  589. unit: 'mg/m³',
  590. },
  591. {
  592. title: '内喷雾压力',
  593. value: '',
  594. unit: 'Pa',
  595. },
  596. {
  597. title: '内喷雾流量',
  598. value: '',
  599. unit: 'm³/min',
  600. },
  601. {
  602. title: '外喷雾压力',
  603. value: '',
  604. unit: 'Pa',
  605. },
  606. {
  607. title: '外喷雾流量',
  608. value: '',
  609. type: 'input',
  610. unit: 'm³/min',
  611. },
  612. ];
  613. export const dustConfig = reactive({
  614. header: ['编号', '位置', '触发', '故障诊断'],
  615. data: [
  616. ['001', '0m', '是', '正常'],
  617. ['002', '2m', '是', '正常'],
  618. ['003', '4m', '是', '正常'],
  619. ['004', '6m', '是', '正常'],
  620. ['005', '8m', '是', '正常'],
  621. ['006', '10m', '是', '正常'],
  622. ['007', '12m', '是', '正常'],
  623. ],
  624. index: false,
  625. headerBGC: '#3d9dd45d',
  626. oddRowBGC: '#009acd10',
  627. evenRowBGC: '#009acd05',
  628. align: ['center', 'center', 'center', 'center'],
  629. });
  630. export const gasMonitor = [
  631. {
  632. title: '甲烷浓度T0 (%)',
  633. code: 'T0',
  634. },
  635. {
  636. title: '甲烷浓度T1 (%)',
  637. code: 'T1',
  638. },
  639. {
  640. title: '甲烷浓度T2 (%)',
  641. code: 'T2',
  642. },
  643. {
  644. title: '二氧化碳浓度 (%)',
  645. code: 'CO2',
  646. },
  647. {
  648. title: '瓦斯抽采浓度 (%)',
  649. code: 'gasC',
  650. },
  651. {
  652. title: '瓦斯抽采混量 (m³/min)',
  653. code: 'gasMixMass',
  654. },
  655. {
  656. title: '瓦斯抽采纯量 (m³/min)',
  657. code: 'gasMass',
  658. },
  659. {
  660. title: '残余瓦斯含量 (m³/t)',
  661. code: 'gasMass',
  662. },
  663. {
  664. title: '累计抽采量 (m³)',
  665. code: 'gasTotalMass',
  666. },
  667. {
  668. title: '风压 (kPa)',
  669. code: 'windPressure',
  670. },
  671. ];
  672. export const gasParamData = [
  673. {
  674. title: '走向长度 (m)',
  675. code: 'lenH',
  676. },
  677. {
  678. title: '倾向长度 (m)',
  679. code: 'lenDip',
  680. },
  681. {
  682. title: '煤层厚度 (m)',
  683. code: 'thickness',
  684. },
  685. {
  686. title: '煤层倾角 (°)',
  687. code: 'angleDip',
  688. },
  689. {
  690. title: '吸附常数a (cm³/gdaf)',
  691. code: 'adsorbA',
  692. },
  693. {
  694. title: '吸附常数b (MPa-l)',
  695. code: 'adsorbB',
  696. },
  697. {
  698. title: '水分Mad (%)',
  699. code: 'waterMad',
  700. },
  701. {
  702. title: '灰分Ad (%)',
  703. code: 'dustAd',
  704. },
  705. {
  706. title: '挥发分Vdaf (%)',
  707. code: 'volatilizeAd',
  708. },
  709. {
  710. title: '孔隙率 (m³)',
  711. code: 'poreRate',
  712. },
  713. {
  714. title: '真相对密度',
  715. code: 'trueDensity',
  716. },
  717. {
  718. title: '视相对密度',
  719. code: 'apparentDensity',
  720. },
  721. ];
  722. export const currentGasMonitor = [
  723. {
  724. title: '原始瓦斯含量 (m³/t)',
  725. code: 'gasOriginalMass',
  726. },
  727. {
  728. title: '残余瓦斯含量 (m³/t)',
  729. code: 'gasRemnantMass',
  730. },
  731. {
  732. title: '残存瓦斯含量 (m³/t)',
  733. code: 'gasSurviveMass',
  734. },
  735. {
  736. title: '瓦斯压力 (MPa)',
  737. code: 'gasTotalMass',
  738. },
  739. {
  740. title: '煤层厚度 (m)',
  741. code: 'currentThickness',
  742. },
  743. {
  744. title: '煤层倾角 (°)',
  745. code: 'currentAngleDip',
  746. },
  747. {
  748. title: '地质构造',
  749. code: 'geologicStructure',
  750. },
  751. ];
  752. export const gasPumpValve = [
  753. {
  754. title: '1#智能阀门',
  755. code: 'valve1Val',
  756. inputNum: 0,
  757. },
  758. {
  759. title: '2#智能阀门',
  760. code: 'valve2Val',
  761. inputNum: 0,
  762. },
  763. {
  764. title: '3#智能阀门',
  765. code: 'valve3Val',
  766. inputNum: 0,
  767. },
  768. {
  769. title: '4#智能阀门',
  770. code: 'valve4Val',
  771. inputNum: 0,
  772. },
  773. {
  774. title: '5#智能阀门',
  775. code: 'valve5Val',
  776. inputNum: 0,
  777. },
  778. ];
  779. export const highTensionNum = 3;
  780. export const lowTensionNum = 1;
  781. export const gasExtractionUnit = [
  782. {
  783. title: '负压 (kPa)',
  784. code: 'nPressure',
  785. },
  786. {
  787. title: 'CH4 (%)',
  788. code: 'CH4 ',
  789. },
  790. {
  791. title: '流量 (m³/min)',
  792. code: 'flowRate',
  793. },
  794. {
  795. title: '纯量 (m³/min)',
  796. code: 'scalarRate',
  797. },
  798. // {
  799. // title: '累计抽采量 (m³)',
  800. // code: 'unitTotalMass',
  801. // },
  802. ];
  803. export const gasPump = [
  804. {
  805. title: '1#抽采泵',
  806. code: 'extractionPump1',
  807. value: '0',
  808. ctrCode: 'gasPump1Open',
  809. },
  810. {
  811. title: '1#抽采泵',
  812. code: 'extractionPump1',
  813. value: '0',
  814. ctrCode: 'gasPump2Open',
  815. },
  816. ];
  817. export const gasPumpCtr = reactive({
  818. gasPump1Open: '0',
  819. gasPump2Open: '0',
  820. });