123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675 |
- import Vue from "vue";
- import Router from "vue-router";
- Vue.use(Router);
- const router = new Router({
- mode: "hash",
- base: process.env.BASE_URL,
- routes: [
- {
- path: "/",
- name: "系统列表",
- component: () => import("../views/Home.vue"),
- hidden: false,
- children: [
- {
- path: "/coal_mining",
- name: "采煤工作面",
- id: 100,
- component: () => import("../views/mining/mining.vue"),
- hidden: false,
- },
- {
- path: "/coalcutter",
- name: "采煤机页面",
- id: 1001,
- component: () => import("../views/mining/coalcutter.vue"),
- hidden: true,
- },
- {
- path: "/main_pump",
- name: "采煤机本体页面",
- id: 1002,
- component: () => import("../views/mining/main_pump.vue"),
- hidden: true,
- },
- {
- id: 1006,
- name: "miningDataDetail",
- path: "/miningDataDetail",
- hidden: true,
- component: () => import("../views/mining/systemData/dataDetail.vue"),
- },
- {
- path: "/tunnelling",
- name: "掘进工作面",
- id: 101,
- component: () => import("../views/tunnelling/tunnelling.vue"),
- hidden: false,
- children: [
- {
- path: "zutai",
- hidden: false,
- component: () => import("../views/tunnelling/zutai.vue"),
- },
- ],
- },
- {
- path: "/tunneldataQualityDevice",
- name: "设备",
- id: 1010,
- component: () =>
- import("../views/tunnelling/dataStandard/dataQualityDevice.vue"),
- hidden: true,
- },
- {
- id: 1011,
- name: "子设备",
- path: "/tunneldataQualitySubdevice",
- hidden: true,
- component: () =>
- import("../views/tunnelling/dataStandard/dataQualitySubdevice.vue"),
- },
- {
- id: 1012,
- name: "测点",
- path: "/tunneldataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import(
- "../views/tunnelling/dataStandard/dataQualityMeasurePoint.vue"
- ),
- },
- {
- id: 1013,
- name: "tunnellingDataDetail",
- path: "/tunnellingDataDetail",
- hidden: true,
- component: () =>
- import("../views/tunnelling/systemData/dataDetail.vue"),
- },
- {
- path: "/monitor",
- name: "安全监控",
- id: 102,
- component: () => import("../views/monitor/monitor.vue"),
- hidden: false,
- },
- {
- path: "/checkSubSys",
- name: "查看子系统",
- id: 1020,
- hidden: true,
- component: () => import("../views/monitor/checkSubSys.vue"),
- },
- {
- path: "/checkCheckPoint",
- name: "查看测点数据",
- id: 1021,
- hidden: true,
- component: () => import("../views/monitor/checkCheckPoint.vue"),
- },
- {
- path: "/monitorDetail",
- name: "查看测点数据",
- id: 1022,
- hidden: true,
- component: () => import("../views/monitor/detail.vue"),
- },
- {
- path: "/monitorThreshold",
- name: "查看超标数据",
- id: 1024,
- hidden: true,
- component: () => import("../views/monitor/monitorThreshold.vue"),
- },
- {
- id: 1025,
- name: "设备",
- path: "/monitordataQualityDevice",
- hidden: true,
- component: () =>
- import("../views/monitor/dataStandard/dataQualityDevice.vue"),
- },
- {
- id: 1026,
- name: "子设备",
- path: "/monitordataQualitySubdevice",
- hidden: true,
- component: () =>
- import("../views/monitor/dataStandard/dataQualitySubdevice.vue"),
- },
- {
- id: 1027,
- name: "测点",
- path: "/monitordataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import("../views/monitor/dataStandard/dataQualityMeasurePoint.vue"),
- },
- {
- id: 1028,
- name: "monitorDataDetail",
- path: "/monitorDataDetail",
- hidden: true,
- component: () => import("../views/monitor/systemData/dataDetail.vue"),
- },
- {
- path: "/transportation",
- name: "主运输系统",
- id: 103,
- component: () => import("../views/transportation/transportation.vue"),
- hidden: false,
- children: [
- {
- path: "mainpage",
- name: "主页面",
- hidden: false,
- component: () =>
- import("@/views/transportation/configImg/analysis"),
- },
- {
- path: "belt/:id/:title",
- name: "皮带",
- hidden: false,
- component: () => import("@/views/transportation/configImg/belt"),
- },
- ],
- },
- {
- path: "/coalCentral",
- name: "煤中央皮带",
- id: 1030,
- component: () =>
- import("../views/transportation/subSystem/coalCentral.vue"),
- hidden: true,
- },
- {
- path: "/belt_body",
- name: "皮带本体",
- id: 10300,
- component: () =>
- import("../views/transportation/subSystem/belt_body.vue"),
- hidden: true,
- },
- {
- path: "/detail",
- name: "详细信息",
- id: 103001,
- component: () =>
- import("../views/transportation/subSystem/beltbody/detail.vue"),
- hidden: true,
- },
- {
- path: "/threshold",
- name: "超出阈值",
- id: 103002,
- component: () =>
- import("../views/transportation/subSystem/threshold.vue"),
- hidden: true,
- },
- {
- path: "/mainAdit",
- name: "主平硐皮带",
- id: 1031,
- component: () =>
- import("../views/transportation/subSystem/mainAdit.vue"),
- hidden: true,
- },
- {
- path: "/warehouse",
- name: "上仓皮带",
- id: 1032,
- component: () =>
- import("../views/transportation/subSystem/warehouse.vue"),
- hidden: true,
- },
- {
- id: 1033,
- name: "transportationDataDetail",
- path: "/transportationDataDetail",
- hidden: true,
- component: () =>
- import("../views/transportation/systemData/dataDetail.vue"),
- },
- {
- path: "/ventilate",
- name: "通风系统",
- id: 104,
- component: () => import("../views/ventilate/ventilate.vue"),
- hidden: false,
- },
- {
- path: "/venDataDetail",
- name: "通风系统系统数据",
- id: 1041,
- component: () => import("../views/ventilate/venDataDetail.vue"),
- hidden: true,
- },
- {
- path: "/firstVentilator",
- name: "一号通风机",
- id: 1040,
- component: () => import("../views/ventilate/firstVentilator.vue"),
- hidden: true,
- },
- {
- id: 1042,
- name: "设备",
- path: "/vendataQualityDevice",
- hidden: true,
- component: () =>
- import("../views/ventilate/dataStandard/dataQualityDevice.vue"),
- },
- {
- id: 1043,
- name: "子设备",
- path: "/vendataQualitySubdevice",
- hidden: true,
- component: () =>
- import("../views/ventilate/dataStandard/dataQualitySubdevice.vue"),
- },
- {
- id: 1044,
- name: "测点",
- path: "/vendataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import(
- "../views/ventilate/dataStandard/dataQualityMeasurePoint.vue"
- ),
- },
- {
- id: 1045,
- name: "ventilateDataDetail",
- path: "/ventilateDataDetail",
- hidden: true,
- component: () =>
- import("../views/ventilate/systemData/dataDetail.vue"),
- },
- {
- path: "/compressed",
- name: "压风系统",
- id: 105,
- component: () => import("../views/compressed/compressed.vue"),
- hidden: false,
- },
- {
- id: 1050,
- name: "compressedDataDetail",
- path: "/compressedDataDetail",
- hidden: true,
- component: () =>
- import("../views/compressed/systemData/dataDetail.vue"),
- },
- {
- path: "/drain",
- name: "主排水系统",
- id: 106,
- component: () => import("../views/drain/drain.vue"),
- hidden: false,
- },
- {
- id: 1060,
- name: "设备",
- path: "/draindataQualityDevice",
- hidden: true,
- component: () =>
- import("../views/drain/dataStandard/dataQualityDevice.vue"),
- },
- {
- id: 1061,
- name: "子设备",
- path: "/draindataQualitySubdevice",
- hidden: true,
- component: () =>
- import("../views/drain/dataStandard/dataQualitySubdevice.vue"),
- },
- {
- id: 1062,
- name: "测点",
- path: "/draindataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import("../views/drain/dataStandard/dataQualityMeasurePoint.vue"),
- },
- {
- id: 1063,
- name: "drainDataDetail",
- path: "/drainDataDetail",
- hidden: true,
- component: () => import("../views/drain/systemData/dataDetail.vue"),
- },
- {
- path: "/power_supply",
- name: "供电系统",
- id: 107,
- component: () => import("../views/power_supply/power.vue"),
- hidden: false,
- },
- {
- id: 1070,
- name: "设备",
- path: "/powerdataQualityDevice",
- hidden: true,
- component: () =>
- import("../views/power_supply/dataStandard/dataQualityDevice.vue"),
- },
- {
- id: 1071,
- name: "子设备",
- path: "/powerdataQualitySubdevice",
- hidden: true,
- component: () =>
- import(
- "../views/power_supply/dataStandard/dataQualitySubdevice.vue"
- ),
- },
- {
- id: 1072,
- name: "测点",
- path: "/powerdataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import(
- "../views/power_supply/dataStandard/dataQualityMeasurePoint.vue"
- ),
- },
- {
- id: 1073,
- name: "powersupplyDataDetail",
- path: "/powersupplyDataDetail",
- hidden: true,
- component: () =>
- import("../views/power_supply/systemData/dataDetail.vue"),
- },
- {
- path: "/auxiliary_transport",
- name: "辅运输系统",
- id: 108,
- component: () =>
- import("../views/auxiliary_transport/auxiliarytrans.vue"),
- hidden: false,
- },
- {
- id: 1080,
- name: "设备",
- path: "/auxdataQualityDevice",
- hidden: true,
- component: () =>
- import(
- "../views/auxiliary_transport/dataStandard/dataQualityDevice.vue"
- ),
- },
- {
- id: 1081,
- name: "子设备",
- path: "/auxdataQualitySubdevice",
- hidden: true,
- component: () =>
- import(
- "../views/auxiliary_transport/dataStandard/dataQualitySubdevice.vue"
- ),
- },
- {
- id: 1082,
- name: "测点",
- path: "/auxdataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import(
- "../views/auxiliary_transport/dataStandard/dataQualityMeasurePoint.vue"
- ),
- },
- {
- path: "/beam_tube",
- name: "矿压监测系统",
- id: 109,
- component: () => import("../views/beam_tube/beam.vue"),
- hidden: false,
- },
- {
- id: 1090,
- name: "设备",
- path: "/beamdataQualityDevice",
- hidden: true,
- component: () =>
- import("../views/beam_tube/dataStandard/dataQualityDevice.vue"),
- },
- {
- id: 1091,
- name: "子设备",
- path: "/beamdataQualitySubdevice",
- hidden: true,
- component: () =>
- import("../views/beam_tube/dataStandard/dataQualitySubdevice.vue"),
- },
- {
- id: 1092,
- name: "测点",
- path: "/beamdataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import(
- "../views/beam_tube/dataStandard/dataQualityMeasurePoint.vue"
- ),
- },
- {
- id: 1093,
- name: "beamtubeDataDetail",
- path: "/beamtubeDataDetail",
- hidden: true,
- component: () =>
- import("../views/beam_tube/systemData/dataDetail.vue"),
- },
- {
- path: "/gas",
- name: "瓦斯抽放设备",
- id: 110,
- component: () => import("../views/gas/gas.vue"),
- hidden: false,
- children: [
- {
- path: "mainpage",
- hidden: true,
- component: () => import("@/views/gas/configImg/main.vue"),
- },
- {
- path: "dataview/:id",
- hidden: true,
- component: () => import("@/views/gas/configImg/index.vue"),
- },
- ],
- },
- {
- id: 1100,
- name: "设备",
- path: "/gasdataQualityDevice",
- hidden: true,
- component: () => import("../views/gas/dataQualityDevice.vue"),
- },
- {
- id: 1101,
- name: "子设备",
- path: "/gasdataQualitySubdevice",
- hidden: true,
- component: () => import("../views/gas/dataQualitySubdevice.vue"),
- },
- {
- id: 1102,
- name: "测点",
- path: "/gasdataQualityMeasurePoint",
- hidden: true,
- component: () => import("../views/gas/dataQualityMeasurePoint.vue"),
- },
- {
- path: "/dataDetail",
- name: "dataDetail_chart",
- id: 1104,
- component: () => import("../views/gas/dataDetail.vue"),
- hidden: true,
- },
- {
- path: "/gasCheckPoint",
- name: "瓦斯抽放测点",
- id: 1105,
- component: () => import("../views/gas/gasCheckPoint.vue"),
- hidden: true,
- },
- {
- id: 1106,
- name: "gasDataDetail",
- path: "/gasDataDetail",
- hidden: true,
- component: () => import("../views/gas/systemData/dataDetail.vue"),
- },
- {
- path: "/main",
- name: "主界面",
- id: 111,
- component: () => import("../views/newMain.vue"),
- hidden: false,
- },
- {
- id: 120,
- name: "设备",
- path: "/dataQualityDevice",
- hidden: true,
- component: () => import("@/common/dataStandard/dataQualityDevice"),
- },
- {
- id: 121,
- name: "子设备",
- path: "/dataQualitySubdevice",
- hidden: true,
- component: () => import("@/common/dataStandard/dataQualitySubdevice"),
- },
- {
- id: 122,
- name: "测点",
- path: "/dataQualityMeasurePoint",
- hidden: true,
- component: () =>
- import("@/common/dataStandard/dataQualityMeasurePoint"),
- },
- ],
- },
- {
- path: "/",
- name: "应用列表",
- component: () => import("../views/Home.vue"),
- hidden: false,
- children: [
- {
- path: "/belt_coal_quantity",
- name: "皮带煤量",
- id: 200,
- component: () =>
- import("../views/app_belt_coal_quantity/beltCoalQuantity.vue"),
- hidden: false,
- },
- {
- path: "/productProcessMonitoring",
- name: "生产流程监控",
- id: 201,
- component: () =>
- import(
- "../views/app_product_process_monitoring/productProcessMonitoring.vue"
- ),
- hidden: false,
- },
- {
- path: "/hazard_warning",
- name: "危险源预警",
- id: 202,
- component: () =>
- import("../views/app_hazard_warning/hazardWarning.vue"),
- hidden: false,
- },
- {
- path: "/beam_tube_inspection",
- name: "束管检测",
- id: 203,
- component: () =>
- import("../views/app_beam_tube_inspection/beamTubeInspection.vue"),
- hidden: false,
- },
- {
- path: "/hydrological_monitoring",
- name: "水文监测",
- id: 204,
- component: () =>
- import(
- "../views/app_hydrological_monitoring/hydrologicalMonitoring.vue"
- ),
- hidden: false,
- },
- {
- path: "/mine_pressure_monitoring",
- name: "矿压监测",
- id: 205,
- component: () =>
- import(
- "../views/app_mine_pressure_monitoring/minePressureMonitoring.vue"
- ),
- hidden: false,
- },
- {
- path: "/risk_monitoring",
- name: "风险监控",
- id: 206,
- component: () =>
- import("../views/app_risk_monitoring/riskMonitoring.vue"),
- hidden: false,
- },
- {
- path: "/personnel_positioning",
- name: "人员定位",
- id: 207,
- component: () =>
- import(
- "../views/app_personnel_positioning/personnelPositioning.vue"
- ),
- hidden: false,
- },
- {
- path: "/area_monitoring",
- name: "区域监控",
- id: 208,
- component: () =>
- import("../views/app_area_monitoring/areaMonitoring.vue"),
- hidden: false,
- },
- {
- path: "/industrial_video",
- name: "工业视频",
- id: 209,
- component: () =>
- import("../views/app_industrial_video/industrialVideo.vue"),
- hidden: false,
- },
- ],
- },
- {
- path: "/gas-mainpage",
- hidden: true,
- component: () => import("../views/gas/configImg/index.vue"),
- },
- ],
- });
- // router.beforeEach((to, from, next) => {
- // let token = Vue.cookie.get('token')
- // if (!token || !/\S/.test(token)) {
- // // clearLoginInfo()
- // // next({ name: 'login' })
- // window.location.href = "http://49.235.67.21/#/"
- // }else{
- // next()
- // }
- // })
- export default router;
|