Files
sgxt_web/src/router/index.js

422 lines
13 KiB
JavaScript
Raw Normal View History

2025-04-12 14:54:02 +08:00
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: "/login",
name:'login',
component: () => import("@/views/login/index")
},
{
path: "/",
name:'home',
component: () => import("@/views/home/index") //系统登录
},
2025-04-15 18:22:42 +08:00
{
path: "/KeyPopulations",
name:'KeyPopulations',
component: () => import("@/views/KeyPopulations/index") //系统登录
},
2025-04-12 14:54:02 +08:00
{
path: "/editPassword",// 注意:带有路径“/”的记录中的组件“默认”是一个不返回 Promise 的函数
component: layout,
2025-04-15 14:50:51 +08:00
redirect: "/IdentityManage",
2025-04-12 14:54:02 +08:00
children: [
{
2025-04-14 11:32:57 +08:00
path: "/FourColorWarning",
name: "FourColorWarning",
2025-04-12 23:51:24 +08:00
meta: { title: "四色预警管理", icon: "article" },
2025-04-12 14:54:02 +08:00
children: [
{
2025-04-12 23:51:24 +08:00
path: "/IdentityManage",
name: "IdentityManage",
2025-04-14 11:32:57 +08:00
component: () => import("@/views/backOfficeSystem/fourColorManage/IdentityManage/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-12 23:51:24 +08:00
title: "身份标签管理",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
{
2025-04-12 23:51:24 +08:00
path: "/tagManage",
name: "tagManage",
2025-04-14 11:32:57 +08:00
component: () => import("@/views/backOfficeSystem/fourColorManage/tagManage/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-12 23:51:24 +08:00
title: "标签组合管理",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
2025-04-14 19:48:42 +08:00
{
path: "/BehaviorLabels",
name: "BehaviorLabels",
component: () => import("@/views/backOfficeSystem/fourColorManage/BehaviorLabels/index"),
meta: {
title: "行为标签管理",
icon: "article"
}
},
2025-04-12 14:54:02 +08:00
],
},
2025-04-14 19:48:42 +08:00
2025-04-12 14:54:02 +08:00
{
2025-04-14 19:48:42 +08:00
path: "/IntelligentControl",
name: "IntelligentControl",
meta: { title: "智能布控", icon: "article" },
2025-04-12 14:54:02 +08:00
children: [
{
2025-04-14 19:48:42 +08:00
path: "/warningControl",
name: "warningControl",
component: () => import("@/views/backOfficeSystem/IntelligentControl/warningControl/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-14 19:48:42 +08:00
title: "预警布控",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
{
2025-04-14 19:48:42 +08:00
path: "/myControl",
name: "myControl",
component: () => import("@/views/backOfficeSystem/IntelligentControl/myControl/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-14 19:48:42 +08:00
title: "我的布控",
2025-04-12 14:54:02 +08:00
icon: "article"
}
2025-04-14 19:48:42 +08:00
},
{
path: "/ControlApproval",
name: "ControlApproval",
component: () => import("@/views/backOfficeSystem/IntelligentControl/ControlApproval/index"),
meta: {
title: "布控审批",
icon: "article"
}
},
2025-04-12 14:54:02 +08:00
]
},
{
2025-04-16 23:06:01 +08:00
path: "/ResearchJudgment",
name: "ResearchJudgment",
meta: { title: "线索研判盯办系统", icon: "article" },
2025-04-12 14:54:02 +08:00
children: [
{
2025-04-16 23:06:01 +08:00
path: "/DatAcquisition",
name: "DatAcquisition",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-16 23:06:01 +08:00
title: "情报数据采集",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
{
2025-04-16 23:06:01 +08:00
path: "/MoralAnalysis",
name: "MoralAnalysis",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-16 23:06:01 +08:00
title: "情报语义分析",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
{
2025-04-16 23:06:01 +08:00
path: "/IntelligenceManagement",
name: "IntelligenceManagement",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-16 23:06:01 +08:00
title: "情报管理",
icon: "article"
}
},
{
path: "/InformationFlows",
name: "InformationFlows",
meta: { title: "情报流转", icon: "article" },
redirect: "/InformationFlow",
children: [
{
path: "/InformationFlow",
name: "InformationFlow",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/InformationFlow/index"),
meta: {
title: "情报信息流转",
icon: "article"
}
},
{
path: "/InstructionInformation",
name: "InstructionInformation",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/InstructionInformation/index"),
meta: {
title: "指令信息",
icon: "article"
}
},
{
path: "/StatisticalAnalysis",
name: "StatisticalAnalysis",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/InformationFlows/StatisticalAnalysis/index"),
meta: {
title: "情报统计分析",
icon: "article"
}
},
]
},
{
path: "/RecordsOperations",
name: "RecordsOperations",
component: () => import("@/views/backOfficeSystem/ResearchJudgment/RecordsOperations/index"),
meta: {
title: "操作记录",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
],
},
{
2025-04-17 11:19:14 +08:00
path: "/HumanIntelligence",
name: "HumanIntelligence",
meta: { title: "人力情报采集管理系统", icon: "article" },
2025-04-12 14:54:02 +08:00
children: [
{
2025-04-17 11:19:14 +08:00
path: "/RlStatisticalAnalysis",
name: "RlStatisticalAnalysis",
component: () => import("@/views/backOfficeSystem/HumanIntelligence/RlStatisticalAnalysis/index"),
meta: {
title: "人力情报统计分析",
icon: "article"
}
},
{
path: "/CollectCrculate",
name: "CollectCrculate",
component: () => import("@/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-17 11:19:14 +08:00
title: "人力情报信息采集流转",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
{
2025-04-17 11:19:14 +08:00
path: "/TaskScheduling",
name: "TaskScheduling",
component: () => import("@/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index"),
2025-04-12 14:54:02 +08:00
meta: {
2025-04-17 11:19:14 +08:00
title: "人力情报信息搜索任务调度",
icon: "article"
}
},
{
path: "/ConstructionManagement",
name: "ConstructionManagement",
component: () => import("@/views/backOfficeSystem/HumanIntelligence/ConstructionManagement/index"),
meta: {
title: "社会信息人员建设管理",
2025-04-12 14:54:02 +08:00
icon: "article"
}
},
],
},
2025-04-17 11:19:14 +08:00
//
2025-04-12 14:54:02 +08:00
{
path: "/3DPrinting",
name: "3DPrinting",
meta: { title: "3D打印业", icon: "article" },
children: [
{
path: "/CSGL",
name: "CSGL",
component: () => import("@/views/backOfficeSystem/3DPrinting/CSGL/index"),
meta: {
title: "3D打印业场所管理",
icon: "article"
}
},
{
path: "/YWXXGL",
name: "YWXXGL",
component: () => import("@/views/backOfficeSystem/3DPrinting/YWXXGL/index"),
meta: {
title: "3D打印业务信息管理",
icon: "article"
}
},
],
},
{
path: "/CivilExplosives",
name: "CivilExplosives",
meta: { title: "民爆业务", icon: "article" },
children: [
{
path: "/BlastingAccidents",
name: "BlastingAccidents",
component: () => import("@/views/backOfficeSystem/CivilExplosives/BlastingAccidents/index"),
meta: {
title: "爆破事故登记信息",
icon: "article"
}
},
{
path: "/BlastingOperations",
name: "BlastingOperations",
component: () => import("@/views/backOfficeSystem/CivilExplosives/BlastingOperations/index"),
meta: {
title: "爆破作业项目信息",
icon: "article"
}
},
{
path: "/ExplosionAccidents",
name: "ExplosionAccidents",
component: () => import("@/views/backOfficeSystem/CivilExplosives/ExplosionAccidents/index"),
meta: {
title: "爆炸事故单位信息",
icon: "article"
}
},
{
path: "/PersonnelInformation",
name: "PersonnelInformation",
component: () => import("@/views/backOfficeSystem/CivilExplosives/PersonnelInformation/index"),
meta: {
title: "爆炸事故人员信息",
icon: "article"
}
},
{
path: "/ExplosivesRelated",
name: "ExplosivesRelated",
component: () => import("@/views/backOfficeSystem/CivilExplosives/ExplosivesRelated/index"),
meta: {
title: "涉爆从业单位",
icon: "article"
}
},
{
path: "/Illegal",
name: "Illegal",
component: () => import("@/views/backOfficeSystem/CivilExplosives/Illegal/index"),
meta: {
title: "涉爆违章项目信息",
icon: "article"
}
},
{
path: "/KeyPersonnel",
name: "KeyPersonnel",
component: () => import("@/views/backOfficeSystem/CivilExplosives/KeyPersonnel/index"),
meta: {
title: "涉爆重点人员",
icon: "article"
}
},
{
path: "/SuspensionInfo",
name: "SuspensionInfo",
component: () => import("@/views/backOfficeSystem/CivilExplosives/SuspensionInfo/index"),
meta: {
title: "停产停业信息",
icon: "article"
}
},
{
path: "/ViolationRegistration",
name: "ViolationRegistration",
component: () => import("@/views/backOfficeSystem/CivilExplosives/ViolationRegistration/index"),
meta: {
title: "违章登记信息",
icon: "article"
}
},
{
path: "/ViolationPersonnel",
name: "ViolationPersonnel",
component: () => import("@/views/backOfficeSystem/CivilExplosives/ViolationPersonnel/index"),
meta: {
title: "违章人员信息",
icon: "article"
}
},
{
path: "/Warehouse",
name: "Warehouse",
component: () => import("@/views/backOfficeSystem/CivilExplosives/Warehouse/index"),
meta: {
title: "库房管理",
icon: "article"
}
},
],
},
{
path: "/ThriftTrading",
name: "ThriftTrading",
meta: { title: "旧货交易", icon: "article" },
children: [
{
path: "/TradeTtems",
name: "TradeTtems",
component: () => import("@/views/backOfficeSystem/ThriftTrading/TradeTtems/index"),
meta: {
title: "交易物品信息管理",
icon: "article"
}
},
{
path: "/TradingVenues",
name: "TradingVenues",
component: () => import("@/views/backOfficeSystem/ThriftTrading/TradingVenues/index"),
meta: {
title: "旧货交易业场所管理",
icon: "article"
}
},
{
path: "/TradingBusiness",
name: "TradingBusiness",
component: () => import("@/views/backOfficeSystem/ThriftTrading/TradingBusiness/index"),
meta: {
title: "旧货交易业务信息管理",
icon: "article"
}
},
],
},
]},
];
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;