Files
sgxt_web/src/router/index.js

708 lines
21 KiB
JavaScript
Raw Normal View History

2025-04-23 17:56:15 +08:00
import { createRouter, createWebHashHistory } from "vue-router";
2025-04-12 14:54:02 +08:00
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 = [
2025-08-16 16:54:03 +08:00
];
/**
* 公开路由表
*/
export const publicRoutes = [
{
path: "/systemConfig",
component: layout,
name: "systemConfigModel",
redirect: "/dict/index",
meta: {
title: "系统管理",
icon: "article"
},
children: [
{
path: "/user/department-ist",
name: "departmentList",
2025-09-20 17:29:35 +08:00
component: () => import("@/views/backOfficeSystem/systemConfig/department-list/index"),
meta: {
title: "部门管理",
icon: "article-ranking"
}
},
{
path: "/user/userList",
name: "userList",
component: () =>
import("@/views/backOfficeSystem/systemConfig/user-list/index"),
meta: {
title: "用户管理",
icon: "article-ranking"
}
},
{
path: "/user/role",
name: "userRoleIndex",
component: () =>
import("@/views/backOfficeSystem/systemConfig/role-list/index"),
meta: {
title: "角色列表",
icon: "article-ranking"
}
},
{
path: "/user/menuList",
name: "menuList",
component: () =>
import("@/views/backOfficeSystem/systemConfig/menu-list/index"),
meta: {
title: "菜单管理",
icon: "article-ranking"
}
},
2025-04-23 17:56:15 +08:00
{
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"
}
},
2025-04-23 17:56:15 +08:00
{
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: "分配用户"
}
},
2025-04-23 17:56:15 +08:00
{
path: "/user/systemConfig",
name: "systemConfig",
component: () =>
import(
"@/views/backOfficeSystem/systemConfig/system-config-list/index"
),
meta: {
title: "系统配置",
icon: "article-ranking"
}
2025-04-23 17:56:15 +08:00
}
]
2025-08-16 16:54:03 +08:00
},
2025-08-27 17:26:29 +08:00
{
path: "/oatuh_login",
name: "oatuh_login",
component: () => import("@/views/login/oatuh_login")
},
2025-04-12 14:54:02 +08:00
{
path: "/login",
2025-04-23 17:56:15 +08:00
name: "login",
component: () => import("@/views/login/index")
2025-04-12 14:54:02 +08:00
},
{
2025-04-24 10:19:53 +08:00
path: "/",
2025-04-23 17:56:15 +08:00
name: "home",
2025-04-12 14:54:02 +08:00
component: () => import("@/views/home/index") //系统登录
},
2025-04-15 18:22:42 +08:00
{
path: "/KeyPopulations",
2025-04-23 17:56:15 +08:00
name: "KeyPopulations",
2025-04-15 18:22:42 +08:00
component: () => import("@/views/KeyPopulations/index") //系统登录
},
2025-08-16 16:54:03 +08:00
// 布控审核信息
{
path: "/deploymentApproval",
name: "deploymentApproval",
component: () => import("@/views/backOfficeSystem/ApprovalInformation/deploycontrol/deploymentApproval.vue"),
},
// 线索
{
path: "/clueVerification",
name: "clueVerification",
component: () => import("@/views/backOfficeSystem/ApprovalInformation/Clue/index.vue"),
},
// 重点人发掘
{
path: "/focusExploration",
name: "focusExploration",
component: () => import("@/views/backOfficeSystem/ApprovalInformation/FocusExploration/index.vue"),
},
2025-04-12 14:54:02 +08:00
{
2025-04-23 17:56:15 +08:00
path: "/editPassword", // 注意:带有路径“/”的记录中的组件“默认”是一个不返回 Promise 的函数
2025-04-15 14:50:51 +08:00
redirect: "/IdentityManage",
2025-09-20 17:29:35 +08:00
component: layout,
2025-04-12 14:54:02 +08:00
children: [
2025-09-20 17:29:35 +08:00
{
2025-04-23 17:56:15 +08:00
path: "/FourColorWarning",
name: "FourColorWarning",
meta: { title: "四色预警管理", icon: "article" },
children: [
2025-09-20 17:29:35 +08:00
{
path: "/warningControl",
name: "warningControl",
meta: { title: "预警中心", icon: "article" },
redirect: "/warningControl/centerHome",
children: [
{
path: "/centerHome",
name: "centerHome",
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/index"),
meta: { title: "预警中心大屏", icon: "article" },
},
{
path: "/warningBk",
name: "warningBk",
meta: { title: "布控预警", icon: "article" },
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/warningBk/index"),
},
{
path: "/behaviorWarning",
name: "behaviorWarning",
meta: { title: "行为预警", icon: "article" },
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/behaviorWarning/index"),
},
{
path: "/identityWarning",
name: "identityWarning",
meta: { title: "身份预警", icon: "article" },
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/identityWarning/index"),
},
{
path: "/combinedWarning",
name: "combinedWarning",
meta: { title: "组合预警", icon: "article" },
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/combinedWarning/index"),
},
{
path: "/modelWarning",
name: "modelWarning",
meta: { title: "模型预警", icon: "article" },
component: () => import("@/views/backOfficeSystem/fourColorManage/warningControl/modelWarning/index"),
},
]
},
2025-04-23 17:56:15 +08:00
{
path: "/IdentityManage",
name: "IdentityManage",
component: () =>
import(
"@/views/backOfficeSystem/fourColorManage/IdentityManage/index"
),
2025-04-23 17:56:15 +08:00
meta: {
title: "身份标签管理",
icon: "article"
}
},
{
path: "/BehaviorLabels",
name: "BehaviorLabels",
component: () =>
import(
"@/views/backOfficeSystem/fourColorManage/BehaviorLabels/index"
),
2025-04-23 17:56:15 +08:00
meta: {
title: "行为标签管理",
icon: "article"
}
},
{
path: "/tagManage",
name: "tagManage",
component: () =>
import(
"@/views/backOfficeSystem/fourColorManage/tagManage/index"
),
2025-04-23 17:56:15 +08:00
meta: {
title: "标签组合管理",
icon: "article"
}
2025-07-31 10:38:34 +08:00
},
2025-04-23 17:56:15 +08:00
{
2025-09-19 23:10:52 +08:00
path: "/warningList",
name: "warningList",
component: () => import("@/views/backOfficeSystem/fourColorManage/warningList/index"),
meta: {
2025-09-20 17:29:35 +08:00
title: "布控预警列表",
2025-08-27 17:26:29 +08:00
icon: "article"
}
2025-07-31 10:38:34 +08:00
},
2025-09-20 17:29:35 +08:00
// 暂时取消
// {
// path: "/WarningModel",
// name: "WarningModel",
// component: () =>import("@/views/backOfficeSystem/ExcavationResearch/WarningModel/index"),
// meta: {
// title: "重点人员预警模型",
// icon: "article"
// }
// },
2025-07-31 10:38:34 +08:00
]
},
{
path: "/IntelligentControl",
name: "IntelligentControl",
meta: { title: "智能布控", icon: "article" },
children: [
2025-07-08 20:10:24 +08:00
{
path: "/DeploymentArea",
name: "DeploymentArea",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/IntelligentControl/DeploymentArea/index"),
2025-07-08 20:10:24 +08:00
meta: {
title: "布控区域",
icon: "article"
}
},
2025-04-23 17:56:15 +08:00
{
path: "/myControl",
name: "myControl",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/IntelligentControl/myControl/index"),
2025-04-23 17:56:15 +08:00
meta: {
title: "我的布控",
icon: "article"
}
},
2025-07-08 20:10:24 +08:00
{
path: "/DeploymentAudit",
name: "DeploymentAudit",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/IntelligentControl/DeploymentAudit/index"),
2025-07-08 20:10:24 +08:00
meta: {
title: "我的审核",
icon: "article"
}
},
2025-04-23 17:56:15 +08:00
{
path: "/ControlApproval",
name: "ControlApproval",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/IntelligentControl/ControlApproval/index"),
2025-04-23 17:56:15 +08:00
meta: {
2025-07-08 20:10:24 +08:00
title: "我的审批",
2025-04-23 17:56:15 +08:00
icon: "article"
}
}
]
},
{
path: "/ResearchJudgment",
name: "ResearchJudgment",
meta: { title: "线索研判盯办系统", icon: "article" },
children: [
{
path: "/DatAcquisition",
name: "DatAcquisition",
2025-07-10 20:07:17 +08:00
component: () => import("@/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index"),
2025-04-23 17:56:15 +08:00
meta: {
2025-07-31 10:38:34 +08:00
title: "线索数据采集",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
{
2025-09-20 17:29:35 +08:00
path: "/ssemanticAnalysis",
name: "semanticAnalysis",
component: () => import( "@/views/backOfficeSystem/SemanticAnalysis/index.vue"),
2025-04-23 17:56:15 +08:00
meta: {
2025-09-20 17:29:35 +08:00
title: "语义分析",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
2025-09-20 17:29:35 +08:00
// 暂时不要
// {
// path: "/MoralAnalysis",
// name: "MoralAnalysis",
// component: () => import("@/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index"),
// meta: {
// title: "情报语义分析",
// icon: "article"
// }
// },
2025-04-23 17:56:15 +08:00
{
path: "/IntelligenceManagement",
name: "IntelligenceManagement",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/index"),
2025-04-23 17:56:15 +08:00
meta: {
2025-07-31 10:38:34 +08:00
title: "线索管理",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
{
path: "/InformationFlows",
name: "InformationFlows",
meta: { title: "情报流转", icon: "article" },
redirect: "/InformationFlow",
children: [
{
path: "/InstructionInformation",
name: "InstructionInformation",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/InstructionInformation/index"),
2025-04-23 17:56:15 +08:00
meta: {
title: "指令信息",
icon: "article"
}
},
{
path: "/StatisticalAnalysis",
name: "StatisticalAnalysis",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/StatisticalAnalysis/index"),
2025-04-23 17:56:15 +08:00
meta: {
title: "情报统计分析",
icon: "article"
}
2025-04-16 23:06:01 +08:00
}
2025-04-23 17:56:15 +08:00
]
},
{
path: "/RecordsOperations",
name: "RecordsOperations",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/ResearchJudgment/RecordsOperations/index"),
2025-04-23 17:56:15 +08:00
meta: {
title: "操作记录",
icon: "article"
}
}
]
},
{
path: "/HumanIntelligence",
name: "HumanIntelligence",
meta: { title: "人力情报采集管理系统", icon: "article" },
children: [
{
2025-07-05 12:03:00 +08:00
path: "/CollectCrculate",
name: "CollectCrculate",
component: () =>
import(
2025-07-05 12:03:00 +08:00
"@/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index"
),
2025-04-23 17:56:15 +08:00
meta: {
2025-08-01 17:16:03 +08:00
title: "人力情报管理",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
{
2025-07-05 12:03:00 +08:00
path: "/RlStatisticalAnalysis",
name: "RlStatisticalAnalysis",
component: () =>
import(
2025-07-05 12:03:00 +08:00
"@/views/backOfficeSystem/HumanIntelligence/RlStatisticalAnalysis/index"
),
2025-04-23 17:56:15 +08:00
meta: {
2025-07-05 12:03:00 +08:00
title: "人力情报统计分析",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
2025-07-08 20:10:24 +08:00
2025-04-23 17:56:15 +08:00
{
path: "/TaskScheduling",
name: "TaskScheduling",
component: () =>
import(
"@/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index"
),
2025-04-23 17:56:15 +08:00
meta: {
2025-08-16 16:54:03 +08:00
title: "人力情报信息收集任务调度",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
{
path: "/ConstructionManagement",
name: "ConstructionManagement",
component: () =>
import(
"@/views/backOfficeSystem/HumanIntelligence/ConstructionManagement/index"
),
2025-04-23 17:56:15 +08:00
meta: {
title: "社会信息人员建设管理",
icon: "article"
}
2025-07-07 10:29:09 +08:00
},
{
path: "/JobAppraisal",
name: "JobAppraisal",
component: () => import("@/views/backOfficeSystem/HumanIntelligence/JobAppraisal/index"),
meta: {
title: "社会员工工作信息考核",
icon: "article"
}
},
2025-08-16 16:54:03 +08:00
{
path: "/MakeAcomment",
name: "MakeAcomment",
component: () => import("@/views/backOfficeSystem/MakeAcomment/index"),
meta: {
title: "情报评一评",
icon: "article"
}
}
2025-04-23 17:56:15 +08:00
]
},
{
path: "/ExcavationResearch",
name: "ExcavationResearch",
2025-09-20 17:29:35 +08:00
meta: { title: "重点人发掘系统", icon: "article" },
2025-04-23 17:56:15 +08:00
children: [
2025-09-20 17:29:35 +08:00
{
path: "/tsypHome",
name: "tsypHome",
component: () => import("@/views/backOfficeSystem/JudgmentHome/tsypHome/index"),
meta: {
title: "重点人员模型管理",
icon: "article"
}
},
2025-04-23 17:56:15 +08:00
{
2025-06-17 20:04:43 +08:00
path: "/PreliminaryExcavations",
name: "PreliminaryExcavations",
component: () =>
import(
2025-06-17 20:04:43 +08:00
"@/views/backOfficeSystem/ExcavationResearch/PreliminaryExcavations/index"
),
2025-04-23 17:56:15 +08:00
meta: {
2025-06-17 20:04:43 +08:00
title: "重点人员初步发掘",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
{
2025-06-17 20:04:43 +08:00
path: "/ZdryFjyp",
name: "ZdryFjyp",
component: () =>
import(
2025-06-17 20:04:43 +08:00
"@/views/backOfficeSystem/ExcavationResearch/ZdryFjyp/index"
),
2025-04-23 17:56:15 +08:00
meta: {
2025-06-17 20:04:43 +08:00
title: "重点人员深度发掘",
2025-04-23 17:56:15 +08:00
icon: "article"
}
},
{
path: "/LandingAudit",
name: "LandingAudit",
component: () =>
import(
"@/views/backOfficeSystem/ExcavationResearch/LandingAudit/index"
),
2025-04-23 17:56:15 +08:00
meta: {
title: "重点人员落地审核",
icon: "article"
}
},
]
},
{
2025-07-10 20:07:17 +08:00
path: "/JudgmentHome",
name: "JudgmentHome",
2025-05-20 16:10:59 +08:00
redirect: "/ResearchHome",
2025-04-23 17:56:15 +08:00
meta: {
2025-05-19 18:03:57 +08:00
title: "研判首页",
2025-04-23 17:56:15 +08:00
icon: "article"
2025-05-19 18:03:57 +08:00
},
children: [
{
path: "/ResearchHome",
name: "ResearchHome",
2025-07-10 20:37:45 +08:00
component: () => import("@/views/backOfficeSystem/JudgmentHome/ResearchHome/index"),
2025-05-19 18:03:57 +08:00
meta: {
2025-09-20 17:29:35 +08:00
title: "战术研判",
2025-09-12 14:55:05 +08:00
icon: "article"
}
},
2025-09-20 17:29:35 +08:00
2025-09-12 14:55:05 +08:00
{
path: "/situationHome",
name: "situationHome",
component: () => import("@/views/backOfficeSystem/JudgmentHome/situationHome/index"),
meta: {
2025-09-20 17:29:35 +08:00
title: "战略研判",
2025-07-21 17:03:41 +08:00
icon: "article"
}
},
2025-09-07 23:50:16 +08:00
{
path: "/analysisReport",
name: "AnalysisReport",
component: () => import("@/views/backOfficeSystem/AnalysisReport/index"),
meta: {
title: "研判报告",
icon: "article"
}
},
2025-05-19 18:03:57 +08:00
{
path: "/MeetingRoom",
name: "MeetingRoom",
2025-07-10 20:07:17 +08:00
component: () => import("@/views/backOfficeSystem/JudgmentHome/MeetingRoom/index"),
2025-05-19 18:03:57 +08:00
meta: {
title: "网上会商室",
icon: "article"
}
}
2025-05-19 18:03:57 +08:00
]
2025-04-24 10:19:53 +08:00
},
2025-05-21 10:24:02 +08:00
{
path: "/DeploymentDisposal",
name: "DeploymentDisposal",
redirect: "/ResearchHome",
meta: {
title: "全域布控处置",
icon: "article"
},
children: [
2025-09-13 16:57:24 +08:00
{
path: "/BaseLibrary",
name: "BaseLibrary",
component: () => import("@/views/backOfficeSystem/DeploymentDisposal/BaseLibrary/index"),
meta: {
title: "基础库",
icon: "article"
}
},
2025-07-10 20:37:45 +08:00
{
path: "/mpvPeo",
name: "mpvPeo",
2025-08-01 17:16:03 +08:00
component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvPeo/index"),
2025-07-10 20:37:45 +08:00
meta: {
title: "重点人管理",
icon: "article"
}
},
{
path: "/mpvPeoSh",
name: "mpvPeoSh",
2025-08-01 17:16:03 +08:00
component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvPeoSh/index"),
2025-07-10 20:37:45 +08:00
meta: {
title: "重点人审批",
icon: "article"
}
},
2025-05-21 10:24:02 +08:00
{
path: "/mpvGroup",
name: "mpvGroup",
2025-08-01 17:16:03 +08:00
component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvGroup/index"),
2025-05-21 10:24:02 +08:00
meta: {
title: "重点群体管理",
icon: "article"
}
2025-05-21 10:24:02 +08:00
},
{
2025-07-12 17:33:59 +08:00
path: "/mpvGroupSh",
name: "mpvGroupSh",
2025-08-01 17:16:03 +08:00
component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvGroupSh/index"),
meta: {
2025-07-12 17:33:59 +08:00
title: "重点群体审核",
icon: "article"
}
},
2025-07-31 10:38:34 +08:00
{
path: "/mpvCar",
name: "mpvCar",
2025-08-01 17:16:03 +08:00
component: () => import("@/views/backOfficeSystem/DeploymentDisposal/mpvCar/index"),
2025-07-31 10:38:34 +08:00
meta: {
title: "重点车辆管理",
icon: "article"
}
},
2025-05-21 10:24:02 +08:00
]
},
{
path: "/BasicManagement",
name: "BasicManagement",
meta: {
title: "基础管理",
icon: "article"
},
children: [
2025-09-19 23:10:52 +08:00
2025-08-06 14:25:36 +08:00
// {
// path: "/surveillanceControl",
// name: "surveillanceControl",
// component: () =>
// import(
// "@/views/backOfficeSystem/BasicManagement/surveillanceControl/index"
// ),
// meta: {
// title: "布控监视",
// icon: "article"
// }
// },
2025-08-01 17:16:03 +08:00
{
path: "/experienceShare",
name: "experienceShare",
component: () =>
2025-09-20 17:29:35 +08:00
import("@/views/backOfficeSystem/BasicManagement/experienceShare/index"),
2025-08-01 17:16:03 +08:00
meta: {
title: "经验分享",
icon: "article"
}
2025-09-20 17:29:35 +08:00
},
{
path: "/policeReport",
name: "policeReport",
component: () =>import("@/views/backOfficeSystem/policeReport/index.vue"),
2025-08-27 17:26:29 +08:00
meta: {
2025-09-20 17:29:35 +08:00
title: "警情管理",
2025-08-27 17:26:29 +08:00
icon: "article"
}
},
2025-09-07 23:50:16 +08:00
]
}
2025-04-23 17:56:15 +08:00
]
}
];
2025-04-12 14:54:02 +08:00
const router = createRouter({
history: createWebHashHistory(),
routes: publicRoutes
});
//初始化路由表
export function resetRouter() {
2025-04-23 17:56:15 +08:00
if (store.getters?.routeReady && store.getters?.userInfo?.permission?.menus) {
2025-04-12 14:54:02 +08:00
const menus = store.getters.userInfo.permission.menus;
menus.forEach((menu) => {
2025-04-12 14:54:02 +08:00
router.removeRoute(menu);
});
}
}
export default router;