import { createRouter, createWebHashHistory } from "vue-router"; import layout from "@/layout/index"; //layout直接引用 其他使用路由懒加载 import store from "@/store"; // import Home from '../views/Home.vue' /** * 关于路由配置描述 * 1.meta && meta.title && meta.icon 则在菜单栏显示 * 2.如果存在children , 则以el-sub-menu子菜单显示 * 否则不在menu菜单显示 * 如果只展示单级别菜单 需要像developer这样配置 */ /** * 私有路由表 */ export const privateRoutes = []; /** * 公开路由表 */ export const publicRoutes = [ { path: "/publicPage", name: "publicPage", component: () => import("@/views/login/publicPage") }, { path: "/oatuh_login", name: "oatuh_login", component: () => import("@/views/login/oatuh_login") }, { path: "/sso_redirect", name: "sso_redirect", component: () => import("@/views/login/sso_redirect") }, { path: "/login", name: "login", component: () => import("@/views/login/index") }, { path: "/", name: "homeMy", component: () => import("@/views/homeMy/index") //街面巡防 }, // { // path: "/dataBI", // name: "dataBI", // component: () => import("@/views/dataBI/index") //警保 // }, { path: "/editPassword", // 注意:带有路径"/"的记录中的组件"默认"是一个不返回 Promise 的函数 component: layout, redirect: "/user/department-ist", children: [ { path: "/systemConfig", name: "systemConfigModel", meta: { title: "系统管理", icon: "personnel" }, children: [ { path: "/user/department-ist", name: "departmentList", component: () => import( "@/views/backOfficeSystem/systemConfig/department-list/index" ), meta: { title: "部门管理", icon: "personnel-manage" } }, { path: "/user/userList", name: "userList", component: () => import("@/views/backOfficeSystem/systemConfig/user-list/index"), meta: { title: "用户管理", icon: "role" } }, { path: "/user/role", name: "userRoleIndex", component: () => import("@/views/backOfficeSystem/systemConfig/role-list/index"), meta: { title: "角色列表", icon: "role" } }, { path: "/user/menuList", name: "menuList", component: () => import("@/views/backOfficeSystem/systemConfig/menu-list/index"), meta: { title: "菜单管理", icon: "personnel-manage" } }, { path: "/user/publicSecurity", name: "publicSecurity", component: () => import( "@/views/backOfficeSystem/systemConfig/publicSecurity/index" ), meta: { title: "公安机关要素", icon: "personnel-manage" } }, { path: "/dict/detail", name: "dictDetail", component: () => import("@/views/backOfficeSystem/systemConfig/dict/detail"), meta: { title: "字典数据" } }, { path: "/dict/index", name: "dictIndex", component: () => import("@/views/backOfficeSystem/systemConfig/dict/index"), meta: { title: "字典列表", icon: "article-ranking" } }, { path: "/user/job", name: "userJob", component: () => import("@/views/backOfficeSystem/systemConfig/job-list/index"), meta: { title: "岗位列表", icon: "personnel-manage" } }, { path: "/user/deptAllocationUser/:id", name: "deptAllocationUser", component: () => import( "@/views/backOfficeSystem/systemConfig/department-list/deptAllocationUser" ), meta: { title: "管理用户" } }, { path: "/user/allocationUser/:id", name: "allocationUser", component: () => import( "@/views/backOfficeSystem/systemConfig/role-list/allocationUser" ), meta: { title: "分配用户" } }, { path: "/sys/systemFxMx", name: "systemFxMx", component: () => import("@/views/backOfficeSystem/systemConfig/systemFxMx/index"), meta: { title: "系统分析模型", icon: "personnel-manage" } }, // { // path: "/sys/ysjq", // name: "ysjq", // component: () => import("@/views/backOfficeSystem/systemConfig/ysjq/index"), // meta: { // title: "演示警情", // icon: "personnel-manage" // } // }, { path: "/user/systemConfig", name: "systemConfig", component: () => import( "@/views/backOfficeSystem/systemConfig/system-config-list/index" ), meta: { title: "系统配置", icon: "personnel-manage" } }, { path: "/user/systemVersion", name: "systemVersion", component: () => import( "@/views/backOfficeSystem/systemConfig/system-version-list/index" ), meta: { title: "系统版本管理", icon: "personnel-manage" } }, { path: "/user/useQk", name: "useQk", component: () => import("@/views/backOfficeSystem/systemConfig/useQk/index"), meta: { title: "系统使用情况", icon: "personnel-manage" } }, { path: "/user/zdqyFz", name: "zdqyFz", component: () => import("@/views/backOfficeSystem/systemConfig/zdqyFz/index"), meta: { title: "重点区域分值", icon: "personnel-manage" } }, { path: "/user/log", name: "/user/log", meta: { title: "日志", icon: "article" }, children: [ { path: "/user/operateLog", name: "/user/operateLog", component: () => import( "@/views/backOfficeSystem/systemConfig/log-manage/operateLog/index" ), meta: { title: "操作日志", icon: "article-ranking" } }, { path: "/user/loginLog", name: "/user/loginLog", component: () => import( "@/views/backOfficeSystem/systemConfig/log-manage/loginLog/index" ), meta: { title: "登录日志", icon: "article-ranking" } } ] }, { path: "/developer", name: "developer", component: () => import("@/views/developer/index"), meta: { title: "开发者中心", icon: "article-ranking" } }, { //如果三级 需要把路由注册出来 path: "/user/operateLog", name: "/user/operateLog", component: () => import( "@/views/backOfficeSystem/systemConfig/log-manage/operateLog/index" ) }, { path: "/user/loginLog", name: "/user/loginLog", component: () => import( "@/views/backOfficeSystem/systemConfig/log-manage/loginLog/index" ) }, { path: "/tool/gen-edit/index/:tableId", name: "gen-edit", component: () => import("@/views/backOfficeSystem/systemConfig/gen/editTable"), meta: { title: "代码生成编辑" } } ] }, { path: "/unitInformation", name: "unitInformation", component: () => import("@/views/securityManagement/unitInformation/index"), meta: { title: "单位信息", icon: "personnel" }, }, { path: "/practitioner", name: "practitioner", component: () => import("@/views/securityManagement/practitioner/index"), meta: { title: "从业人员管理", icon: "personnel" }, }, { path: "/trainingManagement/applicantPersonnel", name: "applicantPersonnel", component: () => import("@/views/securityManagement/applicantPersonnel/index"), meta: { title: "申请人员", icon: "personnel" } }, { path: "/trainingManagement", name: "/trainingManagement", meta: { title: "培训管理", icon: "personnel" }, children: [ { path: "/trainingManagement/trainer", name: "trainer", component: () => import("@/views/securityManagement/trainingManagement/trainer/index"), meta: { title: "培训人员", icon: "personnel" }, }, { path: "/trainingManagement/personnelTraining", name: "personnelTraining", component: () => import("@/views/securityManagement/trainingManagement/personnelTraining/index"), meta: { title: "保安待培训人员管理", icon: "personnel" }, }, { path: "/trainingManagement/trainingProject", name: "trainingProject", component: () => import("@/views/securityManagement/trainingManagement/trainingProject/index"), meta: { title: "保安培训项目管理", icon: "personnel" } }, ] }, { path: "/examManagement", name: "examManagement", component: () => import("@/views/securityManagement/examManagement/index"), meta: { title: "保安考试管理", icon: "personnel" }, }, { path: "/training", name: "training", meta: { title: "培训中心", icon: "personnel" }, children: [ { path: "/training/securityTrainingVideo", name: "securityTrainingVideo", component: () => import("@/views/Training/SecurityTrainingVideo/index"), meta: { title: "保安培训视频", icon: "personnel" } }, { path: "/training/securityQuestionBank", name: "securityQuestionBank", component: () => import("@/views/Training/SecurityQuestionBank/index"), meta: { title: "保安题库", icon: "personnel" } }, { path: "/training/securityTrainingSyllabus", name: "securityTrainingSyllabus", component: () => import("@/views/Training/SecurityTrainingSyllabus/index"), meta: { title: "保安培训教学大纲", icon: "personnel" } }, { path: "/training/annualInspectionTraining", name: "annualInspectionTraining", component: () => import("@/views/Training/AnnualInspectionTraining/index"), meta: { title: "年检培训", icon: "personnel" } }, { path: "/training/annualInspectionApplicants", name: "annualInspectionApplicants", component: () => import("@/views/Training/AnnualInspectionApplicants/index"), meta: { title: "年检申请人员", icon: "personnel" } }, { path: "/training/annualInspection", name: "annualInspection", component: () => import("@/views/Training/AnnualInspection/index"), meta: { title: "年检", icon: "personnel" } }, ] } // { // path: "/basicsmanage", // name: "/basicsmanage", // meta: { // title: "基础管理", // icon: "personnel" // }, // children: [ // { // path: "/watchman-ll", // name: "watchman-ll", // meta: { // title: "巡防力量管理", // icon: "article-ranking" // }, // children: [ // { // path: "/patrol-police", // name: "patrol-police", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/watchman-ll/patrol-police/index" // ), // meta: { // title: "巡防民警", // icon: "article-ranking" // } // }, // { // path: "/auxiliary-police", // name: "auxiliary-police", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/watchman-ll/auxiliary-police/index" // ), // meta: { // title: "巡防辅警", // icon: "article-ranking" // } // }, // { // path: "/baManagement", // name: "baManagement", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/watchman-ll/baManagement/index" // ), // meta: { // title: "保安人员", // icon: "article-ranking" // } // }, // { // path: "/prevention", // name: "prevention", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/watchman-ll/prevention/index" // ), // meta: { // title: "群防群治人员", // icon: "article-ranking" // } // } // // { // // path: "/professional-skills", // // name: "professional-skills", // // component: () => // // import( // // "@/views/backOfficeSystem/basicsmanage/watchman-ll/professional-skills/index" // // ), // // meta: { // // title: "专业技能", // // icon: "article-ranking" // // } // // }, // // { // // path: "/experience", // // name: "experience", // // component: () => // // import("@/views/backOfficeSystem/basicsmanage/watchman-ll/experience/index"), // // meta: { // // title: "经验管理", // // icon: "article-ranking" // // } // // }, // ] // }, // { // path: "/watchman-zb", // name: "/watchman-zb", // meta: { // title: "巡防装备管理", // icon: "article-ranking" // }, // children: [ // { // path: "/intelligence", // name: "intelligence-zb", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/watchman-zb/intelligence/index" // ), // meta: { // title: "智能装备管理", // icon: "article-ranking" // } // }, // // { // // path: "/police-equipment", // // name: "police-equipment", // // component: () => // // import("@/views/backOfficeSystem/basicsmanage/watchman-zb/police-equipment/index"), // // meta: { // // title: "常用装备管理", // // icon: "article-ranking" // // } // // }, // { // path: "/watchman-car", // name: "watchman-car", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/watchman-zb/watchman-car/index" // ), // meta: { // title: "巡防车辆管理", // icon: "article-ranking" // } // } // // { // // path: "/watchman-zbgl", // // name: "watchman-zbgl", // // component: () => // // import("@/views/backOfficeSystem/basicsmanage/watchman-zb/watchman-zbgl/index"), // // meta: { // // title: "巡防装备分类管理", // // icon: "article-ranking" // // } // // }, // // { // // path: "/watchman-zbtx-dell", // // name: "watchman-zbtx-dell", // // component: () => // // import("@/views/backOfficeSystem/basicsmanage/watchman-zb/watchman-zbtx/index"), // // meta: { // // title: "巡防装备到期提醒", // // icon: "article-ranking" // // } // // }, // // { // // path: "/day-streetzb", // // name: "day-streetzb", // // component: () => // // import("@/views/backOfficeSystem/basicsmanage/watchman-zb/day-streetzb/index"), // // meta: { // // title: "每日街面装备", // // icon: "article-ranking" // // } // // }, // ] // }, // { // path: "/service-jz", // component: () => // import("@/views/backOfficeSystem/basicsmanage/service-jz/index"), // name: "service-jz", // meta: { // title: "勤务警组管理", // icon: "article-ranking" // } // }, // { // path: "/police-station", // component: () => // import( // "@/views/backOfficeSystem/basicsmanage/police-station/index" // ), // name: "police-station", // meta: { // title: "警务站管理", // icon: "article-ranking" // } // }, // { // path: "/patrol-route", // // component: () => import("@/views/backOfficeSystem/AlarmLinkage/PatrolLine/index"), // name: "patrol-route", // meta: { // title: "巡逻路线管理", // icon: "article-ranking" // }, // children: [ // // { // // path: "/RequiredPatrolLine", // // name: "RequiredPatrolLine", // // component: () => import("@/views/backOfficeSystem/AlarmLinkage/PatrolLine/index"), // // meta: { // // title: "巡逻路线管理", // // icon: "article" // // } // // }, // // { // // path: "/mandatory-patrol", // // name: "mandatory-patrol", // // component: () => // // import( // // "@/views/backOfficeSystem/basicsmanage/patrol-route/mandatory-patrol/index" // // ), // // meta: { // // title: "巡逻点位管理", // // icon: "article-ranking" // // } // // }, // // { // // path: "/RequiredPatrolLine", // // name: "RequiredPatrolLine", // // component: () => import("@/views/backOfficeSystem/basicsmanage/patrol-route/patrol-line/index"), // // meta: { // // title: "巡逻路线管理", // // icon: "article" // // } // // }, // { // path: "/RequiredPatrolLine", // name: "RequiredPatrolLine", // component: () => // import( // "@/views/backOfficeSystem/AlarmLinkage/PatrolLine/index" // ), // meta: { // title: "巡逻路线管理", // icon: "article" // } // }, // { // path: "/taskManagement", // name: "taskManagement", // component: () => // import( // "@/views/backOfficeSystem/AlarmLinkage/taskManagement/index" // ), // meta: { // title: "任务中心", // icon: "article" // } // } // ] // } // // { // // path: "/expertBase", // // component: () => import("@/views/backOfficeSystem/basicsmanage/expertBase/index"), // // name: "expertBase", // // meta: { // // title: "专家库管理", // // icon: "article-ranking" // // } // // }, // // { // // path: "/watchmanFiling", // // component: () => import("@/views/backOfficeSystem/basicsmanage/watchmanFiling/index"), // // name: "watchmanFiling", // // meta: { // // title: "巡防报备", // // icon: "article-ranking" // // } // // }, // ] // }, // { // path: "/warningCenter", // name: "warningCenter", // meta: { // title: "预警中心", // icon: "personnel" // }, // children: [ // { // path: "/warningCenter/warningInfo", // component: () => // import( // "@/views/backOfficeSystem/warningCenter/warningInfo/index" // ), // name: "warningInfo", // meta: { // title: "预警信息", // icon: "article-ranking" // } // }, // // { // // path: "/warningCenter/warningInstruct", // // component: () => import("@/views/backOfficeSystem/warningCenter/warningInstruct/index"), // // name: "warningInstruct", // // meta: { // // title: "指令信息", // // icon: "article-ranking" // // } // // }, // { // path: "/warningCenter/jqInfo", // component: () => // import("@/views/backOfficeSystem/warningCenter/jqInfo/index"), // name: "jqInfo", // meta: { // title: "警情信息", // icon: "article-ranking" // } // }, // { // path: "/warningCenter/alarmTrend", // component: () => // import("@/views/backOfficeSystem/warningCenter/alarmTrend/index"), // name: "alarmTrend", // meta: { // title: "警情趋势", // icon: "article-ranking" // } // }, // { // path: "/warningCenter/earlyWarningAnalysisModel", // component: () => // import( // "@/views/backOfficeSystem/warningCenter/earlyWarningAnalysisModel/index" // ), // name: "earlyWarningAnalysisModel", // meta: { // title: "预警分析模型", // icon: "article-ranking" // } // } // // { // // path: "/warningCenter/earlyWarningdemo", // // component: () => import("@/views/backOfficeSystem/warningCenter/earlyWarningdemo/index"), // // name: "earlyWarningdemo", // // meta: { // // title: "预警模板", // // icon: "article-ranking" // // } // // }, // // { // // path: "/warningCenter/derectingPatrols", // // component: () => import("@/views/backOfficeSystem/warningCenter/derectingPatrols/index"), // // name: "derectingPatrols", // // meta: { // // title: "指导巡逻", // // icon: "article-ranking" // // } // // }, // ] // }, // { // path: "/videoPatrol", // name: "videoPatrol", // meta: { // title: "视频巡逻", // icon: "personnel" // }, // children: [ // { // path: "/videoPatrol/patrolPlan", // component: () => // import("@/views/backOfficeSystem/videoPatrol/patrolPlan/index"), // name: "patrolPlan", // meta: { // title: "巡逻方案", // icon: "article-ranking" // } // }, // { // path: "/rxgzy", // name: "rxgzy", // component: () => // import("@/views/backOfficeSystem/basicsmanage/rxgzy/index"), // meta: { // title: "感知源管理", // icon: "article-ranking" // } // } // ] // }, // { // path: "/performanceMenu", // name: "performanceMenu", // meta: { // title: "质量监督", // icon: "personnel" // }, // children: [ // { // path: "/performanceMenu/assessment", // name: "assessment", // component: () => // import( // "@/views/backOfficeSystem/performanceMenu/assessment/index" // ), // meta: { // title: "配置考核部门", // icon: "article-ranking" // } // }, // { // path: "/performanceMenu/achievements", // name: "achievements", // component: () => // import( // "@/views/backOfficeSystem/performanceMenu/achievements/index" // ), // meta: { // title: "质量监督", // icon: "article-ranking" // } // }, // { // path: "/performanceMenu/jxbg", // name: "jxbg", // component: () => // import("@/views/backOfficeSystem/performanceMenu/jxbg/index"), // meta: { // title: "工作报告", // icon: "article-ranking" // } // }, // { // path: "/performanceMenu/model", // component: () => // import("@/views/backOfficeSystem/performanceMenu/model/index"), // name: "model", // meta: { // title: "考核模型", // icon: "article-ranking" // } // } // ] // }, // { // path: "/patrolResults", // name: "patrolResults", // meta: { // title: "巡防战果", // icon: "personnel" // }, // children: [ // { // path: "/patrolResults/mediumPersonnelRatioLog", // component: () => // import( // "@/views/backOfficeSystem/patrolResults/mediumPersonnelRatioLog/index" // ), // name: "mediumPersonnelRatioLog", // meta: { // title: "人员战果", // icon: "article-ranking" // } // }, // { // path: "/patrolResults/mediumVehicleRatio", // component: () => // import( // "@/views/backOfficeSystem/patrolResults/mediumVehicleRatio/index" // ), // name: "mediumVehicleRatio", // meta: { // title: "车辆战果", // icon: "article-ranking" // } // } // // { // // path: "/patrolResults/ItemVehicleRatio", // // component: () => import("@/views/backOfficeSystem/patrolResults/ItemVehicleRatio/index"), // // name: "ItemVehicleRatio", // // meta: { // // title: '物品战果', // // icon: "article-ranking" // // } // // }, // ] // }, // { // path: "/patrolStatistics", // name: "patrolStatistics", // meta: { // title: "巡防统计", // icon: "personnel" // }, // children: [ // { // path: "/patrolStatistics/securitySituation", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/securitySituation/index" // ), // name: "securitySituation", // meta: { // title: "安全态势统计", // icon: "article-ranking" // } // }, // { // path: "/patrolStatistics/interfaceAlarm", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/interfaceAlarm/index" // ), // name: "interfaceAlarm", // meta: { // title: "街面警情统计", // icon: "article-ranking" // } // }, // { // path: "/patrolStatistics/patrolResources", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/perceptualSource/index" // ), // name: "patrolResources", // meta: { // title: "巡防资源统计", // icon: "article-ranking" // }, // children: [ // { // path: "/patrolResources/perceptualSource", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/perceptualSource/index" // ), // name: "perceptualSource", // meta: { // title: "感知源", // icon: "article-ranking" // } // }, // { // path: "/patrolResources/patrolForce", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/patrolForce/index" // ), // name: "patrolForce", // meta: { // title: "巡防力量", // icon: "article-ranking" // } // }, // { // path: "/patrolResources/mobileEquipment", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/mobileEquipment/index" // ), // name: "mobileEquipment", // meta: { // title: "移动装备", // icon: "article-ranking" // } // }, // { // path: "/patrolResources/streetPoliceStation", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/streetPoliceStation/index" // ), // name: "streetPoliceStation", // meta: { // title: "街面警务站", // icon: "article-ranking" // } // } // ] // }, // { // path: "/patrolResources/perceptualSource", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/perceptualSource/index" // ), // name: "perceptualSource", // meta: { // title: "感知源" // } // }, // { // path: "/patrolResources/patrolForce", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/patrolForce/index" // ), // name: "patrolForce", // meta: { // title: "巡防力量" // } // }, // { // path: "/patrolResources/mobileEquipment", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/mobileEquipment/index" // ), // name: "mobileEquipment", // meta: { // title: "移动装备" // } // }, // { // path: "/patrolResources/streetPoliceStation", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/streetPoliceStation/index" // ), // name: "streetPoliceStation", // meta: { // title: "街面警务站" // } // }, // { // path: "/patrolStatistics/patrolResultsTj", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/manVehicleInventoryAnalysis/index" // ), // name: "patrolResultsTj", // meta: { // title: "巡防战果统计", // icon: "article-ranking" // }, // children: [ // { // path: "/patrolResultsTj/manVehicleInventoryAnalysis", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/manVehicleInventoryAnalysis/index" // ), // name: "manVehicleInventoryAnalysis", // meta: { // title: "盘查统计分析", // icon: "article-ranking" // } // }, // // { // // path: "/patrolResultsTj/car", // // component: () => import("@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/inventoryCharacteristicStatistics/index"), // // name: "inventoryCharacteristicStatistics", // // meta: { // // title: '盘查车辆分析', // // icon: "article-ranking" // // }, // // }, // // { // // path: "/patrolResultsTj/humanAndVehicleAchievements", // // component: () => import("@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/humanAndVehicleAchievements/index"), // // name: "humanAndVehicleAchievements", // // meta: { // // title: '盘查物品分析', // // icon: "article-ranking" // // }, // // }, // { // path: "/patrolResultsTj/inventoryStatisticsOfArticles", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/inventoryStatisticsOfArticles/index" // ), // name: "inventoryStatisticsOfArticles", // meta: { // title: "处置警情分析", // icon: "article-ranking" // } // }, // { // path: "/patrolResultsTj/manVehicleInventoryStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/manVehicleInventoryStatistics/index" // ), // name: "manVehicleInventoryStatistics", // meta: { // title: "事件分析", // icon: "article-ranking" // } // } // ] // }, // { // path: "/patrolStatistics/patrolWork", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/deptStatistics/index" // ), // name: "patrolWork", // meta: { // title: "巡防工作统计", // icon: "article-ranking" // }, // children: [ // { // path: "/patrolWork/deptStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/deptStatistics/index" // ), // name: "deptStatistics", // meta: { // title: "部门统计", // icon: "article-ranking" // } // }, // { // path: "/patrolWork/patrolAreaStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/patrolAreaStatistics/index" // ), // name: "patrolAreaStatistics", // meta: { // title: "巡区统计", // icon: "article-ranking" // } // }, // { // path: "/patrolWork/patrolGroupStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/patrolGroupStatistics/index" // ), // name: "patrolGroupStatistics", // meta: { // title: "巡组统计", // icon: "article-ranking" // } // }, // { // path: "/patrolWork/personalStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/personalStatistics/index" // ), // name: "personalStatistics", // meta: { // title: "个人统计", // icon: "article-ranking" // } // } // ] // }, // { // path: "/patrolWork/deptStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/deptStatistics/index" // ), // name: "deptStatistics", // meta: { // title: "部门统计" // } // }, // { // path: "/patrolWork/patrolAreaStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/patrolAreaStatistics/index" // ), // name: "patrolAreaStatistics", // meta: { // title: "巡区统计" // } // }, // { // path: "/patrolWork/patrolGroupStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/patrolGroupStatistics/index" // ), // name: "patrolGroupStatistics", // meta: { // title: "巡组统计" // } // }, // { // path: "/patrolWork/personalStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolWork/personalStatistics/index" // ), // name: "personalStatistics", // meta: { // title: "个人统计" // } // }, // { // path: "/interfaceFocus/keyPersonnel", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/interfaceFocus/keyPersonnel/index" // ), // name: "keyPersonnel", // meta: { // title: "重点人员统计" // } // }, // { // path: "/interfaceFocus/importantPlaces", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/interfaceFocus/importantPlaces/index" // ), // name: "importantPlaces", // meta: { // title: "重要场所统计" // } // }, // { // path: "/patrolResultsTj/manVehicleInventoryAnalysis", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/manVehicleInventoryAnalysis/index" // ), // name: "manVehicleInventoryAnalysis", // meta: { // title: "盘查统计分析" // } // }, // // { // // path: "/patrolResultsTj/car", // // component: () => import("@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/inventoryCharacteristicStatistics/index"), // // name: "inventoryCharacteristicStatistics", // // meta: { // // title: '盘查车辆分析' // // }, // // }, // // { // // path: "/patrolResultsTj/humanAndVehicleAchievements", // // component: () => import("@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/humanAndVehicleAchievements/index"), // // name: "humanAndVehicleAchievements", // // meta: { // // title: '盘查物品分析' // // }, // // }, // { // path: "/patrolResultsTj/inventoryStatisticsOfArticles", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/inventoryStatisticsOfArticles/index" // ), // name: "inventoryStatisticsOfArticles", // meta: { // title: "处置警情分析" // } // }, // { // path: "/patrolResultsTj/manVehicleInventoryStatistics", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResultsTj/manVehicleInventoryStatistics/index" // ), // name: "manVehicleInventoryStatistics", // meta: { // title: "事件分析" // } // } // ] // }, // { // path: "/contingencyPlan", // name: "contingencyPlan", // meta: { // title: "预案管理", // icon: "personnel" // }, // children: [ // { // path: "/PlanManagement", // name: "BasicConfiguration", // meta: { // title: "基础配置", // icon: "article-ranking" // }, // children: [ // { // path: "/PlanManagement", // component: () => // import( // "@/views/backOfficeSystem/contingencyPlan/PlanManagement/index" // ), // name: "PlanManagement", // meta: { // title: "预案等级管理", // icon: "article-ranking" // } // }, // { // path: "/TypeManagement", // component: () => // import( // "@/views/backOfficeSystem/contingencyPlan/TypeManagement/index" // ), // name: "TypeManagement", // meta: { // title: "预案类型管理", // icon: "article-ranking" // } // } // ] // }, // { // path: "/YaManagement", // name: "Contingency", // meta: { // title: "预案管理", // icon: "article-ranking" // }, // children: [ // { // path: "/YaManagement", // component: () => // import( // "@/views/backOfficeSystem/contingencyPlan/YaManagement/index" // ), // name: "YaManagement", // meta: { // title: "预案管理(市局)", // icon: "article-ranking" // } // }, // { // path: "/patrolResources/perceptualSource", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/perceptualSource/index" // ), // name: "perceptualSource", // meta: { // title: "预案执行(作战力量)", // icon: "article-ranking" // } // }, // { // path: "/patrolResources/perceptualSource", // component: () => // import( // "@/views/backOfficeSystem/patrolStatistics/patrolResources/perceptualSource/index" // ), // name: "perceptualSource", // meta: { // title: "预案执行(市局)", // icon: "article-ranking" // } // } // ] // } // ] // } ] } ]; const router = createRouter({ history: createWebHashHistory(), routes: publicRoutes }); //初始化路由表 export function resetRouter() { if (store.getters?.routeReady && store.getters?.userInfo?.permission?.menus) { const menus = store.getters.userInfo.permission.menus; menus.forEach((menu) => { router.removeRoute(menu); }); } } export default router;