You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

333 lines
8.2 KiB
TypeScript

/**
* @name umi
* @description path,components,routes,redirect,wrappers,name,icon
* @param path path :id *
* @param components location path React src/pages
* @param routes layout 使
* @param redirect
* @param wrappers
* @param name menu.ts menu.xxxx name login menu.ts menu.login
* @param icon https://ant.design/components/icon-cn 注意去除风格后缀和大小写,如想要配置图标为 <StepBackwardOutlined /> 则取值应为 stepBackward 或 StepBackward如想要配置图标为 <UserOutlined /> 则取值应为 user 或者 User
* @doc https://umijs.org/docs/guides/routes
*/
export default [
{
path: '/user',
layout: false,
routes: [
{
name: 'login',
path: '/user/login',
component: './User/Login/index1',
},
],
},
{
path: '/welcome',
name: 'welcome',
component: 'Welcome/Welcome',
},
{
path: '/admin',
name: 'admin',
access: 'canAdmin',
routes: [
{
path: '/admin',
redirect: '/admin/sub-page',
},
{
path: '/admin/sub-page',
name: 'sub-page',
component: './Admin',
},
],
},
{
path: '/system',
name: 'system',
routes: [
{
name: 'api-list',
path: '/system/api-list',
component: 'System/ApiList',
access: 'canReadMenu',
},
{
name: 'menu-list',
path: '/system/menu-list',
component: 'System/MenuList',
access: 'canReadMenu',
},
{
name: 'role-list',
path: '/system/role-list',
component: 'System/RoleList',
access: 'canReadMenu',
},
{
name: 'user-list',
path: '/system/user-list',
component: 'System/UserList',
access: 'canReadMenu',
},
{
name: 'post-list',
path: '/system/post-list',
component: 'System/PostList',
access: 'canReadMenu',
},
{
name: 'department-list',
path: '/system/department-list',
component: 'System/DepartmentList',
access: 'canReadMenu',
},
{
name: 'operation_record-list',
path: '/system/operation_record-list',
component: 'System/OperationRecordList',
access: 'canReadMenu',
},
],
},
{
name: 'device',
path: '/device',
routes: [
{
name: 'device-list',
path: '/device/device-list',
component: 'Device/DeviceList',
access: 'canReadMenu',
},
{
name: 'device-category-list',
path: '/device/device-category-list',
component: 'Device/DeviceCategoryList',
access: 'canReadMenu',
},
{
name: 'device-group-list',
path: '/device/device-group-list',
component: 'Device/DeviceGroupList',
access: 'canReadMenu',
},
{
name: 'device-relation-list',
path: '/device/device-relation-list',
component: 'Device/DeviceRelationList',
access: 'canReadMenu',
},
],
},
{
name: 'DCSDevice',
path: '/DCSDevice',
routes: [
{
name: 'DCSDevice-device-group-list',
path: '/DCSDevice/device-group-list',
component: 'DCSDevice/DeviceGroupList',
access: 'canReadMenu',
},
{
name: 'DCSDevice-device-category-list',
path: '/DCSDevice/device-category-list',
component: 'DCSDevice/DeviceCategoryList',
access: 'canReadMenu',
},
{
name: 'DCSDevice-device-list',
path: '/DCSDevice/device-list',
component: 'DCSDevice/DeviceList',
access: 'canReadMenu',
},
{
name: 'DCSDevice-device-status',
path: '/DCSDevice/device-status',
component: 'DCSDevice/DeviceStatus',
access: 'canReadMenu',
},
],
},
{
name: 'resource',
path: '/resource',
routes: [
{
name: 'algorithm-model-list',
path: '/resource/algorithm-model-list',
component: 'Resource/AlgorithmModelList',
access: 'canReadMenu',
},
{
name: 'algorithm-model-detail',
path: '/resource/algorithm-model-detail/:id',
component: 'Resource/AlgorithmModelList/detail',
access: 'canReadMenu',
isHideTab: true,
},
{
name: 'business-image-list',
path: '/resource/business-image-list',
component: 'Resource/BusinessImageList',
access: 'canReadMenu',
},
{
name: 'model-category-list',
path: '/resource/model-category-list',
component: 'Resource/ModelCategoryList',
access: 'canReadMenu',
},
{
name: 'model-image-list',
path: '/resource/model-image-list',
component: 'Resource/ModelImageList',
access: 'canReadMenu',
},
{
name: 'model-version-list',
path: '/resource/model-version-list',
component: 'Resource/ModelVersionList',
access: 'canReadMenu',
},
{
name: 'resource-device-status',
path: '/resource/resource-device-status',
component: 'Resource/ResourceDeviceStatus',
access: 'canReadMenu',
},
],
},
{
name: 'analysis',
path: '/analysis',
routes: [
{
name: 'action-detection-list',
path: '/analysis/action-detection-list',
component: 'Analysis/ActionDetectionList',
access: 'canReadMenu',
},
],
},
{
name: 'project',
path: '/project',
routes: [
{
name: 'project-list',
path: '/project/project-list',
component: 'Project/ProjectList',
access: 'canReadMenu',
},
],
},
{
name: 'Contact',
path: '/Contact',
routes: [
{
name: 'Contact-contact-list',
path: '/Contact/contact-list',
component: 'Contact/ContactList',
access: 'canReadMenu',
},
],
},
{
name: 'task',
path: '/task',
component: 'Hidden',
},
{
name: 'compute_power',
path: '/compute_power',
component: 'ComputePowerAllocation/ComputePowerAllocation',
},
{
name: 'data_screen',
path: '/data_screen',
},
{
name: 'algorithm_setting',
path: '/algorithm_setting',
component: 'Setting/AlgorithmSetting',
},
{
name: 'alarm',
path: '/alarm',
routes: [
{
name: 'alarm-list',
path: '/alarm/alarm-list',
component: 'Alarm/AlarmList',
access: 'canReadMenu',
},
{
name: 'alarm-setting',
path: '/alarm/alarm-setting',
component: 'Alarm/AlarmSetting',
access: 'canReadMenu',
},
{
name: 'alarm-ways',
path: '/alarm/alarm-ways',
component: 'Alarm/AlarmWays',
access: 'canReadMenu',
},
],
},
{
name: 'logging',
path: 'http://192.168.10.96:5601/app/r/s/uDpRg',
},
{
path: '/',
redirect: '/welcome',
},
{
path: '*',
layout: false,
component: './404',
},
{
name: 'fabricView',
path: '/fabricView',
routes: [
{
name: 'fabricView-room',
path: '/fabricView/room',
component: 'FabricView/Room',
access: 'canReadMenu',
},
],
},
{
name: 'notice',
path: '/notice',
component: 'Notice',
},
{
name: 'account',
path: '/account',
routes: [
{
name: 'center',
path: '/account/center',
component: 'Account/Center',
access: 'canReadMenu',
},
],
},
];