362 lines
11 KiB
TypeScript
362 lines
11 KiB
TypeScript
import { RouteRecordRaw } from "vue-router";
|
|
import { LOGIN_URL } from "@/config/config";
|
|
import { HOME_URL } from "@/enums/Home/index";
|
|
// import { GlobalStore } from "@/stores";
|
|
|
|
/**
|
|
*
|
|
* staticRouter(静态路由)
|
|
*/
|
|
export const staticRouter: RouteRecordRaw[] = [
|
|
{
|
|
path: "/",
|
|
// redirect: HOME_URL[0]
|
|
redirect: LOGIN_URL
|
|
},
|
|
{
|
|
path: "/login",
|
|
name: "login",
|
|
component: () => import("@/views/login/index.vue"),
|
|
meta: {
|
|
title: "登录"
|
|
}
|
|
},
|
|
{
|
|
path: "/large",
|
|
name: "大屏",
|
|
// component: () => import("@/views/sevenLargeScreen/indexL.vue"), //七参数标准版
|
|
component: () => import("@/views/commandScreen/indexCommand.vue"), //指挥部大屏
|
|
component: () => import("@/views/agjtLiveScreen/indexLive.vue"), //鞍钢现场大屏
|
|
// component: () => import("@/views/overviewScreen/indexCommand.vue"), //总览大屏
|
|
// component: () => import("@/views/agjtProjectKanban/indexL.vue"), //鞍钢集团项目看板大屏
|
|
// component: () => import("@/views/sevenLargeScreen/indexL_syhy.vue"), // 只有一级路由(盘锦、嘉兴、鄱湖美湾医疗项目需切换至该首页)
|
|
children: [
|
|
{
|
|
path: "/headNoise",
|
|
name: "扬尘噪声",
|
|
component: () => import("@/views/sevenLargeScreen/headNoise/index.vue")
|
|
},
|
|
{
|
|
path: "/laborManagement",
|
|
name: "劳务管理",
|
|
component: () => import("@/views/sevenLargeScreen/laborManagement/index.vue")
|
|
},
|
|
{
|
|
path: "/videoManagement",
|
|
name: "视频管理",
|
|
component: () => import("@/views/sevenLargeScreen/videoManagement/index.vue")
|
|
},
|
|
{
|
|
path: "/distributionMonitoring",
|
|
name: "配电箱监测",
|
|
component: () => import("@/views/sevenLargeScreen/distributionMonitoring/index.vue")
|
|
},
|
|
{
|
|
path: "/vehicleManagement",
|
|
name: "车辆管理",
|
|
component: () => import("@/views/sevenLargeScreen/vehicleManagement/index.vue")
|
|
},
|
|
{
|
|
path: "/towerCraneMonitoring",
|
|
name: "塔吊监测",
|
|
component: () => import("@/views/sevenLargeScreen/towerCraneMonitoring/index.vue")
|
|
},
|
|
{
|
|
path: "/elevatorMonitoring",
|
|
name: "升降机监测",
|
|
component: () => import("@/views/sevenLargeScreen/elevatorMonitoring/index.vue")
|
|
},
|
|
{
|
|
path: "/bImModel",
|
|
name: "BIM模型",
|
|
component: () => import("@/views/sevenLargeScreen/bImModel/index.vue")
|
|
},
|
|
{
|
|
path: "/securityManagement",
|
|
name: "安全管理",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/securityManagement/indexSafe.vue")
|
|
},
|
|
{
|
|
path: "/qualityManagement",
|
|
name: "质量管理",
|
|
component: () => import("@/views/sevenLargeScreen/qualityControl/qualityManagement/indexQuality.vue")
|
|
},
|
|
{
|
|
path: "/projectOverview",
|
|
name: "工程概况",
|
|
component: () => import("@/views/sevenLargeScreen/comprehensiveManage/projectOverview/index.vue")
|
|
},
|
|
{
|
|
path: "/smartPartyBuilding",
|
|
name: "智慧党建",
|
|
component: () => import("@/views/sevenLargeScreen/comprehensiveManage/smartPartyBuilding/index.vue")
|
|
},
|
|
{
|
|
path: "/aIEarlyWarning",
|
|
name: "AI预警",
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/aIEarlyWarning/index.vue")
|
|
},
|
|
{
|
|
path: "/loadometerManage",
|
|
name: "地磅管理",
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/loadometerManage/index.vue")
|
|
},
|
|
{
|
|
path: "/standardCureRoom",
|
|
name: "标养室监测",
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/standardCureRoom/index.vue")
|
|
},
|
|
{
|
|
path: "/carPosition",
|
|
name: "车辆定位",
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/carPosition/index.vue")
|
|
},
|
|
{
|
|
path: "/equipmentPosition",
|
|
// path: "/carPosition",
|
|
name: "机械设备定位",
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/equipmentPosition/index.vue")
|
|
},
|
|
{
|
|
path: "/smartSafeHat",
|
|
// path: "/carPosition",
|
|
name: "智能安全帽",
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/smartSafeHat/index.vue")
|
|
},
|
|
{
|
|
path: "/edgeProtection",
|
|
name: "临边防护网",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/edgeProtection/index.vue")
|
|
},
|
|
{
|
|
path: "/wallScaffold",
|
|
name: "外墙脚手架监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/wallScaffold/wallScaffold.vue")
|
|
},
|
|
{
|
|
path: "/wallScaffold2",
|
|
name: "外墙脚手架监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/wallScaffold2/index.vue")
|
|
},
|
|
{
|
|
path: "/edgeProtection2",
|
|
name: "临边防护",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/edgeProtection/index_wdzs.vue")
|
|
},
|
|
{
|
|
path: "/newEdgeProtection",
|
|
name: "临边防护",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/newEdgeProtection/index.vue")
|
|
},
|
|
{
|
|
path: "/toxicGasMonitor",
|
|
name: "有毒气体监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/index.vue")
|
|
},
|
|
{
|
|
path: "/foundationPitMonitor",
|
|
name: "基坑监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/foundationPitMonitor/index.vue")
|
|
},
|
|
{
|
|
path: "/tunnelPosition",
|
|
name: "隧道定位监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/tunnelPosition/index.vue")
|
|
},
|
|
{
|
|
path: "/highFormwork",
|
|
name: "高支模监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/highFormwork/index.vue")
|
|
},
|
|
{
|
|
path: "/highSlope",
|
|
name: "高边坡监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/highSlope/index.vue")
|
|
},
|
|
{
|
|
path: "/smokeSensor",
|
|
name: "烟感监测",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/smokeSensor/index.vue")
|
|
},
|
|
{
|
|
path: "/safeEducation",
|
|
name: "安全教育",
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/safeEducation/index.vue")
|
|
},
|
|
{
|
|
path: "/electricityMonitor",
|
|
name: "用电监测",
|
|
component: () => import("@/views/sevenLargeScreen/greenConstruct/electricityMonitor/index.vue")
|
|
},
|
|
{
|
|
path: "/waterMonitor",
|
|
name: "用水监测",
|
|
component: () => import("@/views/sevenLargeScreen/greenConstruct/waterMonitor/index.vue")
|
|
},
|
|
{
|
|
path: "/concreteMixingPlant",
|
|
name: "混凝土拌合站",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/concreteMixingPlant/index.vue")
|
|
},
|
|
{
|
|
path: "/concreteMonitor",
|
|
name: "混凝土测温",
|
|
component: () => import("@/views/sevenLargeScreen/qualityControl/concreteMonitor/index.vue")
|
|
},
|
|
{
|
|
path: "/unloadPlatform",
|
|
name: "卸料平台",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/unloadPlatform/index.vue")
|
|
},
|
|
{
|
|
path: "/sewageMonitor",
|
|
name: "污水监测",
|
|
component: () => import("@/views/sevenLargeScreen/greenConstruct/sewageMonitor/index.vue")
|
|
},
|
|
{
|
|
path: "/rainfallMonitoring",
|
|
name: "雨量监测",
|
|
component: () => import("@/views/sevenLargeScreen/rainfallMonitoring/index.vue")
|
|
},
|
|
{
|
|
path: "/gantryCrane",
|
|
name: "龙门吊监测",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/gantryCrane/index.vue")
|
|
},
|
|
{
|
|
path: "/erectCrane",
|
|
name: "架桥机",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/erectCrane/index.vue")
|
|
},
|
|
{
|
|
path: "/hangBasket",
|
|
name: "挂篮监测",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/hangBasket/index.vue")
|
|
},
|
|
{
|
|
path: "/pressureTestMachine",
|
|
name: "压力试验机",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/pressureTestMachine/index.vue")
|
|
},
|
|
{
|
|
path: "/compressionIntegrate",
|
|
name: "抗压一体机",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/compressionIntegrate/index.vue")
|
|
},
|
|
{
|
|
path: "/universalTestMachine",
|
|
name: "万能试验机",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/universalTestMachine/index.vue")
|
|
},
|
|
{
|
|
path: "/asphaltMixer",
|
|
name: "沥青拌合站",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/asphaltMixer/index.vue")
|
|
},
|
|
{
|
|
path: "/waterStabilizedMixer",
|
|
name: "水稳拌合站",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/waterStabilizedMixer/index.vue")
|
|
},
|
|
{
|
|
path: "/intelligentTension",
|
|
name: "智能张拉",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/intelligentTension/index.vue")
|
|
},
|
|
{
|
|
path: "/intelligentGrout",
|
|
name: "智能压浆",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/intelligentGrout/index.vue")
|
|
},
|
|
{
|
|
path: "/schedulePlan",
|
|
name: "进度管理",
|
|
component: () => import("@/views/sevenLargeScreen/qualityControl/schedulePlan/index.vue")
|
|
},
|
|
{
|
|
path: "/schedulePlanCq",
|
|
name: "进度管理_重庆南岸",
|
|
component: () => import("@/views/sevenLargeScreen/qualityControl/schedulePlanCq/index.vue")
|
|
},
|
|
{
|
|
path: "/roadPaving",
|
|
name: "路面摊铺",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/roadPaving/indexPaving.vue")
|
|
},
|
|
{
|
|
path: "/roadCompaction",
|
|
name: "路面压实",
|
|
component: () => import("@/views/sevenLargeScreen/largeMachinery/roadCompaction/indexPaving.vue")
|
|
},
|
|
{
|
|
path: "/commandScreen",
|
|
name: "指挥部大屏",
|
|
component: () => import("@/views/commandScreen/commandCenter/index.vue")
|
|
},
|
|
{
|
|
path: "/agjtLiveScreen",
|
|
name: "鞍钢现场大屏",
|
|
component: () => import("@/views/agjtLiveScreen/liveScreen/index.vue")
|
|
},
|
|
{
|
|
path: "/agjtProjectKanban",
|
|
name: "鞍钢项目看板大屏",
|
|
component: () => import("@/views/agjtProjectKanban/comprehensiveManage/projectOverview/index.vue")
|
|
},
|
|
{
|
|
path: "/overviewScreen",
|
|
name: "大屏总览",
|
|
component: () => import("@/views/overviewScreen/commandCenter/index.vue")
|
|
}
|
|
],
|
|
meta: {
|
|
// title: "数字化项目监管平台"
|
|
title: "智慧工厂安全生产监管平台" //鞍钢项目
|
|
}
|
|
}
|
|
|
|
// {
|
|
// path: "/layout",
|
|
// name: "layout",
|
|
// component: () => import("@/layouts/index.vue"),
|
|
// // component: () => import("@/layouts/indexAsync.vue"),
|
|
// redirect: HOME_URL[0],
|
|
// children: []
|
|
// }
|
|
];
|
|
|
|
/**
|
|
* errorRouter(错误页面路由)
|
|
*/
|
|
export const errorRouter = [
|
|
// {
|
|
// path: "/403",
|
|
// name: "403",
|
|
// component: () => import("@/components/ErrorMessage/403.vue"),
|
|
// meta: {
|
|
// title: "403页面"
|
|
// }
|
|
// },
|
|
// {
|
|
// path: "/404",
|
|
// name: "404",
|
|
// component: () => import("@/components/ErrorMessage/404.vue"),
|
|
// meta: {
|
|
// title: "404页面"
|
|
// }
|
|
// },
|
|
// {
|
|
// path: "/500",
|
|
// name: "500",
|
|
// component: () => import("@/components/ErrorMessage/500.vue"),
|
|
// meta: {
|
|
// title: "500页面"
|
|
// }
|
|
// },
|
|
// 解决刷新页面,路由警告
|
|
// {
|
|
// path: "/:pathMatch(.*)*",
|
|
// component: () => import("@/components/ErrorMessage/404.vue")
|
|
// }
|
|
];
|