|
|
@@ -50,7 +50,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '总览',
|
|
|
},
|
|
|
- name: '/disaster-prevention/overview',
|
|
|
+ name: 'disaster-prevention-overview',
|
|
|
parentId: 1022,
|
|
|
path: 'overview',
|
|
|
redirect: '',
|
|
|
@@ -70,7 +70,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '重点区域监测',
|
|
|
},
|
|
|
- name: '/disaster-prevention/risk-point-monitoring',
|
|
|
+ name: 'risk-point-monitoring',
|
|
|
parentId: 1022,
|
|
|
path: 'risk-point-monitoring',
|
|
|
redirect: '',
|
|
|
@@ -92,7 +92,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '预警信息',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-warning/warning-info',
|
|
|
+ name: 'disaster-warning/warning-info',
|
|
|
parentId: 1027,
|
|
|
path: 'warning-info',
|
|
|
redirect: '',
|
|
|
@@ -112,7 +112,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '防御通知',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-warning/defense-notice',
|
|
|
+ name: 'disaster-warning/defense-notice',
|
|
|
parentId: 1027,
|
|
|
path: 'defense-notice',
|
|
|
redirect: '',
|
|
|
@@ -132,7 +132,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '防御通知详情',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-warning/defense-notice-item',
|
|
|
+ name: 'defense-notice-item',
|
|
|
parentId: 1027,
|
|
|
path: 'defense-notice-item',
|
|
|
redirect: '',
|
|
|
@@ -152,7 +152,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '灾害预警',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-warning',
|
|
|
+ name: 'disaster-warning',
|
|
|
parentId: 1022,
|
|
|
path: 'disaster-warning',
|
|
|
redirect: '',
|
|
|
@@ -174,7 +174,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '任务管理',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-precaution/task-management',
|
|
|
+ name: 'disaster-precaution-task-management',
|
|
|
parentId: 1028,
|
|
|
path: 'task-management',
|
|
|
redirect: '',
|
|
|
@@ -194,7 +194,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '任务列表详情',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-precaution/task-item',
|
|
|
+ name: 'disaster-precaution-task-item',
|
|
|
parentId: 1028,
|
|
|
path: 'task-item',
|
|
|
redirect: '',
|
|
|
@@ -214,7 +214,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '任务执行',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-precaution/task-execution',
|
|
|
+ name: 'disaster-precaution-task-execution',
|
|
|
parentId: 1028,
|
|
|
path: 'task-execution',
|
|
|
redirect: '',
|
|
|
@@ -234,7 +234,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '任务模板',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-precaution/task-template',
|
|
|
+ name: 'disaster-precaution-task-template',
|
|
|
parentId: 1028,
|
|
|
path: 'task-template',
|
|
|
redirect: '',
|
|
|
@@ -254,7 +254,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '任务模板详情',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-precaution/template-detail',
|
|
|
+ name: 'disaster-precaution-template-detail',
|
|
|
parentId: 1028,
|
|
|
path: 'template-detail/:id',
|
|
|
redirect: '',
|
|
|
@@ -277,7 +277,7 @@ export const disasterPreventionRoute = {
|
|
|
// DisasterWarningIcon: renderSvg('disaster-warning'),
|
|
|
// DisasterControlIcon: renderSvg('disaster-control'),
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-precaution',
|
|
|
+ name: 'disaster-precaution',
|
|
|
parentId: 1022,
|
|
|
path: 'disaster-precaution',
|
|
|
redirect: '',
|
|
|
@@ -297,7 +297,7 @@ export const disasterPreventionRoute = {
|
|
|
query: '',
|
|
|
title: '灾害处置',
|
|
|
},
|
|
|
- name: '/disaster-prevention/disaster-control',
|
|
|
+ name: 'disaster-control',
|
|
|
parentId: 1022,
|
|
|
path: 'disaster-control',
|
|
|
redirect: '',
|
|
|
@@ -379,103 +379,155 @@ export const userRoutes: AppRouteRecordRaw =
|
|
|
],
|
|
|
};
|
|
|
|
|
|
-export const systemRoutes =
|
|
|
- /**
|
|
|
- * 系统管理 (只有超管可见)
|
|
|
- */
|
|
|
- {
|
|
|
- path: '/system',
|
|
|
- name: 'System',
|
|
|
- component: 'MENU_LAYOUT',
|
|
|
- meta: {
|
|
|
- icon: 'OptionsSharp',
|
|
|
- title: '系统管理',
|
|
|
- },
|
|
|
- redirect: 'SystemMenu',
|
|
|
- children: [
|
|
|
- {
|
|
|
- // 租户管理
|
|
|
- path: 'tenant',
|
|
|
- name: 'SystemTenant',
|
|
|
- component: '/system/tenant/tenant',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '租户管理',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- // 菜单管理
|
|
|
- path: 'menu',
|
|
|
- name: 'SystemMenu',
|
|
|
- component: '/system/menu/menu',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '菜单管理',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- // 权限管理
|
|
|
- path: 'permission',
|
|
|
- name: 'SystemPermission',
|
|
|
- component: '/system/permssion/PagePermission',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '权限管理',
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- // 权限管理
|
|
|
- path: 'comments',
|
|
|
- name: 'SystemComments',
|
|
|
- component: '/system/comments/PageCommentsManage',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '评论管理',
|
|
|
- },
|
|
|
+// export const systemRoutesOld =
|
|
|
+// /**
|
|
|
+// * 系统管理 (只有超管可见)
|
|
|
+// */
|
|
|
+// {
|
|
|
+// path: '/system',
|
|
|
+// name: 'System',
|
|
|
+// component: 'MENU_LAYOUT',
|
|
|
+// meta: {
|
|
|
+// icon: 'OptionsSharp',
|
|
|
+// title: '系统管理',
|
|
|
+// },
|
|
|
+// redirect: 'SystemMenu',
|
|
|
+// children: [
|
|
|
+// {
|
|
|
+// // 租户管理
|
|
|
+// path: 'tenant',
|
|
|
+// name: 'SystemTenant',
|
|
|
+// component: '/system/tenant/tenant',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '租户管理',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// {
|
|
|
+// // 菜单管理
|
|
|
+// path: 'menu',
|
|
|
+// name: 'SystemMenu',
|
|
|
+// component: '/system/menu/menu',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '菜单管理',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// {
|
|
|
+// // 权限管理
|
|
|
+// path: 'permission',
|
|
|
+// name: 'SystemPermission',
|
|
|
+// component: '/system/permssion/PagePermission',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '权限管理',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// {
|
|
|
+// // 权限管理
|
|
|
+// path: 'comments',
|
|
|
+// name: 'SystemComments',
|
|
|
+// component: '/system/comments/PageCommentsManage',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '评论管理',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// {
|
|
|
+// // 意见反馈
|
|
|
+// path: 'feedback',
|
|
|
+// name: 'SystemFeedback',
|
|
|
+// component: '/feedback/feedback',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '意见反馈',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// {
|
|
|
+// // 反馈处理 。意见反馈的二级页面。菜单不可见!!!
|
|
|
+// path: 'feedback-handle',
|
|
|
+// name: 'SystemFeedbackHandle',
|
|
|
+// component: '/feedback/handleFeedback',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '反馈处理',
|
|
|
+// activeMenu: 'SystemFeedback',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// // {
|
|
|
+// // // 字典管理 (暂时用不到)
|
|
|
+// // path: 'dictionary',
|
|
|
+// // name: 'SystemDictionary',
|
|
|
+// // component: '/system/dictionary/dictionary',
|
|
|
+// // meta: {
|
|
|
+// // icon: '',
|
|
|
+// // title: '字典管理',
|
|
|
+// // },
|
|
|
+// // },
|
|
|
+// {
|
|
|
+// // 日志管理
|
|
|
+// path: 'log',
|
|
|
+// name: 'SystemLog',
|
|
|
+// component: '/system/log/log',
|
|
|
+// meta: {
|
|
|
+// icon: '',
|
|
|
+// title: '日志管理',
|
|
|
+// },
|
|
|
+// },
|
|
|
+// ],
|
|
|
+// };
|
|
|
+
|
|
|
+/** 平台管理 */
|
|
|
+export const platformRoutes = {
|
|
|
+ path: '/platform',
|
|
|
+ name: 'Platform',
|
|
|
+ component: 'MENU_LAYOUT',
|
|
|
+ meta: {
|
|
|
+ icon: '',
|
|
|
+ title: '平台管理',
|
|
|
+ },
|
|
|
+ redirect: '',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'user',
|
|
|
+ name: 'User',
|
|
|
+ meta: {
|
|
|
+ icon: 'UserOutlined',
|
|
|
+ title: '用户管理',
|
|
|
},
|
|
|
- {
|
|
|
- // 意见反馈
|
|
|
- path: 'feedback',
|
|
|
- name: 'SystemFeedback',
|
|
|
- component: '/feedback/feedback',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '意见反馈',
|
|
|
- },
|
|
|
+ children: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // 菜单管理
|
|
|
+ path: 'menu',
|
|
|
+ name: 'SystemMenu',
|
|
|
+ component: '/system/menu/menu',
|
|
|
+ meta: {
|
|
|
+ icon: 'UserOutlined',
|
|
|
+ title: '菜单管理',
|
|
|
},
|
|
|
- {
|
|
|
- // 反馈处理 。意见反馈的二级页面。菜单不可见!!!
|
|
|
- path: 'feedback-handle',
|
|
|
- name: 'SystemFeedbackHandle',
|
|
|
- component: '/feedback/handleFeedback',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '反馈处理',
|
|
|
- activeMenu: 'SystemFeedback',
|
|
|
- },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // 权限管理
|
|
|
+ path: 'permission',
|
|
|
+ name: 'SystemPermission',
|
|
|
+ component: '/system/permission/PagePermission',
|
|
|
+ meta: {
|
|
|
+ icon: 'UserOutlined',
|
|
|
+ title: '权限管理',
|
|
|
},
|
|
|
- // {
|
|
|
- // // 字典管理 (暂时用不到)
|
|
|
- // path: 'dictionary',
|
|
|
- // name: 'SystemDictionary',
|
|
|
- // component: '/system/dictionary/dictionary',
|
|
|
- // meta: {
|
|
|
- // icon: '',
|
|
|
- // title: '字典管理',
|
|
|
- // },
|
|
|
- // },
|
|
|
- {
|
|
|
- // 日志管理
|
|
|
- path: 'log',
|
|
|
- name: 'SystemLog',
|
|
|
- component: '/system/log/log',
|
|
|
- meta: {
|
|
|
- icon: '',
|
|
|
- title: '日志管理',
|
|
|
- },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'dictionary',
|
|
|
+ name: 'SystemDictionary',
|
|
|
+ component: '/system/dictionary/dictionary',
|
|
|
+ meta: {
|
|
|
+ icon: 'UserOutlined',
|
|
|
+ title: '字典管理',
|
|
|
},
|
|
|
- ],
|
|
|
- };
|
|
|
+ },
|
|
|
+ ],
|
|
|
+};
|
|
|
|
|
|
export const exceptionRouters =
|
|
|
/**
|
|
|
@@ -520,7 +572,8 @@ export const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
|
|
|
userRoutes,
|
|
|
|
|
|
- systemRoutes,
|
|
|
+ // systemRoutes,
|
|
|
+ platformRoutes,
|
|
|
|
|
|
/**
|
|
|
* 消息管理
|