routes.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. // 登录页面
  7. {
  8. name: 'login',
  9. path: '/user/login',
  10. component: './user/Login',
  11. },
  12. {
  13. component: './404',
  14. },
  15. ],
  16. },
  17. // 首页
  18. {
  19. path: '/welcome',
  20. name: '首页',
  21. icon: 'smile',
  22. component: './Welcome',
  23. },
  24. // 内容发布
  25. {
  26. name: '内容发布',
  27. icon: 'crown',
  28. path: '/cms',
  29. routes: [
  30. // 栏目管理
  31. {
  32. path: '/cms/columnList',
  33. name: '栏目管理',
  34. icon: 'file',
  35. component: './cms/ColumnList',
  36. },
  37. // 文章管理
  38. {
  39. path: '/cms/articleManagement',
  40. name: '文章管理',
  41. icon: 'file',
  42. component: './cms/ArticleManagement',
  43. },
  44. ],
  45. },
  46. // 版本管理
  47. {
  48. path: '/editionManagement',
  49. name: '版本管理',
  50. icon: 'Appstore',
  51. component: './EditionManagement',
  52. },
  53. // 用户管理
  54. {
  55. path: '/UserManagement',
  56. name: '用户管理',
  57. icon: 'team',
  58. component: './setting/UserManagement',
  59. },
  60. // 家列表管理
  61. {
  62. path: '/homeList',
  63. name: '家列表管理',
  64. icon: 'file',
  65. component: './home',
  66. },
  67. // 菜单管理
  68. {
  69. path: '/MenuManagement',
  70. name: '菜单管理',
  71. icon: 'Appstore',
  72. component: './MenuManagement',
  73. },
  74. // 角色管理
  75. {
  76. path: '/RoleManagement',
  77. name: '角色管理',
  78. icon: 'Appstore',
  79. component: './RoleManagement',
  80. },
  81. // 报备管理
  82. {
  83. path: '/ReportingManagement',
  84. name: '报备管理',
  85. icon: 'Appstore',
  86. component: './ReportingManagement',
  87. },
  88. {
  89. path: '/ParameterConfiguration',
  90. name: '参数配置',
  91. icon: 'Appstore',
  92. component: './ParameterConfiguration',
  93. },
  94. // {
  95. // path: '/LogManagement',
  96. // name: '日志管理',
  97. // icon: 'Appstore',
  98. // component: './LogManagement',
  99. // },
  100. {
  101. path: '/ProductionDataManagement',
  102. name: '产测数据管理',
  103. icon: 'Appstore',
  104. component: './ProductionDataManagement',
  105. },
  106. {
  107. path: '/DataBoard',
  108. name: '可视化视窗',
  109. icon: 'file',
  110. layout: false,
  111. component: './DataBoard',
  112. },
  113. // 房间列表
  114. {
  115. path: '/roomList',
  116. component: './Home/Room',
  117. },
  118. {
  119. path: '/',
  120. redirect: '/welcome',
  121. },
  122. {
  123. component: './404',
  124. },
  125. ];