beltTun.data.ts 12 KB

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