index.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. import Vue from "vue";
  2. import Router from "vue-router";
  3. Vue.use(Router);
  4. const router = new Router({
  5. mode: "hash",
  6. base: process.env.BASE_URL,
  7. routes: [
  8. {
  9. path: "/",
  10. name: "系统列表",
  11. component: () => import("../views/Home.vue"),
  12. hidden: false,
  13. children: [
  14. {
  15. path: "/coal_mining",
  16. name: "采煤工作面",
  17. id: 100,
  18. component: () => import("../views/mining/mining.vue"),
  19. hidden: false,
  20. },
  21. {
  22. path: "/coalcutter",
  23. name: "采煤机页面",
  24. id: 1001,
  25. component: () => import("../views/mining/coalcutter.vue"),
  26. hidden: true,
  27. },
  28. {
  29. path: "/main_pump",
  30. name: "采煤机本体页面",
  31. id: 1002,
  32. component: () => import("../views/mining/main_pump.vue"),
  33. hidden: true,
  34. },
  35. {
  36. id: 1006,
  37. name: "miningDataDetail",
  38. path: "/miningDataDetail",
  39. hidden: true,
  40. component: () => import("../views/mining/systemData/dataDetail.vue"),
  41. },
  42. {
  43. path: "/tunnelling",
  44. name: "掘进工作面",
  45. id: 101,
  46. component: () => import("../views/tunnelling/tunnelling.vue"),
  47. hidden: false,
  48. children: [
  49. {
  50. path: "zutai",
  51. hidden: false,
  52. component: () => import("../views/tunnelling/zutai.vue"),
  53. },
  54. ],
  55. },
  56. {
  57. path: "/tunneldataQualityDevice",
  58. name: "设备",
  59. id: 1010,
  60. component: () =>
  61. import("../views/tunnelling/dataStandard/dataQualityDevice.vue"),
  62. hidden: true,
  63. },
  64. {
  65. id: 1011,
  66. name: "子设备",
  67. path: "/tunneldataQualitySubdevice",
  68. hidden: true,
  69. component: () =>
  70. import("../views/tunnelling/dataStandard/dataQualitySubdevice.vue"),
  71. },
  72. {
  73. id: 1012,
  74. name: "测点",
  75. path: "/tunneldataQualityMeasurePoint",
  76. hidden: true,
  77. component: () =>
  78. import(
  79. "../views/tunnelling/dataStandard/dataQualityMeasurePoint.vue"
  80. ),
  81. },
  82. {
  83. id: 1013,
  84. name: "tunnellingDataDetail",
  85. path: "/tunnellingDataDetail",
  86. hidden: true,
  87. component: () =>
  88. import("../views/tunnelling/systemData/dataDetail.vue"),
  89. },
  90. {
  91. path: "/monitor",
  92. name: "安全监控",
  93. id: 102,
  94. component: () => import("../views/monitor/monitor.vue"),
  95. hidden: false,
  96. },
  97. {
  98. path: "/checkSubSys",
  99. name: "查看子系统",
  100. id: 1020,
  101. hidden: true,
  102. component: () => import("../views/monitor/checkSubSys.vue"),
  103. },
  104. {
  105. path: "/checkCheckPoint",
  106. name: "查看测点数据",
  107. id: 1021,
  108. hidden: true,
  109. component: () => import("../views/monitor/checkCheckPoint.vue"),
  110. },
  111. {
  112. path: "/monitorDetail",
  113. name: "查看测点数据",
  114. id: 1022,
  115. hidden: true,
  116. component: () => import("../views/monitor/detail.vue"),
  117. },
  118. {
  119. path: "/monitorThreshold",
  120. name: "查看超标数据",
  121. id: 1024,
  122. hidden: true,
  123. component: () => import("../views/monitor/monitorThreshold.vue"),
  124. },
  125. {
  126. id: 1025,
  127. name: "设备",
  128. path: "/monitordataQualityDevice",
  129. hidden: true,
  130. component: () =>
  131. import("../views/monitor/dataStandard/dataQualityDevice.vue"),
  132. },
  133. {
  134. id: 1026,
  135. name: "子设备",
  136. path: "/monitordataQualitySubdevice",
  137. hidden: true,
  138. component: () =>
  139. import("../views/monitor/dataStandard/dataQualitySubdevice.vue"),
  140. },
  141. {
  142. id: 1027,
  143. name: "测点",
  144. path: "/monitordataQualityMeasurePoint",
  145. hidden: true,
  146. component: () =>
  147. import("../views/monitor/dataStandard/dataQualityMeasurePoint.vue"),
  148. },
  149. {
  150. id: 1028,
  151. name: "monitorDataDetail",
  152. path: "/monitorDataDetail",
  153. hidden: true,
  154. component: () => import("../views/monitor/systemData/dataDetail.vue"),
  155. },
  156. {
  157. path: "/transportation",
  158. name: "主运输系统",
  159. id: 103,
  160. component: () => import("../views/transportation/transportation.vue"),
  161. hidden: false,
  162. children: [
  163. {
  164. path: "mainpage",
  165. name: "主页面",
  166. hidden: false,
  167. component: () =>
  168. import("@/views/transportation/configImg/analysis"),
  169. },
  170. {
  171. path: "belt/:id/:title",
  172. name: "皮带",
  173. hidden: false,
  174. component: () => import("@/views/transportation/configImg/belt"),
  175. },
  176. ],
  177. },
  178. {
  179. path: "/coalCentral",
  180. name: "煤中央皮带",
  181. id: 1030,
  182. component: () =>
  183. import("../views/transportation/subSystem/coalCentral.vue"),
  184. hidden: true,
  185. },
  186. {
  187. path: "/belt_body",
  188. name: "皮带本体",
  189. id: 10300,
  190. component: () =>
  191. import("../views/transportation/subSystem/belt_body.vue"),
  192. hidden: true,
  193. },
  194. {
  195. path: "/detail",
  196. name: "详细信息",
  197. id: 103001,
  198. component: () =>
  199. import("../views/transportation/subSystem/beltbody/detail.vue"),
  200. hidden: true,
  201. },
  202. {
  203. path: "/threshold",
  204. name: "超出阈值",
  205. id: 103002,
  206. component: () =>
  207. import("../views/transportation/subSystem/threshold.vue"),
  208. hidden: true,
  209. },
  210. {
  211. path: "/mainAdit",
  212. name: "主平硐皮带",
  213. id: 1031,
  214. component: () =>
  215. import("../views/transportation/subSystem/mainAdit.vue"),
  216. hidden: true,
  217. },
  218. {
  219. path: "/warehouse",
  220. name: "上仓皮带",
  221. id: 1032,
  222. component: () =>
  223. import("../views/transportation/subSystem/warehouse.vue"),
  224. hidden: true,
  225. },
  226. {
  227. id: 1033,
  228. name: "transportationDataDetail",
  229. path: "/transportationDataDetail",
  230. hidden: true,
  231. component: () =>
  232. import("../views/transportation/systemData/dataDetail.vue"),
  233. },
  234. {
  235. path: "/ventilate",
  236. name: "通风系统",
  237. id: 104,
  238. component: () => import("../views/ventilate/ventilate.vue"),
  239. hidden: false,
  240. },
  241. {
  242. path: "/venDataDetail",
  243. name: "通风系统系统数据",
  244. id: 1041,
  245. component: () => import("../views/ventilate/venDataDetail.vue"),
  246. hidden: true,
  247. },
  248. {
  249. path: "/firstVentilator",
  250. name: "一号通风机",
  251. id: 1040,
  252. component: () => import("../views/ventilate/firstVentilator.vue"),
  253. hidden: true,
  254. },
  255. {
  256. id: 1042,
  257. name: "设备",
  258. path: "/vendataQualityDevice",
  259. hidden: true,
  260. component: () =>
  261. import("../views/ventilate/dataStandard/dataQualityDevice.vue"),
  262. },
  263. {
  264. id: 1043,
  265. name: "子设备",
  266. path: "/vendataQualitySubdevice",
  267. hidden: true,
  268. component: () =>
  269. import("../views/ventilate/dataStandard/dataQualitySubdevice.vue"),
  270. },
  271. {
  272. id: 1044,
  273. name: "测点",
  274. path: "/vendataQualityMeasurePoint",
  275. hidden: true,
  276. component: () =>
  277. import(
  278. "../views/ventilate/dataStandard/dataQualityMeasurePoint.vue"
  279. ),
  280. },
  281. {
  282. id: 1045,
  283. name: "ventilateDataDetail",
  284. path: "/ventilateDataDetail",
  285. hidden: true,
  286. component: () =>
  287. import("../views/ventilate/systemData/dataDetail.vue"),
  288. },
  289. {
  290. path: "/compressed",
  291. name: "压风系统",
  292. id: 105,
  293. component: () => import("../views/compressed/compressed.vue"),
  294. hidden: false,
  295. },
  296. {
  297. id: 1050,
  298. name: "compressedDataDetail",
  299. path: "/compressedDataDetail",
  300. hidden: true,
  301. component: () =>
  302. import("../views/compressed/systemData/dataDetail.vue"),
  303. },
  304. {
  305. path: "/drain",
  306. name: "主排水系统",
  307. id: 106,
  308. component: () => import("../views/drain/drain.vue"),
  309. hidden: false,
  310. },
  311. {
  312. id: 1060,
  313. name: "设备",
  314. path: "/draindataQualityDevice",
  315. hidden: true,
  316. component: () =>
  317. import("../views/drain/dataStandard/dataQualityDevice.vue"),
  318. },
  319. {
  320. id: 1061,
  321. name: "子设备",
  322. path: "/draindataQualitySubdevice",
  323. hidden: true,
  324. component: () =>
  325. import("../views/drain/dataStandard/dataQualitySubdevice.vue"),
  326. },
  327. {
  328. id: 1062,
  329. name: "测点",
  330. path: "/draindataQualityMeasurePoint",
  331. hidden: true,
  332. component: () =>
  333. import("../views/drain/dataStandard/dataQualityMeasurePoint.vue"),
  334. },
  335. {
  336. id: 1063,
  337. name: "drainDataDetail",
  338. path: "/drainDataDetail",
  339. hidden: true,
  340. component: () => import("../views/drain/systemData/dataDetail.vue"),
  341. },
  342. {
  343. path: "/power_supply",
  344. name: "供电系统",
  345. id: 107,
  346. component: () => import("../views/power_supply/power.vue"),
  347. hidden: false,
  348. },
  349. {
  350. id: 1070,
  351. name: "设备",
  352. path: "/powerdataQualityDevice",
  353. hidden: true,
  354. component: () =>
  355. import("../views/power_supply/dataStandard/dataQualityDevice.vue"),
  356. },
  357. {
  358. id: 1071,
  359. name: "子设备",
  360. path: "/powerdataQualitySubdevice",
  361. hidden: true,
  362. component: () =>
  363. import(
  364. "../views/power_supply/dataStandard/dataQualitySubdevice.vue"
  365. ),
  366. },
  367. {
  368. id: 1072,
  369. name: "测点",
  370. path: "/powerdataQualityMeasurePoint",
  371. hidden: true,
  372. component: () =>
  373. import(
  374. "../views/power_supply/dataStandard/dataQualityMeasurePoint.vue"
  375. ),
  376. },
  377. {
  378. id: 1073,
  379. name: "powersupplyDataDetail",
  380. path: "/powersupplyDataDetail",
  381. hidden: true,
  382. component: () =>
  383. import("../views/power_supply/systemData/dataDetail.vue"),
  384. },
  385. {
  386. path: "/auxiliary_transport",
  387. name: "辅运输系统",
  388. id: 108,
  389. component: () =>
  390. import("../views/auxiliary_transport/auxiliarytrans.vue"),
  391. hidden: false,
  392. },
  393. {
  394. id: 1080,
  395. name: "设备",
  396. path: "/auxdataQualityDevice",
  397. hidden: true,
  398. component: () =>
  399. import(
  400. "../views/auxiliary_transport/dataStandard/dataQualityDevice.vue"
  401. ),
  402. },
  403. {
  404. id: 1081,
  405. name: "子设备",
  406. path: "/auxdataQualitySubdevice",
  407. hidden: true,
  408. component: () =>
  409. import(
  410. "../views/auxiliary_transport/dataStandard/dataQualitySubdevice.vue"
  411. ),
  412. },
  413. {
  414. id: 1082,
  415. name: "测点",
  416. path: "/auxdataQualityMeasurePoint",
  417. hidden: true,
  418. component: () =>
  419. import(
  420. "../views/auxiliary_transport/dataStandard/dataQualityMeasurePoint.vue"
  421. ),
  422. },
  423. {
  424. path: "/beam_tube",
  425. name: "矿压监测系统",
  426. id: 109,
  427. component: () => import("../views/beam_tube/beam.vue"),
  428. hidden: false,
  429. },
  430. {
  431. id: 1090,
  432. name: "设备",
  433. path: "/beamdataQualityDevice",
  434. hidden: true,
  435. component: () =>
  436. import("../views/beam_tube/dataStandard/dataQualityDevice.vue"),
  437. },
  438. {
  439. id: 1091,
  440. name: "子设备",
  441. path: "/beamdataQualitySubdevice",
  442. hidden: true,
  443. component: () =>
  444. import("../views/beam_tube/dataStandard/dataQualitySubdevice.vue"),
  445. },
  446. {
  447. id: 1092,
  448. name: "测点",
  449. path: "/beamdataQualityMeasurePoint",
  450. hidden: true,
  451. component: () =>
  452. import(
  453. "../views/beam_tube/dataStandard/dataQualityMeasurePoint.vue"
  454. ),
  455. },
  456. {
  457. id: 1093,
  458. name: "beamtubeDataDetail",
  459. path: "/beamtubeDataDetail",
  460. hidden: true,
  461. component: () =>
  462. import("../views/beam_tube/systemData/dataDetail.vue"),
  463. },
  464. {
  465. path: "/gas",
  466. name: "瓦斯抽放设备",
  467. id: 110,
  468. component: () => import("../views/gas/gas.vue"),
  469. hidden: false,
  470. children: [
  471. {
  472. path: "mainpage",
  473. hidden: true,
  474. component: () => import("@/views/gas/configImg/main.vue"),
  475. },
  476. {
  477. path: "dataview/:id",
  478. hidden: true,
  479. component: () => import("@/views/gas/configImg/index.vue"),
  480. },
  481. ],
  482. },
  483. {
  484. id: 1100,
  485. name: "设备",
  486. path: "/gasdataQualityDevice",
  487. hidden: true,
  488. component: () => import("../views/gas/dataQualityDevice.vue"),
  489. },
  490. {
  491. id: 1101,
  492. name: "子设备",
  493. path: "/gasdataQualitySubdevice",
  494. hidden: true,
  495. component: () => import("../views/gas/dataQualitySubdevice.vue"),
  496. },
  497. {
  498. id: 1102,
  499. name: "测点",
  500. path: "/gasdataQualityMeasurePoint",
  501. hidden: true,
  502. component: () => import("../views/gas/dataQualityMeasurePoint.vue"),
  503. },
  504. {
  505. path: "/dataDetail",
  506. name: "dataDetail_chart",
  507. id: 1104,
  508. component: () => import("../views/gas/dataDetail.vue"),
  509. hidden: true,
  510. },
  511. {
  512. path: "/gasCheckPoint",
  513. name: "瓦斯抽放测点",
  514. id: 1105,
  515. component: () => import("../views/gas/gasCheckPoint.vue"),
  516. hidden: true,
  517. },
  518. {
  519. id: 1106,
  520. name: "gasDataDetail",
  521. path: "/gasDataDetail",
  522. hidden: true,
  523. component: () => import("../views/gas/systemData/dataDetail.vue"),
  524. },
  525. {
  526. path: "/main",
  527. name: "主界面",
  528. id: 111,
  529. component: () => import("../views/newMain.vue"),
  530. hidden: false,
  531. },
  532. {
  533. id: 120,
  534. name: "设备",
  535. path: "/dataQualityDevice",
  536. hidden: true,
  537. component: () => import("@/common/dataStandard/dataQualityDevice"),
  538. },
  539. {
  540. id: 121,
  541. name: "子设备",
  542. path: "/dataQualitySubdevice",
  543. hidden: true,
  544. component: () => import("@/common/dataStandard/dataQualitySubdevice"),
  545. },
  546. {
  547. id: 122,
  548. name: "测点",
  549. path: "/dataQualityMeasurePoint",
  550. hidden: true,
  551. component: () =>
  552. import("@/common/dataStandard/dataQualityMeasurePoint"),
  553. },
  554. ],
  555. },
  556. {
  557. path: "/",
  558. name: "应用列表",
  559. component: () => import("../views/Home.vue"),
  560. hidden: false,
  561. children: [
  562. {
  563. path: "/belt_coal_quantity",
  564. name: "皮带煤量",
  565. id: 200,
  566. component: () =>
  567. import("../views/app_belt_coal_quantity/beltCoalQuantity.vue"),
  568. hidden: false,
  569. },
  570. {
  571. path: "/productProcessMonitoring",
  572. name: "生产流程监控",
  573. id: 201,
  574. component: () =>
  575. import(
  576. "../views/app_product_process_monitoring/productProcessMonitoring.vue"
  577. ),
  578. hidden: false,
  579. },
  580. {
  581. path: "/hazard_warning",
  582. name: "危险源预警",
  583. id: 202,
  584. component: () =>
  585. import("../views/app_hazard_warning/hazardWarning.vue"),
  586. hidden: false,
  587. },
  588. {
  589. path: "/beam_tube_inspection",
  590. name: "束管检测",
  591. id: 203,
  592. component: () =>
  593. import("../views/app_beam_tube_inspection/beamTubeInspection.vue"),
  594. hidden: false,
  595. },
  596. {
  597. path: "/hydrological_monitoring",
  598. name: "水文监测",
  599. id: 204,
  600. component: () =>
  601. import(
  602. "../views/app_hydrological_monitoring/hydrologicalMonitoring.vue"
  603. ),
  604. hidden: false,
  605. },
  606. {
  607. path: "/mine_pressure_monitoring",
  608. name: "矿压监测",
  609. id: 205,
  610. component: () =>
  611. import(
  612. "../views/app_mine_pressure_monitoring/minePressureMonitoring.vue"
  613. ),
  614. hidden: false,
  615. },
  616. {
  617. path: "/risk_monitoring",
  618. name: "风险监控",
  619. id: 206,
  620. component: () =>
  621. import("../views/app_risk_monitoring/riskMonitoring.vue"),
  622. hidden: false,
  623. },
  624. {
  625. path: "/personnel_positioning",
  626. name: "人员定位",
  627. id: 207,
  628. component: () =>
  629. import(
  630. "../views/app_personnel_positioning/personnelPositioning.vue"
  631. ),
  632. hidden: false,
  633. },
  634. {
  635. path: "/area_monitoring",
  636. name: "区域监控",
  637. id: 208,
  638. component: () =>
  639. import("../views/app_area_monitoring/areaMonitoring.vue"),
  640. hidden: false,
  641. },
  642. {
  643. path: "/industrial_video",
  644. name: "工业视频",
  645. id: 209,
  646. component: () =>
  647. import("../views/app_industrial_video/industrialVideo.vue"),
  648. hidden: false,
  649. },
  650. ],
  651. },
  652. {
  653. path: "/gas-mainpage",
  654. hidden: true,
  655. component: () => import("../views/gas/configImg/index.vue"),
  656. },
  657. ],
  658. });
  659. // router.beforeEach((to, from, next) => {
  660. // let token = Vue.cookie.get('token')
  661. // if (!token || !/\S/.test(token)) {
  662. // // clearLoginInfo()
  663. // // next({ name: 'login' })
  664. // window.location.href = "http://49.235.67.21/#/"
  665. // }else{
  666. // next()
  667. // }
  668. // })
  669. export default router;