tunFace.data.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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: 'm³',
  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. },
  371. {
  372. title: '输出电压 (V)',
  373. code: '',
  374. },
  375. {
  376. title: '排灰功率 (kW)',
  377. code: '',
  378. },
  379. {
  380. title: '运行频率 (Hz)',
  381. code: '',
  382. },
  383. {
  384. title: '漏风率 (%)',
  385. code: '',
  386. },
  387. {
  388. title: '工作噪声 (dB(A))',
  389. code: '',
  390. },
  391. {
  392. title: '震动速度 (mm/s)',
  393. code: '',
  394. },
  395. {
  396. title: '气液比(mm/s)',
  397. code: '',
  398. },
  399. ];
  400. export const disasterParam = ref([
  401. {
  402. title: '触发灾变传感器',
  403. value: '1',
  404. type: 'select',
  405. options: [
  406. {
  407. label: 'CO与烟雾',
  408. value: '1',
  409. },
  410. {
  411. label: 'CO',
  412. value: '2',
  413. },
  414. {
  415. label: '烟雾',
  416. value: '3',
  417. },
  418. ],
  419. },
  420. {
  421. title: 'CO浓度限值(ppm)',
  422. value: '',
  423. type: 'input',
  424. },
  425. {
  426. title: 'CO报警持续时间(s)',
  427. value: '',
  428. type: 'input',
  429. },
  430. {
  431. title: '烟雾报警持续时间(s)',
  432. value: '',
  433. type: 'input',
  434. },
  435. ]);
  436. export const dustFanSetting = ref([
  437. {
  438. title: '除尘器频率设置(Hz)',
  439. code: 'dustFrequency',
  440. type: 'input',
  441. inputNum: 0,
  442. },
  443. {
  444. title: '清灰时间(ms)',
  445. code: 'clearDust',
  446. type: 'input',
  447. inputNum: 0,
  448. },
  449. {
  450. title: '清灰周期(s)',
  451. code: 'clearCycle',
  452. type: 'input',
  453. inputNum: 0,
  454. },
  455. ]);
  456. export const dustMonitor = ref([
  457. {
  458. title: '处理风量',
  459. unit: '(m³/min)',
  460. code: '',
  461. },
  462. {
  463. title: '总粉尘除尘效率',
  464. unit: '(%)',
  465. code: '',
  466. },
  467. {
  468. title: '进口粉尘允许浓度',
  469. unit: '(g/m³)',
  470. code: '',
  471. },
  472. {
  473. title: '呼吸性粉尘除尘效率',
  474. unit: '(%)',
  475. code: '',
  476. },
  477. ]);
  478. export const compressorMonitor = [
  479. {
  480. title: '总吸风量',
  481. code: '',
  482. unit: 'm³/min',
  483. },
  484. {
  485. title: '总供风量',
  486. code: '',
  487. unit: 'm³/min',
  488. },
  489. {
  490. title: '局扇频率',
  491. code: '',
  492. unit: 'Hz',
  493. },
  494. {
  495. title: '进风风窗当前面积',
  496. code: '',
  497. unit: '㎡',
  498. },
  499. {
  500. title: '回风风窗当前面积',
  501. code: '',
  502. unit: '㎡',
  503. },
  504. ];
  505. export const compressorParam = [
  506. {
  507. title: '迎头瓦斯增长率限值',
  508. value: '',
  509. type: 'input',
  510. },
  511. {
  512. title: '迎头瓦斯浓度限值',
  513. value: '',
  514. type: 'input',
  515. },
  516. ];
  517. export const compressorDeviceParam = [
  518. {
  519. title: '局扇频率调节(Hz)',
  520. value: '',
  521. type: 'input',
  522. },
  523. ];
  524. export const coalMachineDustParam = [
  525. {
  526. title: '内喷雾压力',
  527. value: '',
  528. unit: 'Pa',
  529. },
  530. {
  531. title: '内喷雾流量',
  532. value: '',
  533. unit: 'm³/min',
  534. },
  535. {
  536. title: '外喷雾压力',
  537. value: '',
  538. unit: 'Pa',
  539. },
  540. {
  541. title: '外喷雾流量',
  542. value: '',
  543. unit: 'm³/min',
  544. },
  545. {
  546. title: '除尘效率',
  547. value: '',
  548. unit: '%',
  549. },
  550. ];
  551. export const beltMachineDustParam = [
  552. {
  553. title: '全尘',
  554. value: '',
  555. unit: 'mg/m³',
  556. },
  557. {
  558. title: '呼尘',
  559. value: '',
  560. unit: 'mg/m³',
  561. },
  562. {
  563. title: '内喷雾压力',
  564. value: '',
  565. unit: 'Pa',
  566. },
  567. {
  568. title: '内喷雾流量',
  569. value: '',
  570. unit: 'm³/min',
  571. },
  572. {
  573. title: '外喷雾压力',
  574. value: '',
  575. unit: 'Pa',
  576. },
  577. {
  578. title: '外喷雾流量',
  579. value: '',
  580. type: 'input',
  581. unit: 'm³/min',
  582. },
  583. ];
  584. export const dustConfig = reactive({
  585. header: ['编号', '位置', '触发', '故障诊断'],
  586. data: [
  587. ['001', '0m', '是', '正常'],
  588. ['002', '2m', '是', '正常'],
  589. ['003', '4m', '是', '正常'],
  590. ['004', '6m', '是', '正常'],
  591. ['005', '8m', '是', '正常'],
  592. ['006', '10m', '是', '正常'],
  593. ['007', '12m', '是', '正常'],
  594. ],
  595. index: false,
  596. headerBGC: '#3d9dd45d',
  597. oddRowBGC: '#009acd10',
  598. evenRowBGC: '#009acd05',
  599. align: ['center', 'center', 'center', 'center'],
  600. });
  601. export const gasMonitor = [
  602. {
  603. title: '甲烷浓度T0 (%)',
  604. code: 'T0',
  605. },
  606. {
  607. title: '甲烷浓度T1 (%)',
  608. code: 'T1',
  609. },
  610. {
  611. title: '甲烷浓度T2 (%)',
  612. code: 'T2',
  613. },
  614. {
  615. title: '二氧化碳浓度 (%)',
  616. code: 'CO2',
  617. },
  618. {
  619. title: '瓦斯抽采浓度 (%)',
  620. code: 'gasC',
  621. },
  622. {
  623. title: '瓦斯抽采混量 (m³/min)',
  624. code: 'gasMixMass',
  625. },
  626. {
  627. title: '瓦斯抽采纯量 (m³/min)',
  628. code: 'gasMass',
  629. },
  630. {
  631. title: '残余瓦斯含量 (m³/t)',
  632. code: 'gasMass',
  633. },
  634. {
  635. title: '累计抽采量 (m³)',
  636. code: 'gasTotalMass',
  637. },
  638. {
  639. title: '风压 (kPa)',
  640. code: 'windPressure',
  641. },
  642. ];
  643. export const gasParamData = [
  644. {
  645. title: '走向长度 (m)',
  646. code: 'lenH',
  647. },
  648. {
  649. title: '倾向长度 (m)',
  650. code: 'lenDip',
  651. },
  652. {
  653. title: '煤层厚度 (m)',
  654. code: 'thickness',
  655. },
  656. {
  657. title: '煤层倾角 (°)',
  658. code: 'angleDip',
  659. },
  660. {
  661. title: '吸附常数a (cm³/gdaf)',
  662. code: 'adsorbA',
  663. },
  664. {
  665. title: '吸附常数b (MPa-l)',
  666. code: 'adsorbB',
  667. },
  668. {
  669. title: '水分Mad (%)',
  670. code: 'waterMad',
  671. },
  672. {
  673. title: '灰分Ad (%)',
  674. code: 'dustAd',
  675. },
  676. {
  677. title: '挥发分Vdaf (%)',
  678. code: 'volatilizeAd',
  679. },
  680. {
  681. title: '孔隙率 (m³)',
  682. code: 'poreRate',
  683. },
  684. {
  685. title: '真相对密度',
  686. code: 'trueDensity',
  687. },
  688. {
  689. title: '视相对密度',
  690. code: 'apparentDensity',
  691. },
  692. ];
  693. export const currentGasMonitor = [
  694. {
  695. title: '原始瓦斯含量 (m³/t)',
  696. code: 'gasOriginalMass',
  697. },
  698. {
  699. title: '残余瓦斯含量 (m³/t)',
  700. code: 'gasRemnantMass',
  701. },
  702. {
  703. title: '残存瓦斯含量 (m³/t)',
  704. code: 'gasSurviveMass',
  705. },
  706. {
  707. title: '瓦斯压力 (MPa)',
  708. code: 'gasTotalMass',
  709. },
  710. {
  711. title: '煤层厚度 (m)',
  712. code: 'currentThickness',
  713. },
  714. {
  715. title: '煤层倾角 (°)',
  716. code: 'currentAngleDip',
  717. },
  718. {
  719. title: '地质构造',
  720. code: 'geologicStructure',
  721. },
  722. ];
  723. export const gasPumpValve = [
  724. {
  725. title: '1#智能阀门',
  726. code: 'valve1Val',
  727. inputNum: 0,
  728. },
  729. {
  730. title: '2#智能阀门',
  731. code: 'valve2Val',
  732. inputNum: 0,
  733. },
  734. {
  735. title: '3#智能阀门',
  736. code: 'valve3Val',
  737. inputNum: 0,
  738. },
  739. {
  740. title: '4#智能阀门',
  741. code: 'valve4Val',
  742. inputNum: 0,
  743. },
  744. {
  745. title: '5#智能阀门',
  746. code: 'valve5Val',
  747. inputNum: 0,
  748. },
  749. ];
  750. export const highTensionNum = 3;
  751. export const lowTensionNum = 1;
  752. export const gasExtractionUnit = [
  753. {
  754. title: '负压 (kPa)',
  755. code: 'nPressure',
  756. },
  757. {
  758. title: 'CH4 (%)',
  759. code: 'CH4 ',
  760. },
  761. {
  762. title: '流量 (m³/min)',
  763. code: 'flowRate',
  764. },
  765. {
  766. title: '纯量 (m³/min)',
  767. code: 'scalarRate',
  768. },
  769. // {
  770. // title: '累计抽采量 (m³)',
  771. // code: 'unitTotalMass',
  772. // },
  773. ];
  774. export const gasPump = [
  775. {
  776. title: '1#抽采泵',
  777. code: 'extractionPump1',
  778. value: '0',
  779. ctrCode: 'gasPump1Open',
  780. },
  781. {
  782. title: '1#抽采泵',
  783. code: 'extractionPump1',
  784. value: '0',
  785. ctrCode: 'gasPump2Open',
  786. },
  787. ];
  788. export const gasPumpCtr = reactive({
  789. gasPump1Open: '0',
  790. gasPump2Open: '0'
  791. });