2023-07-12 09:56:31 +08:00
|
|
|
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]
|
|
|
|
|
// },
|
2023-09-04 14:43:33 +08:00
|
|
|
// {
|
|
|
|
|
// path: "/",
|
|
|
|
|
// name: "login",
|
|
|
|
|
// component: () => import("@/views/login/index.vue"),
|
|
|
|
|
// meta: {
|
|
|
|
|
// title: "登录"
|
|
|
|
|
// }
|
|
|
|
|
// },
|
2023-07-28 19:43:56 +08:00
|
|
|
{
|
|
|
|
|
path: "/login",
|
|
|
|
|
name: "login",
|
|
|
|
|
component: () => import("@/views/login/index.vue"),
|
|
|
|
|
meta: {
|
|
|
|
|
title: "登录"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-12 09:56:31 +08:00
|
|
|
{
|
|
|
|
|
path: "/large",
|
|
|
|
|
name: "大屏",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/indexL.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")
|
2023-09-05 10:36:23 +08:00
|
|
|
},
|
|
|
|
|
{
|
2023-09-08 16:53:53 +08:00
|
|
|
path: "/securityManagement",
|
2023-09-05 10:36:23 +08:00
|
|
|
name: "安全管理",
|
2023-09-06 11:28:22 +08:00
|
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/securityManagement/indexSafe.vue")
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-09-08 16:53:53 +08:00
|
|
|
path: "/qualityManagement",
|
2023-09-06 11:28:22 +08:00
|
|
|
name: "质量管理",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/qualityControl/qualityManagement/indexQuality.vue")
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-09-08 16:53:53 +08:00
|
|
|
path: "/projectOverview",
|
2023-09-06 11:28:22 +08:00
|
|
|
name: "工程概况",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/comprehensiveManage/projectOverview/index.vue")
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-09-08 16:53:53 +08:00
|
|
|
path: "/smartPartyBuilding",
|
2023-09-06 11:28:22 +08:00
|
|
|
name: "智慧党建",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/comprehensiveManage/smartPartyBuilding/index.vue")
|
2023-09-05 10:36:23 +08:00
|
|
|
},
|
2023-09-06 14:05:12 +08:00
|
|
|
{
|
2023-09-08 16:53:53 +08:00
|
|
|
path: "/aIEarlyWarning",
|
2023-09-06 14:05:12 +08:00
|
|
|
name: "AI预警",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/aIEarlyWarning/index.vue")
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-09-08 16:53:53 +08:00
|
|
|
path: "/loadometerManage",
|
2023-09-06 14:05:12 +08:00
|
|
|
name: "地磅管理",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/loadometerManage/index.vue")
|
2023-09-12 10:14:05 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/standardCureRoom",
|
|
|
|
|
name: "标养室监测",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/digitalConstruction/standardCureRoom/index.vue")
|
2023-09-13 17:09:45 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/edgeProtection",
|
|
|
|
|
name: "临边防护",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/edgeProtection/index.vue")
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/toxicGasMonitor",
|
|
|
|
|
name: "有毒气体监测",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/index.vue")
|
2023-09-19 18:40:38 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/foundationPitMonitor",
|
|
|
|
|
name: "基坑监测",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/foundationPitMonitor/index.vue")
|
2023-09-20 09:24:45 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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")
|
2023-09-20 09:34:05 +08:00
|
|
|
},
|
2023-09-20 09:26:38 +08:00
|
|
|
{
|
|
|
|
|
path: "/tunnelPosition",
|
|
|
|
|
name: "隧道定位监测",
|
|
|
|
|
component: () => import("@/views/sevenLargeScreen/safetyManagement/tunnelPosition/index.vue")
|
2023-09-06 14:05:12 +08:00
|
|
|
}
|
2023-07-12 09:56:31 +08:00
|
|
|
],
|
|
|
|
|
meta: {
|
|
|
|
|
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")
|
|
|
|
|
// }
|
|
|
|
|
];
|