123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- import fancomRouter from './fangcom.router.config'
- export default [{
- path: '/',
- component: '../layouts/BasicLayout',
- Routes: ['src/pages/Authorized'],
- routes: [
- // dashboard
- {
- path: '/',
- redirect: '/dashboard'
- },
- {
- path: '/index.html',
- redirect: '/dashboard'
- },
- {
- path: '/dashboard',
- name: 'Dashboard',
- icon: 'dashboard',
- component: './Dashboard/Dashboard'
- // authority: ['Pages.Administration'],
- },
- {
- path: '/goReport',
- name: '数据可视化后台',
- icon: 'dashboard',
- layout: null,
- authority: ['Pages.Datav'],
- component: './FangCom/Report/goNew',
- // authority: ['Pages.Administration'],
- },
- {
- path: '/admin',
- name: 'Administration',
- icon: 'setting',
- authority: ['Pages.Administration'],
- routes: [{
- path: '/admin/users',
- name: 'Users',
- component: './Admin/Users/Users',
- authority: ['Pages.Administration.Users']
- },
- {
- path: '/admin/roles',
- name: 'Roles',
- component: './Admin/Roles/Roles',
- authority: ['Pages.Administration.Roles']
- },
- {
- path: '/admin/organization-units',
- name: 'OrganizationUnits',
- component: './Admin/OrganizationUnits/OrganizationUnits',
- authority: [
- 'Pages.Administration.OrganizationUnits',
- 'Pages.Administration.Positions.ManagePositionTree'
- ]
- },
- {
- path: '/admin/dicts',
- name: 'Dictionary',
- component: './Admin/Dicts/Dicts',
- authority: [
- 'Pages.Administration.Dictionary',
- 'Pages.Administration.Dictionary.ManageDictionaryTree'
- ]
- },
- {
- path: '/admin/auditLogs',
- name: 'AuditLogs',
- component: './Admin/AuditLogs/AuditLogs',
- authority: ['Pages.Administration.AuditLogs']
- },
- {
- path: '/admin/maintenance',
- name: 'Maintenance',
- component: './Admin/Maintenance/Maintenance',
- authority: ['Pages.Administration.Host.Maintenance']
- },
- {
- path: '/admin/hostSettings',
- name: 'Settings',
- component: './Admin/Settings/HostSettings',
- authority: ['Pages.Administration.Host.Settings']
- },
- {
- path: '/admin/tenantSettings',
- name: 'Settings',
- component: './Admin/Settings/TenantSettings',
- authority: ['Pages.Administration.Tenant.Settings']
- },
- {
- path: '/admin/tenants',
- name: 'Tenants',
- // icon: 'team',
- component: './Admin/Tenants/Tenants',
- authority: ['Pages.Tenants']
- }
- ]
- },
- {
- name: 'exception',
- icon: 'warning',
- path: '/exception',
- hideInMenu: true,
- routes: [
- // exception
- {
- path: '/exception/403',
- name: 'not-permission',
- component: './Exception/403'
- },
- {
- path: '/exception/404',
- name: 'not-find',
- component: './Exception/404'
- },
- {
- path: '/exception/500',
- name: 'server-error',
- component: './Exception/500'
- }
- ]
- },
- ...fancomRouter,
- {
- component: '404'
- }
- ]
- }]
|