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: "/login", name: "Login", component: () => import("@/views/login.vue"), meta: { title: "登录", noCache: true } }, { 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: "/reservoirMonitor", name: "ReservoirMonitor", component: () => import("@/views/disasterRiskMonitor/reservoirMonitor.vue"), meta: { title: "水库监测", noCache: true } }, { path: "/riverMonitor", name: "RiverMonitor", component: () => import("@/views/disasterRiskMonitor/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: "/hazardousChemicals", name: "HazardousChemicals", component: () => import("@/views/disasterRiskMonitor/hazardousChemicals.vue"), meta: { title: "危化品事故专题" } }, { 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: "/event/add", name: "EventAdd", component: () => import("@/views/event/add.vue"), meta: { title: "事件报送", noCache: true } }, { path: "/event/emergencyNotify", name: "EventAdd", component: () => import("@/views/event/EmergencyNotify.vue"), meta: { title: "预案响应通知", noCache: true } }, { path: "/event/emergencyNotify", name: "EventAdd", component: () => import("@/views/event/EmergencyNotify.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: "巡查结果" } }, { path: "/InvestigationResultAdd", name: "InvestigationResultAdd", component: () => import("@/views/worker/riskManagement/InvestigationResultAdd.vue"), meta: { title: "上报" } }, { path: "/InvestigationResultList", name: "InvestigationResultList", component: () => import("@/views/worker/riskManagement/InvestigationResultList.vue"), meta: { title: "排查结果" } }, { path: "/rescueGatherResultAdd", name: "rescueGatherResultAdd", component: () => import("@/views/worker/rescueManagement/rescueGatherResultAdd.vue"), meta: { title: "上报" } }, { path: "/rescueGatherResultList", name: "rescueGatherResultList", component: () => import("@/views/worker/rescueManagement/rescueGatherResultList.vue"), meta: { title: "采集结果" } }, { path: "/taskFeebackDetail", name: "taskFeebackDetail", component: () => import("@/views/worker/eventManagement/taskFeebackDetail.vue"), meta: { title: "任务详情" } }, { path: "/workApproval/index", name: "workApprovalIndex", component: () => import("@/views/workApproval/index.vue"), meta: { title: "工作审批" } }, { path: "/workApproval/detail", name: "workApprovalDetail", component: () => import("@/views/workApproval/detail.vue"), meta: { title: "审批详情" } }, { path: "/workApproval/redirect", name: "workApprovalRedirect", component: () => import("@/views/workApproval/approvalRedirect.vue"), meta: { title: "转交" } }, { 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: "/event/EmergencyPersonSubmitted", name: "EmergencyPersonSubmitted", component: () => import("@/views/event/EmergencyPersonSubmitted.vue"), meta: { title: "响应人员报送", noCache: true } }, { path: "/taskProgressUpdate", name: "TaskProgressUpdate", component: () => import("@/views/mobileControl/TaskProgressUpdate.vue"), meta: { title: "任务进度更新", noCache: true } }, { path: "/workRequest", name: "WorkRequest", component: () => import("@/views/mobileControl/WorkRequest.vue"), meta: { title: "工作请示", noCache: true } }, { path: "/taskRegistration", name: "TaskRegistration", component: () => import("@/views/mobileControl/TaskRegistration.vue"), meta: { title: "任务消息详情", noCache: true } } ]; // 领导端动态菜单 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: "three_prevention_responsible_person", name: "ThreePreventionResponsiblePerson", component: () => import("@/views/threePreventionResponsiblePerson/index.vue"), meta: { title: "三防责任人", noCache: true } }, { path: "address_book", name: "AddressBook", component: () => import("@/views/addressBook/index.vue"), meta: { title: "通讯录", noCache: true } }, { path: "emergency_response", name: "EmergencyResponse", component: () => import("@/views/disasterRiskMonitor/emergencyResponse/index.vue"), meta: { title: "应急响应", noCache: true } }, { path: "satellite_cloud_chart", name: "SatelliteCloudchart", component: () => import("@/views/disasterRiskMonitor/satelliteCloudChart.vue"), meta: { title: "卫星云图", noCache: true } }, { path: "rainfall", name: "Rainfall", component: () => import("@/views/disasterRiskMonitor/rainfall.vue"), meta: { title: "强降水", noCache: true } }, { path: "radar_echo_map", name: "RadarEchoMap", component: () => import("@/views/disasterRiskMonitor/radarEchoMap.vue"), meta: { title: "雷达回波图", noCache: true } }, { path: "temperatur_and_precipitation", name: "TemperatureAndPrecipitation", component: () => import("@/views/disasterRiskMonitor/temperatureAndPrecipitation.vue"), meta: { title: "气温降水实况", noCache: true } }, { path: "weather_forecast", name: "WeatherForecast", component: () => import("@/views/disasterRiskMonitor/weatherForecast.vue"), meta: { title: "天气预报", noCache: true } }, { path: "easy_to_flood_point", name: "EasyToFloodPoint", component: () => import("@/views/disasterRiskMonitor/easyToFloodPoint.vue"), meta: { title: "易涝点视频", noCache: true } }, { path: "person_information", name: "PersonInformation", component: () => import( "@/views/threePreventionResponsiblePerson/personInformation.vue" ), meta: { title: "个人信息", noCache: true } }, { path: "editPersonInformation", name: "EditPersonInformation", component: () => import( "@/views/threePreventionResponsiblePerson/editPersonInformation.vue" ), meta: { title: "责任信息", noCache: true } }, { path: "earthquakeRapidReport", name: "EarthquakeRapidReport", component: () => import("@/views/disasterRiskMonitor/earthquakeRapidReport/index.vue"), meta: { title: "地震速报", noCache: true } }, { path: "EarthquakeRapidReportDetails", name: "EarthquakeRapidReportDetails", component: () => import("@/views/disasterRiskMonitor/earthquakeRapidReport/earthquakeRapidReportDetail.vue"), meta: { title: "地震速报", noCache: true } }, { path: "expertdatabase", name: "ExpertDatabase", component: () => import("@/views/disasterRiskMonitor/expertDatabase.vue"), meta: { title: "专家库", noCache: true } }, { path: "expertinformation", name: "Expertinformation", component: () => import("@/views/disasterRiskMonitor/expertinformation.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: "rescueManagement", name: "rescueManagement", component: () => import("@/views/worker/rescueManagement/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 } } ] } ];