2025-10-30 15:34:23 +08:00
|
|
|
|
import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'
|
2025-10-15 14:07:39 +08:00
|
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/',
|
|
|
|
|
|
name: 'Home',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/Home.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '首页',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2025-10-31 15:35:54 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/cockpit',
|
|
|
|
|
|
name: 'Cockpit',
|
2025-11-19 17:47:54 +08:00
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '驾驶舱',
|
|
|
|
|
|
screen: true,
|
|
|
|
|
|
breadcrumb: true
|
2025-11-19 17:47:54 +08:00
|
|
|
|
},
|
2025-10-31 15:35:54 +08:00
|
|
|
|
component: () => import('../views/cockpit/index.vue')
|
2025-10-31 15:40:24 +08:00
|
|
|
|
},
|
2025-10-30 15:34:23 +08:00
|
|
|
|
{
|
2025-10-31 16:27:41 +08:00
|
|
|
|
path: '/yhz',
|
|
|
|
|
|
name: 'yhz',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/ServiceStationManagePage/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '养护站管理',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2025-11-03 11:33:56 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-11-06 14:23:28 +08:00
|
|
|
|
path: '/yhzsb/:data?',
|
2025-11-03 11:33:56 +08:00
|
|
|
|
name: 'yhzsb',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/EquipmentManagement/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '养护站设备',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2025-11-04 10:13:02 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-11-06 14:23:28 +08:00
|
|
|
|
path: '/yhzwz/:data?',
|
2025-11-04 10:13:02 +08:00
|
|
|
|
name: 'yhzwz',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/MaterialManagement/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '养护站物资',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2025-11-06 14:23:28 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/yhzevent',
|
|
|
|
|
|
name: 'yhzevent',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/SnowEventManagement/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '雪情事件管理',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2025-11-06 14:23:28 +08:00
|
|
|
|
},
|
2025-11-17 17:58:19 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: '/airSkyLand',
|
|
|
|
|
|
name: 'airskyland',
|
|
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '空天地一体化',
|
|
|
|
|
|
screen: true,
|
|
|
|
|
|
breadcrumb: true
|
2025-11-17 17:58:19 +08:00
|
|
|
|
},
|
|
|
|
|
|
component: () => import('../views/airSkyLand/AirSkyLand.vue')
|
2025-11-17 18:02:49 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/3DSituationalAwareness',
|
|
|
|
|
|
name: '3DSituationalAwareness',
|
2025-11-17 18:12:35 +08:00
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '三维态势感知',
|
2025-11-25 09:35:28 +08:00
|
|
|
|
screen: true,
|
2026-04-08 16:01:04 +08:00
|
|
|
|
skipInitialCameraView: true, // 跳过MapViewport的自动初始视图,由页面自己控制相机
|
2026-04-03 16:29:10 +08:00
|
|
|
|
breadcrumb: true
|
2025-11-17 18:12:35 +08:00
|
|
|
|
},
|
2025-11-17 18:02:49 +08:00
|
|
|
|
component: () => import('../views/3DSituationalAwarenessRefactor/index.vue')
|
2026-03-27 17:47:09 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/riskWarning',
|
|
|
|
|
|
name: 'RiskWarning',
|
2026-04-02 16:57:40 +08:00
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '风险预警',
|
|
|
|
|
|
screen: true,
|
2026-04-03 16:32:57 +08:00
|
|
|
|
breadcrumb: false
|
2026-03-27 17:47:09 +08:00
|
|
|
|
},
|
|
|
|
|
|
component: () => import('../views/RiskWarning/index.vue')
|
|
|
|
|
|
},
|
2026-03-30 10:57:32 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: '/regulationsDivision',
|
|
|
|
|
|
name: 'RegulationsDivision',
|
|
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '法规分工',
|
|
|
|
|
|
screen: true,
|
|
|
|
|
|
breadcrumb: true
|
2026-03-30 10:57:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
component: () => import('../views/RegulationsDivision/RegulationsDivision.vue')
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/warningCounty',
|
|
|
|
|
|
name: 'WarningCounty',
|
|
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '区县预警',
|
|
|
|
|
|
screen: true,
|
|
|
|
|
|
breadcrumb: true
|
2026-03-30 10:57:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
component: () => import('../views/warningCounty/warningCounty.vue')
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/constructionDepartment',
|
|
|
|
|
|
name: 'ConstructionDepartment',
|
|
|
|
|
|
meta: {
|
2026-04-03 16:29:10 +08:00
|
|
|
|
title: '建设部门',
|
|
|
|
|
|
screen: true,
|
|
|
|
|
|
breadcrumb: true
|
2026-03-30 10:57:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
component: () => import('../views/ConstructionDepartment/ConstructionDepartment.vue')
|
|
|
|
|
|
},
|
2026-04-02 16:57:40 +08:00
|
|
|
|
// 响应预警
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/warningManagement',
|
|
|
|
|
|
name: 'warningManagement',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/WarningManagement/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '响应预警',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2026-04-02 16:57:40 +08:00
|
|
|
|
},
|
2026-04-03 16:29:10 +08:00
|
|
|
|
// 驻地台账 - 作为独立的页面,但在面包屑中显示为响应预警的子页面
|
2026-04-02 16:57:40 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: '/ledgerManagement',
|
|
|
|
|
|
name: 'ledgerManagement',
|
2026-04-03 16:29:10 +08:00
|
|
|
|
component: () => import('../views/LedgerManagement/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '驻地台账',
|
|
|
|
|
|
breadcrumb: true,
|
|
|
|
|
|
parentRoute: 'warningManagement' // 用于在面包屑中建立父子关系
|
|
|
|
|
|
}
|
2026-04-07 17:56:06 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 项目管理
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/projectManagement',
|
|
|
|
|
|
name: 'projectManagement',
|
|
|
|
|
|
component: () => import('../views/ProjectManagement_Rebuild/index.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '项目管理',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2026-04-08 16:01:04 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/disasterManagement',
|
|
|
|
|
|
name: 'disasterManagement',
|
|
|
|
|
|
component: () => import('../views/DisasterManagement/DisasterManagement.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '灾害巡检事件',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/disasterReport',
|
|
|
|
|
|
name: 'DisasterReport',
|
|
|
|
|
|
component: () => import('../views/DisasterManagement/DisasterReport/DisasterReport.vue'),
|
|
|
|
|
|
meta: {
|
2026-04-09 09:35:05 +08:00
|
|
|
|
title: '灾毁事件填报',
|
|
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: '/waterDisasterDetail',
|
|
|
|
|
|
name: 'WaterDisasterDetail',
|
|
|
|
|
|
component: () => import('../views/DisasterManagement/DisasterDetail/WaterDisasterDetail.vue'),
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
title: '水毁事件详情',
|
2026-04-08 16:01:04 +08:00
|
|
|
|
breadcrumb: true
|
|
|
|
|
|
}
|
2026-04-03 16:29:10 +08:00
|
|
|
|
}
|
2025-10-15 14:07:39 +08:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
2025-11-05 11:18:50 +08:00
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
2025-10-15 14:07:39 +08:00
|
|
|
|
routes
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
export default router
|