lcw
This commit is contained in:
@ -1,26 +1,24 @@
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import layout from "@/layout/index"; //layout直接引用 其他使用路由懒加载
|
||||
import layout from "@/layout/index";
|
||||
import store from "@/store";
|
||||
|
||||
// import Home from '../views/Home.vue'
|
||||
/**
|
||||
* 关于路由配置描述
|
||||
* 1.meta && meta.title && meta.icon 则在菜单栏显示
|
||||
* 2.如果存在children , 则以el-sub-menu子菜单显示
|
||||
* 否则不在menu菜单显示
|
||||
* 如果只展示单级别菜单 需要像developer这样配置
|
||||
* 路由配置说明
|
||||
*
|
||||
* 1. publicRoutes(公开路由)- 所有用户都能访问,应用启动时静态注册
|
||||
* 包括:登录页、首页、错误页等
|
||||
*
|
||||
* 2. privateRoutes(私有路由)- 需要权限才能访问,登录后动态注册
|
||||
* 包括:所有业务功能路由
|
||||
*
|
||||
* 3. 路由的 name 属性必须与后端返回的菜单权限码(menuCodeSet)一致
|
||||
*/
|
||||
|
||||
/**
|
||||
* 私有路由表
|
||||
*/
|
||||
|
||||
export const privateRoutes = [];
|
||||
|
||||
/**
|
||||
* 公开路由表
|
||||
* 公开路由表 - 所有人都能访问
|
||||
*/
|
||||
export const publicRoutes = [
|
||||
// 登录相关路由
|
||||
{
|
||||
path: "/oatuh_login",
|
||||
name: "oatuh_login",
|
||||
@ -36,44 +34,57 @@ export const publicRoutes = [
|
||||
name: "zeroTrust_login",
|
||||
component: () => import("@/views/login/zeroTrust_login")
|
||||
},
|
||||
// 错误页面
|
||||
{
|
||||
path: "/401",
|
||||
name: "401",
|
||||
component: () => import("@/views/error/401.vue")
|
||||
},
|
||||
{
|
||||
path: "/404",
|
||||
name: "404",
|
||||
component: () => import("@/views/error/404.vue")
|
||||
},
|
||||
// 首页(所有登录用户都可访问)
|
||||
{
|
||||
path: "/",
|
||||
name: "home",
|
||||
component: () => import("@/views/home/index") //系统登录
|
||||
component: () => import("@/views/home/index"),
|
||||
meta: { keepAlive: true, componentName: 'HomePage' }
|
||||
},
|
||||
// 公共访问页面(无需权限校验)
|
||||
{
|
||||
path: "/mapNavigation",
|
||||
name: "mapNavigation",
|
||||
component: () => import("@/views/home/model/mapNavigation.vue") //系统登录
|
||||
component: () => import("@/views/home/model/mapNavigation.vue")
|
||||
},
|
||||
{
|
||||
path: "/KeyPopulations",
|
||||
name: "KeyPopulations",
|
||||
component: () => import("@/views/KeyPopulations/index") //系统登录
|
||||
component: () => import("@/views/KeyPopulations/index")
|
||||
},
|
||||
// 布控审核信息
|
||||
// 以下路由虽然在白名单中,但仍需要登录才能访问
|
||||
// 它们是特殊业务路由,登录后所有人都能访问(不依赖菜单权限)
|
||||
{
|
||||
path: "/deploymentApproval",
|
||||
name: "deploymentApproval",
|
||||
component: () => import("@/views/backOfficeSystem/ApprovalInformation/deploycontrol/deploymentApproval.vue"),
|
||||
},
|
||||
// 标签布控审核
|
||||
{
|
||||
path: "/shym",
|
||||
name: "shym",
|
||||
component: () => import("@/views/backOfficeSystem/IntelligentControl/marksControl/components/shym.vue"),
|
||||
},
|
||||
// 布控审核信息
|
||||
{
|
||||
path: "/information",
|
||||
name: "information",
|
||||
component: () => import("@/views/backOfficeSystem/JudgmentHome/internalAuditor/information.vue"),
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/Spdloyment",
|
||||
name: "Spdloyment",
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/auditList/components/spdloyment.vue"),
|
||||
},
|
||||
// 线索
|
||||
{
|
||||
path: "/clueVerification",
|
||||
name: "clueVerification",
|
||||
@ -84,13 +95,40 @@ export const publicRoutes = [
|
||||
name: "ReviewListSH",
|
||||
component: () => import("@/views/backOfficeSystem/JudgmentHome/ReviewList/detail.vue"),
|
||||
},
|
||||
// 重点人发掘
|
||||
{
|
||||
path: "/focusExploration",
|
||||
name: "focusExploration",
|
||||
component: () => import("@/views/backOfficeSystem/ApprovalInformation/FocusExploration/index.vue"),
|
||||
},
|
||||
//开放到派出所路由
|
||||
// 情报论坛(所有登录用户都可访问)
|
||||
{
|
||||
path: "/forumPost",
|
||||
name: "forumPost",
|
||||
component: layout,
|
||||
meta: {
|
||||
title: "情报论坛",
|
||||
icon: "article-ranking"
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
name: "forumPostPage",
|
||||
component: () => import("@/views/backOfficeSystem/luntan/index.vue"),
|
||||
meta: {
|
||||
title: "情报论坛",
|
||||
icon: "article-ranking"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
* 私有路由表 - 需要权限才能访问
|
||||
* 登录后根据用户的 menuCodeSet 动态注册
|
||||
*/
|
||||
export const privateRoutes = [
|
||||
// 派出所开放路由(特殊权限,不在菜单显示)
|
||||
{
|
||||
path: "/warningLists",
|
||||
name: "warningLists",
|
||||
@ -100,7 +138,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/behaviorWarnings",
|
||||
name: "behaviorWarnings",
|
||||
@ -127,7 +164,8 @@ export const publicRoutes = [
|
||||
title: "重点人管理",
|
||||
icon: "article-create"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/myControls",
|
||||
name: "myControls",
|
||||
component: () => import("@/views/backOfficeSystem/IntelligentControl/myControl/index"),
|
||||
@ -135,7 +173,8 @@ export const publicRoutes = [
|
||||
title: "我的布控",
|
||||
icon: "article-create"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/DeploymentAreas",
|
||||
name: "DeploymentAreas",
|
||||
component: () => import("@/views/backOfficeSystem/IntelligentControl/DeploymentArea/index"),
|
||||
@ -144,8 +183,9 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// 主业务路由(带 layout)
|
||||
{
|
||||
path: "/editPassword", // 注意:带有路径“/”的记录中的组件“默认”是一个不返回 Promise 的函数
|
||||
path: "/editPassword",
|
||||
redirect: "/IdentityManage",
|
||||
component: layout,
|
||||
children: [
|
||||
@ -154,18 +194,6 @@ export const publicRoutes = [
|
||||
name: "FourColorWarning",
|
||||
meta: { title: "预警中心", icon: "article-ranking" },
|
||||
children: [
|
||||
// {
|
||||
// path: "/centerHome",
|
||||
// name: "centerHome",
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/index"),
|
||||
// meta: { title: "预警中心大屏", icon: "article-create" },
|
||||
// },
|
||||
// {
|
||||
// path: "/warningBk",
|
||||
// name: "warningBk",
|
||||
// meta: { title: "布控预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/warningBk/index"),
|
||||
// },
|
||||
{
|
||||
path: "/YjData",
|
||||
name: "YjData",
|
||||
@ -185,7 +213,8 @@ export const publicRoutes = [
|
||||
title: "警情信息",
|
||||
icon: "article-create"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/policeSituations",
|
||||
name: "policeSituations",
|
||||
component: () => import("@/views/backOfficeSystem/PoliceIncidentMonitoring/index.vue"),
|
||||
@ -196,107 +225,20 @@ export const publicRoutes = [
|
||||
},
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: "/fouColorWarning",
|
||||
// name: "fouColorWarning",
|
||||
// meta: { title: "预警数据整合", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/fouColorWarning/index"),
|
||||
// },
|
||||
// {
|
||||
// path: "/sevenWarning",
|
||||
// name: "sevenWarning",
|
||||
// meta: { title: "七类重点人员", icon: "article" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/sevenWarning/index.vue"),
|
||||
// },
|
||||
// {
|
||||
// path: "/identityWarning",
|
||||
// name: "identityWarning",
|
||||
// meta: { title: "身份预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/identityWarning/index"),
|
||||
// },
|
||||
|
||||
// {
|
||||
// path: "/behaviorWarning",
|
||||
// name: "behaviorWarning",
|
||||
// meta: { title: "行为预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/index"),
|
||||
// },
|
||||
// {
|
||||
// path: "/combinedWarning",
|
||||
// name: "combinedWarning",
|
||||
// meta: { title: "组合预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/combinedWarning/index"),
|
||||
// },
|
||||
// {
|
||||
// path: "/warningList",
|
||||
// name: "warningList",
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningList/index"),
|
||||
// meta: {
|
||||
// title: "布控预警",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/portraitWarning",
|
||||
// name: "portraitWarning",
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningList/portraitWarning/index"),
|
||||
// meta: {
|
||||
// title: "人像预警",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
|
||||
// {
|
||||
// path: "/vehicleWarning",
|
||||
// name: "vehicleWarning",
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningList/vehicleWarning/index"),
|
||||
// meta: {
|
||||
// title: "车辆预警",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/controlWarning",
|
||||
// name: "controlWarning",
|
||||
// meta: { title: "布控预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/controlWarning/index"),
|
||||
// },
|
||||
// {
|
||||
// path: "/regionalControl",
|
||||
// name: "regionalControl",
|
||||
// meta: { title: "区域布控预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/regionalControl/index"),
|
||||
// },
|
||||
// {
|
||||
// path: "/fouColorWarning",
|
||||
// name: "fouColorWarning",
|
||||
// meta: { title: "四色预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/fouColorWarning/index"),
|
||||
// },
|
||||
{
|
||||
path: "/scoreRanking",
|
||||
name: "scoreRanking",
|
||||
meta: { title: "积分排名", icon: "article-create" },
|
||||
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/scoreRanking/index"),
|
||||
},
|
||||
|
||||
{
|
||||
path: "/sevenWarningFail",
|
||||
name: "sevenWarningFail",
|
||||
meta: { title: "报错列表", icon: "article" },
|
||||
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/sevenWarningFail/index.vue"),
|
||||
},
|
||||
// {
|
||||
// path: "/modelWarning",
|
||||
// name: "modelWarning",
|
||||
// meta: { title: "模型预警", icon: "article-create" },
|
||||
// component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/modelWarning/index"),
|
||||
// },
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
path: "/IntelligentControl",
|
||||
name: "IntelligentControl",
|
||||
@ -329,7 +271,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/marksControl",
|
||||
name: "marksControl",
|
||||
@ -339,7 +280,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/ReviewListControl",
|
||||
name: "ReviewListControl",
|
||||
@ -349,26 +289,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// {
|
||||
// path: "/DeploymentAudit",
|
||||
// name: "DeploymentAudit",
|
||||
// component: () => import("@/views/backOfficeSystem/IntelligentControl/DeploymentAudit/index"),
|
||||
// meta: {
|
||||
// title: "我的审核",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/ControlApproval",
|
||||
// name: "ControlApproval",
|
||||
// component: () => import("@/views/backOfficeSystem/IntelligentControl/ControlApproval/index"),
|
||||
// meta: {
|
||||
// title: "我的审批",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -393,29 +313,13 @@ export const publicRoutes = [
|
||||
name: "openSourceList",
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/listView/index"),
|
||||
meta: { title: "共享列表", icon: "article-create", qbjbList: '01' },
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/auditList",
|
||||
name: "auditList",
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/auditList/index"),
|
||||
meta: { title: "审批列表", icon: "article-create" },
|
||||
},
|
||||
// {
|
||||
// path: "/socialInformationCrculated",
|
||||
// name: "changeTheClue",
|
||||
// component: () => import("@/views/backOfficeSystem/HumanIntelligence/FollowLeads/index"),
|
||||
// meta: { title: "转线索列表", icon: "article-create" },
|
||||
// },
|
||||
|
||||
// {
|
||||
// path: "/CollectPoints",
|
||||
// name: "CollectPoints",
|
||||
// component: () => import("@/views/backOfficeSystem/HumanIntelligence/CollectPoints/index"),
|
||||
// meta: {
|
||||
// title: "采集积分",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
|
||||
{
|
||||
path: "/supplementReportList",
|
||||
name: "supplementReportList",
|
||||
@ -443,15 +347,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/MakeAcomment",
|
||||
// name: "MakeAcomment",
|
||||
// component: () => import("@/views/backOfficeSystem/MakeAcomment/index"),
|
||||
// meta: {
|
||||
// title: "情报评一评",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// }
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -471,19 +366,6 @@ export const publicRoutes = [
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/lamXs/index"),
|
||||
meta: { title: "林安码线索", icon: "article" },
|
||||
},
|
||||
|
||||
|
||||
// 暂时不要
|
||||
// {
|
||||
// path: "/MoralAnalysis",
|
||||
// name: "MoralAnalysis",
|
||||
// component: () => import("@/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index"),
|
||||
// meta: {
|
||||
// title: "情报语义分析",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
|
||||
{
|
||||
path: "/InstructionInformation",
|
||||
name: "InstructionInformation",
|
||||
@ -493,21 +375,8 @@ export const publicRoutes = [
|
||||
icon: "article"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/InformationFlows",
|
||||
// name: "InformationFlows",
|
||||
// meta: { title: "情报流转", icon: "article-create" },
|
||||
// // redirect: "/InformationFlow",
|
||||
// // children: [
|
||||
|
||||
|
||||
// // ]
|
||||
// },
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
path: "/JudgmentHome",
|
||||
name: "JudgmentHome",
|
||||
@ -517,7 +386,6 @@ export const publicRoutes = [
|
||||
icon: "article-ranking"
|
||||
},
|
||||
children: [
|
||||
|
||||
{
|
||||
path: "/policeManagement",
|
||||
name: "policeManagement",
|
||||
@ -545,16 +413,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/situationHome",
|
||||
// name: "situationHome",
|
||||
// component: () => import("@/views/backOfficeSystem/JudgmentHome/situationHome/index"),
|
||||
// meta: {
|
||||
// title: "战略研判",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// 后面写的研判
|
||||
{
|
||||
path: "/strategicResearchs",
|
||||
name: "strategicResearchs",
|
||||
@ -591,15 +449,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/analysisReport",
|
||||
// name: "AnalysisReport",
|
||||
// component: () => import("@/views/backOfficeSystem/AnalysisReport/index"),
|
||||
// meta: {
|
||||
// title: "研判报告",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: "/MeetingRoom",
|
||||
name: "MeetingRoom",
|
||||
@ -647,7 +496,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/mpvGroup",
|
||||
name: "mpvGroup",
|
||||
@ -657,7 +505,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/mpvCar",
|
||||
name: "mpvCar",
|
||||
@ -676,24 +523,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/mpvPeoSh",
|
||||
// name: "mpvPeoSh",
|
||||
// component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvPeoSh/index"),
|
||||
// meta: {
|
||||
// title: "重点人审批",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/mpvGroupSh",
|
||||
// name: "mpvGroupSh",
|
||||
// component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvGroupSh/index"),
|
||||
// meta: {
|
||||
// title: "重点群体审核",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -714,7 +543,8 @@ export const publicRoutes = [
|
||||
name: "goingJob",
|
||||
meta: { title: "工作情况", icon: "article-ranking" },
|
||||
component: () => import("@/views/backOfficeSystem/goingJob/index.vue")
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/workLogInfo",
|
||||
name: "workLogInfo",
|
||||
meta: { title: "值班信息", icon: "article-ranking" },
|
||||
@ -722,80 +552,15 @@ export const publicRoutes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
path: "/Cspz",
|
||||
name: "Cspz",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/fourColorManage/Cspz/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/fourColorManage/Cspz/index"),
|
||||
meta: {
|
||||
title: "参数配置",
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
// {
|
||||
// path: "/IntegralCoefficient",
|
||||
// name: "IntegralCoefficient",
|
||||
// component: () =>
|
||||
// import(
|
||||
// "@/views/backOfficeSystem/fourColorManage/IntegralCoefficient/index"
|
||||
// ),
|
||||
// meta: {
|
||||
// title: "积分系数配置",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
|
||||
// {
|
||||
// path: "/IdentityManage",
|
||||
// name: "IdentityManage",
|
||||
// component: () =>
|
||||
// import(
|
||||
// "@/views/backOfficeSystem/fourColorManage/IdentityManage/index"
|
||||
// ),
|
||||
// meta: {
|
||||
// title: "身份标签管理",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/BehaviorLabels",
|
||||
// name: "BehaviorLabels",
|
||||
// component: () =>
|
||||
// import(
|
||||
// "@/views/backOfficeSystem/fourColorManage/BehaviorLabels/index"
|
||||
// ),
|
||||
// meta: {
|
||||
// title: "行为标签管理",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/tagManage",
|
||||
// name: "tagManage",
|
||||
// component: () =>
|
||||
// import(
|
||||
// "@/views/backOfficeSystem/fourColorManage/tagManage/index"
|
||||
// ),
|
||||
// meta: {
|
||||
// title: "标签组合管理",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/tsypHome",
|
||||
// name: "tsypHome",
|
||||
// component: () => import("@/views/backOfficeSystem/JudgmentHome/tsypHome/index"),
|
||||
// meta: {
|
||||
// title: "模型管理",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
|
||||
{
|
||||
path: "/permissionApply",
|
||||
name: "permissionApply",
|
||||
@ -814,7 +579,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/FileData",
|
||||
name: "FileData",
|
||||
@ -824,24 +588,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/fileTransfer",
|
||||
// name: "fileTransfer",
|
||||
// component: () => import("@/views/backOfficeSystem/HumanIntelligence/fileTransfer/index"),
|
||||
// meta: {
|
||||
// title: "文件中转",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/fileOrientation",
|
||||
// name: "fileOrientation",
|
||||
// component: () => import("@/views/backOfficeSystem/HumanIntelligence/fileOrientation/index"),
|
||||
// meta: {
|
||||
// title: "点对点",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: "/ssemanticAnalysis",
|
||||
name: "semanticAnalysis",
|
||||
@ -868,7 +614,8 @@ export const publicRoutes = [
|
||||
title: "操作记录",
|
||||
icon: "article-create"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/dataMonitor",
|
||||
name: "dataMonitor",
|
||||
meta: { title: "数据监控", icon: "article-ranking" },
|
||||
@ -895,66 +642,9 @@ export const publicRoutes = [
|
||||
},
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: "/BasicManagement",
|
||||
// name: "BasicManagement",
|
||||
// meta: {
|
||||
// title: "基础管理",
|
||||
// icon: "article-create"
|
||||
// },
|
||||
// children: [
|
||||
|
||||
// // {
|
||||
// // path: "/surveillanceControl",
|
||||
// // name: "surveillanceControl",
|
||||
// // component: () =>
|
||||
// // import(
|
||||
// // "@/views/backOfficeSystem/BasicManagement/surveillanceControl/index"
|
||||
// // ),
|
||||
// // meta: {
|
||||
// // title: "布控监视",
|
||||
// // icon: "article-create"
|
||||
// // }
|
||||
// // },
|
||||
// // {
|
||||
// // path: "/experienceShare",
|
||||
// // name: "experienceShare",
|
||||
// // component: () =>
|
||||
// // import("@/views/backOfficeSystem/BasicManagement/experienceShare/index"),
|
||||
// // meta: {
|
||||
// // title: "经验分享",
|
||||
// // icon: "article-create"
|
||||
// // }
|
||||
// // },
|
||||
|
||||
|
||||
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: "/forumPost2",
|
||||
// name: "forumPost2",
|
||||
// component: () => import("@/views/forumPost/index.vue"),
|
||||
// meta: {
|
||||
// title: "情报论坛",
|
||||
// icon: "article-ranking"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
path: "/forumPost",
|
||||
name: "forumPost",
|
||||
component: () => import("@/views/backOfficeSystem/luntan/index.vue"),
|
||||
meta: {
|
||||
title: "情报论坛",
|
||||
icon: "article-ranking"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/systemConfig",
|
||||
// component: layout,
|
||||
name: "systemConfigModel",
|
||||
// redirect: "/dict/index",
|
||||
meta: {
|
||||
title: "系统管理",
|
||||
icon: "article-ranking"
|
||||
@ -969,12 +659,10 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/user/userList",
|
||||
name: "userList",
|
||||
component: () =>
|
||||
import("@/views/backOfficeSystem/systemConfig/user-list/index"),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/user-list/index"),
|
||||
meta: {
|
||||
title: "用户管理",
|
||||
icon: "article-create"
|
||||
@ -983,8 +671,7 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/user/role",
|
||||
name: "userRoleIndex",
|
||||
component: () =>
|
||||
import("@/views/backOfficeSystem/systemConfig/role-list/index"),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/role-list/index"),
|
||||
meta: {
|
||||
title: "角色列表",
|
||||
icon: "article-create"
|
||||
@ -993,19 +680,16 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/user/menuList",
|
||||
name: "menuList",
|
||||
component: () =>
|
||||
import("@/views/backOfficeSystem/systemConfig/menu-list/index"),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/menu-list/index"),
|
||||
meta: {
|
||||
title: "菜单管理",
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/dict/detail",
|
||||
name: "dictDetail",
|
||||
component: () =>
|
||||
import("@/views/backOfficeSystem/systemConfig/dict/detail"),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/dict/detail"),
|
||||
meta: {
|
||||
title: "字典数据"
|
||||
}
|
||||
@ -1013,21 +697,16 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/dict/index",
|
||||
name: "dictIndex",
|
||||
component: () =>
|
||||
import("@/views/backOfficeSystem/systemConfig/dict/index"),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/dict/index"),
|
||||
meta: {
|
||||
title: "字典列表",
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/user/deptAllocationUser/:id",
|
||||
name: "deptAllocationUser",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/systemConfig/department-list/deptAllocationUser"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/department-list/deptAllocationUser"),
|
||||
meta: {
|
||||
title: "管理用户"
|
||||
}
|
||||
@ -1035,27 +714,21 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/user/allocationUser/:id",
|
||||
name: "allocationUser",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/systemConfig/role-list/allocationUser"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/role-list/allocationUser"),
|
||||
meta: {
|
||||
title: "分配用户"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/user/systemConfig",
|
||||
name: "systemConfig",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/systemConfig/system-config-list/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/systemConfig/system-config-list/index"),
|
||||
meta: {
|
||||
title: "系统配置",
|
||||
icon: "article-create"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/calendar",
|
||||
name: "calendar",
|
||||
component: () => import("@/views/backOfficeSystem/calendar/index.vue"),
|
||||
@ -1112,26 +785,20 @@ export const publicRoutes = [
|
||||
name: "CollectCrculate",
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index"),
|
||||
meta: { title: "情报采集", icon: "article-create" },
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/RlStatisticalAnalysis",
|
||||
name: "RlStatisticalAnalysis",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/HumanIntelligence/RlStatisticalAnalysis/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/RlStatisticalAnalysis/index"),
|
||||
meta: {
|
||||
title: "上报统计分析",
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/TaskScheduling",
|
||||
name: "TaskScheduling",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index"),
|
||||
meta: {
|
||||
title: "上报任务调度",
|
||||
icon: "article-create"
|
||||
@ -1140,10 +807,7 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/ConstructionManagement",
|
||||
name: "ConstructionManagement",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/HumanIntelligence/ConstructionManagement/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/HumanIntelligence/ConstructionManagement/index"),
|
||||
meta: {
|
||||
title: "力量建设管理",
|
||||
icon: "article-create"
|
||||
@ -1190,14 +854,10 @@ export const publicRoutes = [
|
||||
name: "ExcavationResearch",
|
||||
meta: { title: "重点人发掘", icon: "article-ranking" },
|
||||
children: [
|
||||
|
||||
{
|
||||
path: "/PreliminaryExcavations",
|
||||
name: "PreliminaryExcavations",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/ExcavationResearch/PreliminaryExcavations/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/ExcavationResearch/PreliminaryExcavations/index"),
|
||||
meta: {
|
||||
title: "重点人员初步发掘",
|
||||
icon: "article-create"
|
||||
@ -1206,10 +866,7 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/ZdryFjyp",
|
||||
name: "ZdryFjyp",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index"),
|
||||
meta: {
|
||||
title: "重点人员深度发掘",
|
||||
icon: "article-create"
|
||||
@ -1218,15 +875,13 @@ export const publicRoutes = [
|
||||
{
|
||||
path: "/LandingAudit",
|
||||
name: "LandingAudit",
|
||||
component: () =>
|
||||
import(
|
||||
"@/views/backOfficeSystem/ExcavationResearch/LandingAudit/index"
|
||||
),
|
||||
component: () => import("@/views/backOfficeSystem/ExcavationResearch/LandingAudit/index"),
|
||||
meta: {
|
||||
title: "重点人员落地审核",
|
||||
icon: "article-create"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/tacticalResearch",
|
||||
name: "tacticalResearch",
|
||||
component: () => import("@/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue"),
|
||||
@ -1245,7 +900,8 @@ export const publicRoutes = [
|
||||
}
|
||||
},
|
||||
]
|
||||
}, {
|
||||
},
|
||||
{
|
||||
path: "/tacticalResearch",
|
||||
name: "tacticalResearch",
|
||||
component: () => import("@/views/backOfficeSystem/JudgmentHome/tacticalResearch/index.vue"),
|
||||
@ -1254,7 +910,6 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: "/strategicResearch",
|
||||
name: "strategicResearch",
|
||||
@ -1273,41 +928,26 @@ export const publicRoutes = [
|
||||
icon: "article-create"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// path: "/ResearchHome",
|
||||
// name: "ResearchHome",
|
||||
// component: () => import("@/views/backOfficeSystem/JudgmentHome/ResearchHome/index"),
|
||||
// meta: {
|
||||
// title: "战术研判",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: "/situationHome",
|
||||
// name: "situationHome",
|
||||
// component: () => import("@/views/backOfficeSystem/JudgmentHome/situationHome/index"),
|
||||
// meta: {
|
||||
// title: "战略研判",
|
||||
// icon: "article-create"
|
||||
// }
|
||||
// },
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
// 创建路由实例,只注册公开路由
|
||||
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);
|
||||
});
|
||||
}
|
||||
// 移除所有动态添加的路由
|
||||
router.getRoutes().forEach(route => {
|
||||
if (route.name && !publicRoutes.find(r => r.name === route.name)) {
|
||||
router.removeRoute(route.name);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user