import Layout from "@/layout/index.vue"; import type { RouteRecordRaw } from "vue-router"; export const constantRoutes: Array = [ { path: "/", name: "RoleSelect", component: () => import("@/views/index.vue"), meta: { title: '角色选择' } }, { path: "/yzy/callback", name: "YzyCallback", component: () => import("@/components/YzyCallback/index.vue") }, { path: "/warningSituation", name: "WarningSituation", component: () => import("@/views/disasterRiskMonitor/warningSituation.vue"), meta: { title: "预警态势", noCache: true } }, { path: "/galeDisaster", name: "GaleDisaster", component: () => import("@/views/disasterRiskMonitor/galeDisaster.vue"), meta: { title: "大风灾害形势感知", noCache: true } }, { path: "/forestFireWarn", name: "ForestFireWarn", component: () => import("@/views/disasterRiskMonitor/forestFireWarn.vue"), meta: { title: "森林火灾监测预警", noCache: true } }, { path: "/typhoonPath", name: "TyphoonPath", component: () => import("@/views/disasterRiskMonitor/typhoonPath.vue"), meta: { title: "台风实况与预报", noCache: true } }, { path: "/hydrologicalMonitor", name: "HydrologicalMonitor", component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/index.vue"), meta: { title: "水文监测", noCache: true } }, { path: "/reservoirMonitor", name: "ReservoirMonitor", component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/reservoirMonitor.vue"), meta: { title: "水库监测", noCache: true } }, { path: "/riverMonitor", name: "RiverMonitor", component: () => import("@/views/disasterRiskMonitor/hydrologicalMonitor/riverMonitor.vue"), meta: { title: "河道监测", noCache: true } }, { path: "/nonCoalMine", name: "NonCoalMine", component: () => import("@/views/disasterRiskMonitor/nonCoalMine.vue"), meta: { title: "非煤矿山应急专题", noCache: true } }, { path: "/cityEmergencyEvent", name: "CityEmergencyEvent", component: () => import("@/views/disasterRiskMonitor/cityEmergencyEvent.vue"), meta: { title: "城市应急事件专题", noCache: true } }, { path: "/forestFirePrevention", name: "ForestFirePrevention", component: () => import("@/views/disasterRiskMonitor/forestFirePrevention.vue"), meta: { title: "森林防火应急专题", noCache: true } }, { path: "/windAndFloodPrevention", name: "WindAndFloodPrevention", component: () => import("@/views/disasterRiskMonitor/windAndFloodPrevention.vue"), meta: { title: "防风防汛应急专题" } }, { path: "/geologicalDisaster", name: "GeologicalDisaster", component: () => import("@/views/disasterRiskMonitor/geologicalDisaster.vue"), meta: { title: "地质灾害应急专题" } }, { path: "/infoReception", name: "InfoReception", component: Layout, children: [ { path: "infoDetails", name: "InfoDetails", component: () => import("@/views/InformationReception/infoDetails.vue"), meta: { title: "智慧应急消息通知详情", noCache: true } } ] }, { path: "/onlineRollCall", name: "OnlineRollCall", component: () => import("@/views/onlineRollCall/index.vue"), meta: { title: "在线点名", noCache: true } }, { path: "/districtCountyRollCall", name: "DistrictCountyRollCall", component: () => import("@/views/onlineRollCall/districtCountyRollCall.vue"), meta: { title: "分区县点名", noCache: true } }, { path: "/spotCheckUnits", name: "SpotCheckUnits", component: () => import("@/views/onlineRollCall/spotCheckUnits.vue"), meta: { title: "选择抽查单位", noCache: true } }, { path: "/rollCallRecord", name: "RollCallRecord", component: () => import("@/views/onlineRollCall/rollCallRecord.vue"), meta: { title: "在线点名记录", noCache: true } }, { path: "/event/index", name: "EventList", component: () => import("@/views/event/index.vue"), meta: { title: "事件列表" } }, { path: "/event/detail", name: "EventDetail", component: () => import("@/views/event/detail.vue"), meta: { title: "事件详情页", noCache: true } }, { path: "/signPage", name: "signPage", component: () => import("@/views/signPage/index.vue"), meta: { title: "签到签退" } }, { path: "/signOK", name: "signOK", component: () => import("@/views/signPage/signok.vue"), meta: { title: "签到签退成功" } }, { path: "/InformationReception", name: "InformationReception", component: () => import("@/views/InformationReception/index.vue"), meta: { title: "信息发布" } }, { path: "/patorlTaskResultAdd", name: "patorlTaskResultAdd", component: () => import("@/views/worker/inspectionWork/patorlTaskResultAdd.vue"), meta: { title: "巡查上报" } } , { path: "/patorlTaskResultList", name: "patorlTaskResultList", component: () => import("@/views/worker/inspectionWork/patorlTaskResultList.vue"), meta: { title: "巡查结果" } } ]; // 领导端动态菜单 export const leaderRoute: Array = [ { path: "/leader", name: "Leader", component: Layout, children: [ { path: "index", name: "LeaderIndex", component: () => import("@/views/leader/index.vue"), meta: { title: "首页", noCache: true } }, { path: "mobile_control", name: "MobileControl", component: () => import("@/views/mobileControl/index.vue"), meta: { title: "移动指挥(平时态)", noCache: true } }, { path: "rollCallDetails", name: "RollCallDetails", component: () => import("@/views/onlineRollCall/rollCallDetails.vue"), meta: { title: "选择抽查单位", noCache: true } }, { path: "rollCallRecord2", name: "rollCallRecord2", component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"), meta: { title: "点名记录", noCache: true } }, { path: "address_book", name: "AddressBook", component: () => import("@/views/addressBook/index.vue"), meta: { title: "通讯录", noCache: true } }, { path: "my", name: "My", component: () => import("@/views/about/index.vue"), meta: { title: "我", noCache: true } } ] } ]; export const workerRoute = [ { path: "/worker", name: 'Worker', component: Layout, redirect: 'Index', children: [ { path: "index", name: "WorkerIndex", component: () => import("@/views/worker/index.vue"), meta: { title: "首页", noCache: true } }, { path: "mobile_control", name: "MobileControl", component: () => import("@/views/mobileControl/index.vue"), meta: { title: "移动指挥(平时态)", noCache: true } }, { path: "event", name: "workerEvent", component: () => import("@/views/worker/eventManagement/index.vue"), meta: { title: "事件管理", noCache: true } }, { path: "inspectionWork", name: "inspectionWork", component: () => import("@/views/worker/inspectionWork/index.vue"), meta: { title: "巡查工作", noCache: true } }, { path: "riskManagement", name: "riskManagement", component: () => import("@/views/worker/riskManagement/index.vue"), meta: { title: "风险防控" } }, { path: "duty", name: "Duty", component: () => import("@/views/duty/index.vue"), meta: { title: "值班管理", noCache: true } }, { path: "rollCallRecord2", name: "rollCallRecord2", component: () => import("@/views/onlineRollCall/rollCallRecord2.vue"), meta: { title: "点名记录", noCache: true } }, { path: "my", name: "My", component: () => import("@/views/about/index.vue"), meta: { title: "我", noCache: true } } ] } ];