[Update] 左侧菜单完善

This commit is contained in:
jym503558564
2020-03-30 15:20:12 +08:00
parent 844eeac81b
commit 22ca55973f
2 changed files with 160 additions and 22 deletions

View File

@@ -43,9 +43,12 @@ const cn = {
'SystemUserList': '系统用户', 'SystemUserList': '系统用户',
'LabelList': '标签管理', 'LabelList': '标签管理',
'CommandFilterList': '命令过滤', 'CommandFilterList': '命令过滤',
'platformList': '平台列表', 'PlatformList': '平台列表',
'applications': '应用管理', 'Applications': '应用管理',
'perms': '权限管理', 'Perms': '权限管理',
'AssetPermission': '资产授权',
'RemoteAppPermission': '远程应用',
'DatabaseAppPermission': '数据库应用',
'sessions': '会话管理', 'sessions': '会话管理',
'jobcenter': '作业中心' 'jobcenter': '作业中心'
}, },

View File

@@ -153,57 +153,192 @@ export const constantRoutes = [
}, },
{ {
path: 'platforms', path: 'platforms',
name: 'platformList', name: 'PlatformList',
component: () => import('@/views/tree/index'), component: () => import('@/views/tree/index'),
meta: { title: 'platformList' } meta: { title: 'PlatformList' }
} }
] ]
}, },
{ {
path: '/applications/', path: '/applications/',
component: Layout, component: Layout,
redirect: '/applications/remote-apps/',
name: 'applications', name: 'applications',
meta: { title: 'applications', icon: 'th' }, meta: { title: 'Applications', icon: 'th' },
children: [ children: [
{ {
path: 'remote-apps', path: 'remote-apps',
name: 'remoteAppList', name: 'remoteAppList',
component: () => import('@/views/table/index'), component: () => import('@/views/tree/index'),
meta: { title: 'remoteAppList' } meta: { title: 'RemoteApp' }
}, },
{ {
path: 'databases', path: 'database-apps',
name: 'databaseList', name: 'DatabaseAppList',
component: () => import('@/views/tree/index'), component: () => import('@/views/tree/index'),
meta: { title: 'databaseList' } meta: { title: 'DatabaseApp' }
} }
] ]
}, },
{ {
path: '/perms/', path: '/perms/',
component: Layout, component: Layout,
name: 'perms', redirect: '/perms/asset-permission/',
meta: { title: 'perms', icon: 'edit' }, name: 'Perms',
meta: { title: 'Perms', icon: 'edit' },
children: [ children: [
{ {
path: 'asset-permissions', path: 'asset-permissions',
name: 'assetPermissionList', name: 'AssetPermissionList',
component: () => import('@/views/table/index'), component: import('@/views/tree/index'),
meta: { title: 'assetPermissionList' } meta: { title: 'AssetPermission' }
}, },
{ {
path: 'remote-apps-permissions', path: 'remote-app-permissions',
name: 'remoteAppPermissionList', name: 'RemoteAppPermissionList',
component: () => import('@/views/tree/index'), component: () => import('@/views/tree/index'),
meta: { title: 'remoteAppPermissionList' } meta: { title: 'RemoteAppPermission' }
}, },
{ {
path: 'database-permissions', path: 'database-app-permissions',
name: 'databasePermissionList', name: 'DatabaseAppPermissionList',
component: () => import('@/views/tree/index'), component: () => import('@/views/tree/index'),
meta: { title: 'databasePermissionList' } meta: { title: 'DatabaseAppPermission' }
} }
] ]
},
{
path: '/terminal/',
component: Layout,
redirect: '/terminal/session-online/',
name: 'Sessions',
meta: { title: 'Sessions', icon: 'rocket' },
children: [
{
path: 'session-online',
name: 'SessionOnlineList',
component: () => import('@/views/tree/index'),
meta: { title: 'SessionOnline' }
},
{
path: 'session-offline',
name: 'SessionOfflineList',
component: () => import('@/views/tree/index'),
meta: { title: 'SessionOffline' }
},
{
path: 'command',
name: 'CommandsList',
component: () => import('@/views/tree/index'),
meta: { title: 'Commands' }
},
{
path: 'luna',
name: 'WebTerminal',
component: () => import('@/views/tree/index'),
meta: { title: 'WebTerminal' }
},
{
path: 'sftp',
name: 'FileManager',
component: () => import('@/views/tree/index'),
meta: { title: 'FileManager' }
},
{
path: 'terminal',
name: 'TerminalList',
component: () => import('@/views/tree/index'),
meta: { title: 'Terminal' }
}
]
},
{
path: '/ops/',
component: Layout,
redirect: '/ops/task/',
name: 'JobCenter',
meta: { title: 'JobCenter', icon: 'coffee' },
children: [
{
path: 'task',
name: 'TaskList',
component: () => import('@/views/tree/index'),
meta: { title: 'TaskList' }
},
{
path: 'command-executions/create',
name: 'BatchCommand',
component: () => import('@/views/tree/index'),
meta: { title: 'BatchCommand' }
},
{
path: 'flower',
name: 'TaskMonitor',
component: () => import('@/views/tree/index'),
meta: { title: 'TaskMonitor' }
}
]
},
{
path: '/tickets/',
component: Layout,
redirect: '/tickets/tickets/',
children: [{
path: 'tickets',
name: 'Tickets',
component: () => import('@/views/tree/index'),
meta: { title: 'Tickets', icon: 'check-square-o' }
}]
},
{
path: '/audits/',
component: Layout,
redirect: '/audits/login-log/',
name: 'Audits',
meta: { title: 'Audits', icon: 'history' },
children: [
{
path: 'login-log',
name: 'LoginLog',
component: () => import('@/views/tree/index'),
meta: { title: 'LoginLog' }
},
{
path: 'ftp-log',
name: 'FtpLog',
component: () => import('@/views/tree/index'),
meta: { title: 'FtpLog' }
},
{
path: 'operate-log',
name: 'OperateLog',
component: () => import('@/views/tree/index'),
meta: { title: 'OperateLog' }
},
{
path: 'password-change-log',
name: 'PasswordChangeLog',
component: () => import('@/views/tree/index'),
meta: { title: 'PasswordChangeLog' }
},
{
path: 'command-execution-log',
name: 'BatchCommand',
component: () => import('@/views/tree/index'),
meta: { title: 'BatchCommand' }
}
]
},
{
path: '/settings',
component: Layout,
redirect: '/settings/',
children: [{
path: 'settings',
name: 'Settings',
component: () => import('@/views/tree/index'),
meta: { title: 'Settings', icon: 'gears' }
}]
} }
] ]