|
@@ -26,15 +26,14 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'console',
|
|
path: 'console',
|
|
|
name: 'DashboardConsole',
|
|
name: 'DashboardConsole',
|
|
|
component: '/dashboard/home/Home',
|
|
component: '/dashboard/home/Home',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '首页',
|
|
title: '首页',
|
|
|
},
|
|
},
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 场景管理
|
|
* 场景管理
|
|
|
*/
|
|
*/
|
|
@@ -42,7 +41,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/scene',
|
|
path: '/scene',
|
|
|
name: 'Scene',
|
|
name: 'Scene',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'ApartmentOutlined',
|
|
icon: 'ApartmentOutlined',
|
|
|
title: '场景管理',
|
|
title: '场景管理',
|
|
|
},
|
|
},
|
|
@@ -52,7 +51,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'template',
|
|
path: 'template',
|
|
|
name: 'SceneTemplate',
|
|
name: 'SceneTemplate',
|
|
|
component: '/templateManage/templateManage',
|
|
component: '/templateManage/templateManage',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '模板管理',
|
|
title: '模板管理',
|
|
|
},
|
|
},
|
|
@@ -62,9 +61,9 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'workshop',
|
|
path: 'workshop',
|
|
|
name: 'SceneWorkshop',
|
|
name: 'SceneWorkshop',
|
|
|
component: '/system-config/scene-manage/SceneManage',
|
|
component: '/system-config/scene-manage/SceneManage',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '车间管理'
|
|
|
|
|
|
|
+ title: '车间管理',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -72,12 +71,12 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'business',
|
|
path: 'business',
|
|
|
name: 'SceneBusiness',
|
|
name: 'SceneBusiness',
|
|
|
component: '/system-config/business-scene/PageBusinessScene',
|
|
component: '/system-config/business-scene/PageBusinessScene',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '业务创建管理',
|
|
title: '业务创建管理',
|
|
|
},
|
|
},
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -87,9 +86,9 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/device',
|
|
path: '/device',
|
|
|
name: 'Device',
|
|
name: 'Device',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'CameraOutlined',
|
|
icon: 'CameraOutlined',
|
|
|
- title: '设备管理'
|
|
|
|
|
|
|
+ title: '设备管理',
|
|
|
},
|
|
},
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
@@ -97,9 +96,9 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'camera',
|
|
path: 'camera',
|
|
|
name: 'DeviceCamera',
|
|
name: 'DeviceCamera',
|
|
|
component: '/cameras/overview/CamerasOverview',
|
|
component: '/cameras/overview/CamerasOverview',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '相机设备'
|
|
|
|
|
|
|
+ title: '相机设备',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -107,12 +106,12 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'nvr',
|
|
path: 'nvr',
|
|
|
name: 'DeviceNVR',
|
|
name: 'DeviceNVR',
|
|
|
component: '/cameras/nvrlist/NvrList',
|
|
component: '/cameras/nvrlist/NvrList',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: 'NVR设备'
|
|
|
|
|
|
|
+ title: 'NVR设备',
|
|
|
},
|
|
},
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -122,7 +121,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/layout',
|
|
path: '/layout',
|
|
|
name: 'Layout',
|
|
name: 'Layout',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'PictureOutlined',
|
|
icon: 'PictureOutlined',
|
|
|
title: '布局管理',
|
|
title: '布局管理',
|
|
|
},
|
|
},
|
|
@@ -132,9 +131,9 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'scene',
|
|
path: 'scene',
|
|
|
name: 'LayoutScene',
|
|
name: 'LayoutScene',
|
|
|
component: '/page-config/PageScene',
|
|
component: '/page-config/PageScene',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '场景布局',
|
|
|
|
|
|
|
+ title: '场景布局',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -146,7 +145,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '场景布局列表',
|
|
title: '场景布局列表',
|
|
|
activeMenu: 'LayoutScene',
|
|
activeMenu: 'LayoutScene',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 公司场景配置页面(菜单不可见)
|
|
// 公司场景配置页面(菜单不可见)
|
|
@@ -157,41 +156,41 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '场景布局配置',
|
|
title: '场景布局配置',
|
|
|
activeMenu: 'LayoutScene',
|
|
activeMenu: 'LayoutScene',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 相机布局入口页,选择PC端还是手机端
|
|
// 相机布局入口页,选择PC端还是手机端
|
|
|
path: 'camera',
|
|
path: 'camera',
|
|
|
name: 'LayoutCamera',
|
|
name: 'LayoutCamera',
|
|
|
component: '/page-config/PageCamera',
|
|
component: '/page-config/PageCamera',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '相机布局',
|
|
title: '相机布局',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 相机布局卡片列表。 菜单不可见
|
|
// 相机布局卡片列表。 菜单不可见
|
|
|
path: 'camera-list',
|
|
path: 'camera-list',
|
|
|
name: 'LayoutCameraList',
|
|
name: 'LayoutCameraList',
|
|
|
component: '/page-config/PageCameraList',
|
|
component: '/page-config/PageCameraList',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '相机布局列表',
|
|
title: '相机布局列表',
|
|
|
activeMenu: 'LayoutCamera',
|
|
activeMenu: 'LayoutCamera',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 相机布局配置
|
|
// 相机布局配置
|
|
|
path: 'camera-config',
|
|
path: 'camera-config',
|
|
|
name: 'LayoutCameraConfig',
|
|
name: 'LayoutCameraConfig',
|
|
|
component: '/map-config/mini-map/MiniMapConfig',
|
|
component: '/map-config/mini-map/MiniMapConfig',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '相机布局配置',
|
|
title: '相机布局配置',
|
|
|
activeMenu: 'LayoutCamera',
|
|
activeMenu: 'LayoutCamera',
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -201,7 +200,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/algorithm',
|
|
path: '/algorithm',
|
|
|
name: 'Algorithm',
|
|
name: 'Algorithm',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'FunctionOutlined',
|
|
icon: 'FunctionOutlined',
|
|
|
title: '算法管理',
|
|
title: '算法管理',
|
|
|
},
|
|
},
|
|
@@ -211,7 +210,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'preview',
|
|
path: 'preview',
|
|
|
name: 'AlgorithmPreview',
|
|
name: 'AlgorithmPreview',
|
|
|
component: '/cameras/algo-management/algoManagement',
|
|
component: '/cameras/algo-management/algoManagement',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '算法预览',
|
|
title: '算法预览',
|
|
|
},
|
|
},
|
|
@@ -221,12 +220,12 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'config',
|
|
path: 'config',
|
|
|
name: 'AlgorithmConfig',
|
|
name: 'AlgorithmConfig',
|
|
|
component: '/cameras/preview/CameraPreview',
|
|
component: '/cameras/preview/CameraPreview',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
ico: '',
|
|
ico: '',
|
|
|
title: '算法配置',
|
|
title: '算法配置',
|
|
|
},
|
|
},
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -236,7 +235,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/user',
|
|
path: '/user',
|
|
|
name: 'User',
|
|
name: 'User',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'UserOutlined',
|
|
icon: 'UserOutlined',
|
|
|
title: '用户管理',
|
|
title: '用户管理',
|
|
|
},
|
|
},
|
|
@@ -246,30 +245,30 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'account',
|
|
path: 'account',
|
|
|
name: 'UserAccount',
|
|
name: 'UserAccount',
|
|
|
component: '/system/user/user',
|
|
component: '/system/user/user',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '账号管理',
|
|
title: '账号管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 角色管理
|
|
// 角色管理
|
|
|
path: 'role',
|
|
path: 'role',
|
|
|
name: 'UserRole',
|
|
name: 'UserRole',
|
|
|
component: '/system/role/role',
|
|
component: '/system/role/role',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '角色管理',
|
|
title: '角色管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 组织管理
|
|
// 组织管理
|
|
|
path: 'department',
|
|
path: 'department',
|
|
|
name: 'UserDepartment',
|
|
name: 'UserDepartment',
|
|
|
component: '/auth/dept/dept',
|
|
component: '/auth/dept/dept',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '组织管理',
|
|
title: '组织管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 岗位管理 (目前不需要)
|
|
// 岗位管理 (目前不需要)
|
|
@@ -278,10 +277,10 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
component: '/auth/post/post',
|
|
component: '/auth/post/post',
|
|
|
meta: {
|
|
meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '岗位管理'
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ title: '岗位管理',
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -291,17 +290,17 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/message',
|
|
path: '/message',
|
|
|
name: 'Message',
|
|
name: 'Message',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'SendOutlined',
|
|
icon: 'SendOutlined',
|
|
|
title: '消息管理',
|
|
title: '消息管理',
|
|
|
},
|
|
},
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
- // 报表推送
|
|
|
|
|
|
|
+ // 报表推送
|
|
|
path: 'report',
|
|
path: 'report',
|
|
|
name: 'MessageReport',
|
|
name: 'MessageReport',
|
|
|
component: '/message/reportmessage/ReportMessage',
|
|
component: '/message/reportmessage/ReportMessage',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '报表推送',
|
|
title: '报表推送',
|
|
|
},
|
|
},
|
|
@@ -311,7 +310,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'report-config',
|
|
path: 'report-config',
|
|
|
name: 'MessageReportConfig',
|
|
name: 'MessageReportConfig',
|
|
|
component: '/message/reportmessage/ReportOperation',
|
|
component: '/message/reportmessage/ReportOperation',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '报表推送配置',
|
|
title: '报表推送配置',
|
|
|
activeMenu: 'MessageReport',
|
|
activeMenu: 'MessageReport',
|
|
@@ -322,7 +321,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'alarm',
|
|
path: 'alarm',
|
|
|
name: 'MessageAlarm',
|
|
name: 'MessageAlarm',
|
|
|
component: '/message/alarmMessages/alarmMessages',
|
|
component: '/message/alarmMessages/alarmMessages',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '报警推送',
|
|
title: '报警推送',
|
|
|
},
|
|
},
|
|
@@ -332,7 +331,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'alarm-config',
|
|
path: 'alarm-config',
|
|
|
name: 'MessageAlarmConfig',
|
|
name: 'MessageAlarmConfig',
|
|
|
component: '/message/alarm-config/AlarmConfig',
|
|
component: '/message/alarm-config/AlarmConfig',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '报警推送配置',
|
|
title: '报警推送配置',
|
|
|
activeMenu: 'MessageAlarm',
|
|
activeMenu: 'MessageAlarm',
|
|
@@ -343,7 +342,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'sys-notification',
|
|
path: 'sys-notification',
|
|
|
name: 'MessageSysNotification',
|
|
name: 'MessageSysNotification',
|
|
|
component: '/message/systemNotifications/systemNotifications',
|
|
component: '/message/systemNotifications/systemNotifications',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '系统通知',
|
|
title: '系统通知',
|
|
|
},
|
|
},
|
|
@@ -353,24 +352,33 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'sys-notification-config',
|
|
path: 'sys-notification-config',
|
|
|
name: 'MessageSysNotificationConfig',
|
|
name: 'MessageSysNotificationConfig',
|
|
|
component: '/message/sysnotion-config/SysnotionConfig',
|
|
component: '/message/sysnotion-config/SysnotionConfig',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '系统通知配置',
|
|
title: '系统通知配置',
|
|
|
activeMenu: 'MessageSysNotification',
|
|
activeMenu: 'MessageSysNotification',
|
|
|
},
|
|
},
|
|
|
- },
|
|
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
// 人员分组
|
|
// 人员分组
|
|
|
path: 'personnel-group',
|
|
path: 'personnel-group',
|
|
|
name: 'MessagePersonnelGroup',
|
|
name: 'MessagePersonnelGroup',
|
|
|
component: '/message/persongroup/UserGroup',
|
|
component: '/message/persongroup/UserGroup',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '人员分组',
|
|
title: '人员分组',
|
|
|
},
|
|
},
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ // 问题处理通知
|
|
|
|
|
+ path: 'question-notification',
|
|
|
|
|
+ name: 'MessageQuestionNotification',
|
|
|
|
|
+ component: '/message/question-notifications/QuestionNotifications',
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ icon: '',
|
|
|
|
|
+ title: '问题处理通知',
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -392,8 +400,8 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
component: '/datamanager/platformdata/PlatformData',
|
|
component: '/datamanager/platformdata/PlatformData',
|
|
|
meta: {
|
|
meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '平台统计'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ title: '平台统计',
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 历史视频 (视频回看)
|
|
// 历史视频 (视频回看)
|
|
@@ -402,8 +410,8 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
component: '/datamanager/playback/Playback',
|
|
component: '/datamanager/playback/Playback',
|
|
|
meta: {
|
|
meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '历史视频'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ title: '历史视频',
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 违规问题
|
|
// 违规问题
|
|
@@ -412,10 +420,10 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
component: '/datamanager/alertformdata/AlertformData',
|
|
component: '/datamanager/alertformdata/AlertformData',
|
|
|
meta: {
|
|
meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
- title: '违规问题'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ title: '违规问题',
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -425,7 +433,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: '/system',
|
|
path: '/system',
|
|
|
name: 'System',
|
|
name: 'System',
|
|
|
component: 'LAYOUT',
|
|
component: 'LAYOUT',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: 'OptionsSharp',
|
|
icon: 'OptionsSharp',
|
|
|
title: '系统管理',
|
|
title: '系统管理',
|
|
|
},
|
|
},
|
|
@@ -435,40 +443,40 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
path: 'tenant',
|
|
path: 'tenant',
|
|
|
name: 'SystemTenant',
|
|
name: 'SystemTenant',
|
|
|
component: '/system/tenant/tenant',
|
|
component: '/system/tenant/tenant',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '租户管理',
|
|
title: '租户管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 菜单管理
|
|
// 菜单管理
|
|
|
path: 'menu',
|
|
path: 'menu',
|
|
|
name: 'SystemMenu',
|
|
name: 'SystemMenu',
|
|
|
component: '/system/menu/menu',
|
|
component: '/system/menu/menu',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '菜单管理',
|
|
title: '菜单管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 权限管理
|
|
// 权限管理
|
|
|
path: 'permission',
|
|
path: 'permission',
|
|
|
name: 'SystemPermission',
|
|
name: 'SystemPermission',
|
|
|
component: '/system/permssion/PagePermission',
|
|
component: '/system/permssion/PagePermission',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '权限管理',
|
|
title: '权限管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 意见反馈
|
|
// 意见反馈
|
|
|
path: 'feedback',
|
|
path: 'feedback',
|
|
|
name: 'SystemFeedback',
|
|
name: 'SystemFeedback',
|
|
|
component: '/feedback/feedback',
|
|
component: '/feedback/feedback',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '意见反馈',
|
|
title: '意见反馈',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 反馈处理 (菜单不可见)
|
|
// 反馈处理 (菜单不可见)
|
|
@@ -479,34 +487,34 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '反馈处理',
|
|
title: '反馈处理',
|
|
|
activeMenu: 'SystemFeedback',
|
|
activeMenu: 'SystemFeedback',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 字典管理
|
|
// 字典管理
|
|
|
path: 'dictionary',
|
|
path: 'dictionary',
|
|
|
name: 'SystemDictionary',
|
|
name: 'SystemDictionary',
|
|
|
component: '/system/dictionary/dictionary',
|
|
component: '/system/dictionary/dictionary',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '字典管理',
|
|
title: '字典管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
// 系统管理
|
|
// 系统管理
|
|
|
path: 'log',
|
|
path: 'log',
|
|
|
name: 'SystemLog',
|
|
name: 'SystemLog',
|
|
|
component: '/system/log/log',
|
|
component: '/system/log/log',
|
|
|
- meta: {
|
|
|
|
|
|
|
+ meta: {
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '日志管理',
|
|
title: '日志管理',
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 异常页面
|
|
|
|
|
- */
|
|
|
|
|
|
|
+ * 异常页面
|
|
|
|
|
+ */
|
|
|
{
|
|
{
|
|
|
path: '/exception',
|
|
path: '/exception',
|
|
|
name: 'Exception',
|
|
name: 'Exception',
|
|
@@ -514,7 +522,7 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
redirect: '/exception/403',
|
|
redirect: '/exception/403',
|
|
|
meta: {
|
|
meta: {
|
|
|
icon: 'ExclamationCircleOutlined',
|
|
icon: 'ExclamationCircleOutlined',
|
|
|
- title: '异常页面',
|
|
|
|
|
|
|
+ title: '异常页面',
|
|
|
},
|
|
},
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
@@ -544,13 +552,11 @@ const fullRoutes: AppRouteRecordRaw[] = [
|
|
|
icon: '',
|
|
icon: '',
|
|
|
title: '500',
|
|
title: '500',
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
] as const;
|
|
] as const;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 类型定义。避免与已有的定义冲突,避免与 vue-router的类型定义冲突,前面加 _ 前缀
|
|
* 类型定义。避免与已有的定义冲突,避免与 vue-router的类型定义冲突,前面加 _ 前缀
|
|
|
*/
|
|
*/
|
|
@@ -565,10 +571,10 @@ export type _RouteViewTree = _RouteView[];
|
|
|
* 获取指定 父路由 下的子路由。
|
|
* 获取指定 父路由 下的子路由。
|
|
|
* 若 父级路由 未指定,则返回一级路由
|
|
* 若 父级路由 未指定,则返回一级路由
|
|
|
*/
|
|
*/
|
|
|
-export function getChildRoutesView(parentRouteName?: string | null ): _RouteViewItem[] {
|
|
|
|
|
|
|
+export function getChildRoutesView(parentRouteName?: string | null): _RouteViewItem[] {
|
|
|
// 未指定 parentRouteName, 则返回 level1 的路由
|
|
// 未指定 parentRouteName, 则返回 level1 的路由
|
|
|
if (parentRouteName == null) {
|
|
if (parentRouteName == null) {
|
|
|
- return fullRoutes.map(route => ({
|
|
|
|
|
|
|
+ return fullRoutes.map((route) => ({
|
|
|
label: route.meta.title as string,
|
|
label: route.meta.title as string,
|
|
|
value: route.name,
|
|
value: route.name,
|
|
|
}));
|
|
}));
|
|
@@ -577,7 +583,7 @@ export function getChildRoutesView(parentRouteName?: string | null ): _RouteView
|
|
|
// 获取指定父路由的子路由
|
|
// 获取指定父路由的子路由
|
|
|
const parentRoute: AppRouteRecordRaw = cloneDeep(getTreeItem(fullRoutes, parentRouteName, 'name'));
|
|
const parentRoute: AppRouteRecordRaw = cloneDeep(getTreeItem(fullRoutes, parentRouteName, 'name'));
|
|
|
if (parentRoute.children && parentRoute.children.length > 0) {
|
|
if (parentRoute.children && parentRoute.children.length > 0) {
|
|
|
- return parentRoute.children.map(route => ({
|
|
|
|
|
|
|
+ return parentRoute.children.map((route) => ({
|
|
|
label: route.meta.title as string,
|
|
label: route.meta.title as string,
|
|
|
value: route.name,
|
|
value: route.name,
|
|
|
}));
|
|
}));
|
|
@@ -600,12 +606,12 @@ export function transformToRouteViewTree(routes?: AppRouteRecordRaw[] | null) {
|
|
|
const tree: _RouteViewTree = [];
|
|
const tree: _RouteViewTree = [];
|
|
|
if (routes == null) return tree;
|
|
if (routes == null) return tree;
|
|
|
|
|
|
|
|
- for(const route of routes) {
|
|
|
|
|
|
|
+ for (const route of routes) {
|
|
|
const treeItem: _RouteView = {
|
|
const treeItem: _RouteView = {
|
|
|
value: route.name,
|
|
value: route.name,
|
|
|
label: route.meta.title as string,
|
|
label: route.meta.title as string,
|
|
|
- children: null
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ children: null,
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
if (route.children && route.children.length > 0) {
|
|
if (route.children && route.children.length > 0) {
|
|
|
treeItem.children = transformToRouteViewTree(route.children);
|
|
treeItem.children = transformToRouteViewTree(route.children);
|
|
@@ -614,8 +620,8 @@ export function transformToRouteViewTree(routes?: AppRouteRecordRaw[] | null) {
|
|
|
tree.push(treeItem);
|
|
tree.push(treeItem);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return tree;
|
|
return tree;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const routeViewTree = transformToRouteViewTree(fullRoutes);
|
|
|
|
|
|
|
+export const routeViewTree = transformToRouteViewTree(fullRoutes);
|