default.router.config.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import fancomRouter from './fangcom.router.config'
  2. export default [{
  3. path: '/',
  4. component: '../layouts/BasicLayout',
  5. Routes: ['src/pages/Authorized'],
  6. routes: [
  7. // dashboard
  8. {
  9. path: '/',
  10. redirect: '/dashboard'
  11. },
  12. {
  13. path: '/index.html',
  14. redirect: '/dashboard'
  15. },
  16. {
  17. path: '/dashboard',
  18. name: 'Dashboard',
  19. icon: 'dashboard',
  20. component: './Dashboard/Dashboard'
  21. // authority: ['Pages.Administration'],
  22. },
  23. {
  24. path: '/goReport',
  25. name: '数据可视化后台',
  26. icon: 'dashboard',
  27. layout: null,
  28. authority: ['Pages.Datav'],
  29. component: './FangCom/Report/goNew',
  30. // authority: ['Pages.Administration'],
  31. },
  32. {
  33. path: '/admin',
  34. name: 'Administration',
  35. icon: 'setting',
  36. authority: ['Pages.Administration'],
  37. routes: [{
  38. path: '/admin/users',
  39. name: 'Users',
  40. component: './Admin/Users/Users',
  41. authority: ['Pages.Administration.Users']
  42. },
  43. {
  44. path: '/admin/roles',
  45. name: 'Roles',
  46. component: './Admin/Roles/Roles',
  47. authority: ['Pages.Administration.Roles']
  48. },
  49. {
  50. path: '/admin/organization-units',
  51. name: 'OrganizationUnits',
  52. component: './Admin/OrganizationUnits/OrganizationUnits',
  53. authority: [
  54. 'Pages.Administration.OrganizationUnits',
  55. 'Pages.Administration.Positions.ManagePositionTree'
  56. ]
  57. },
  58. {
  59. path: '/admin/dicts',
  60. name: 'Dictionary',
  61. component: './Admin/Dicts/Dicts',
  62. authority: [
  63. 'Pages.Administration.Dictionary',
  64. 'Pages.Administration.Dictionary.ManageDictionaryTree'
  65. ]
  66. },
  67. {
  68. path: '/admin/auditLogs',
  69. name: 'AuditLogs',
  70. component: './Admin/AuditLogs/AuditLogs',
  71. authority: ['Pages.Administration.AuditLogs']
  72. },
  73. {
  74. path: '/admin/maintenance',
  75. name: 'Maintenance',
  76. component: './Admin/Maintenance/Maintenance',
  77. authority: ['Pages.Administration.Host.Maintenance']
  78. },
  79. {
  80. path: '/admin/hostSettings',
  81. name: 'Settings',
  82. component: './Admin/Settings/HostSettings',
  83. authority: ['Pages.Administration.Host.Settings']
  84. },
  85. {
  86. path: '/admin/tenantSettings',
  87. name: 'Settings',
  88. component: './Admin/Settings/TenantSettings',
  89. authority: ['Pages.Administration.Tenant.Settings']
  90. },
  91. {
  92. path: '/admin/tenants',
  93. name: 'Tenants',
  94. // icon: 'team',
  95. component: './Admin/Tenants/Tenants',
  96. authority: ['Pages.Tenants']
  97. }
  98. ]
  99. },
  100. {
  101. name: 'exception',
  102. icon: 'warning',
  103. path: '/exception',
  104. hideInMenu: true,
  105. routes: [
  106. // exception
  107. {
  108. path: '/exception/403',
  109. name: 'not-permission',
  110. component: './Exception/403'
  111. },
  112. {
  113. path: '/exception/404',
  114. name: 'not-find',
  115. component: './Exception/404'
  116. },
  117. {
  118. path: '/exception/500',
  119. name: 'server-error',
  120. component: './Exception/500'
  121. }
  122. ]
  123. },
  124. ...fancomRouter,
  125. {
  126. component: '404'
  127. }
  128. ]
  129. }]