routes.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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: '/infrared',
  49. name: '红外管理',
  50. icon: 'Appstore',
  51. routes: [
  52. // 类型管理
  53. {
  54. path: '/infrared/type',
  55. name: '版本管理',
  56. icon: 'Appstore',
  57. component: './Infrared',
  58. },
  59. // 品牌管理
  60. {
  61. path: '/infrared/brand',
  62. name: '品牌管理',
  63. icon: 'Appstore',
  64. component: './Infrared/brand',
  65. },
  66. // 码库管理
  67. {
  68. path: '/infrared/remote',
  69. name: '码库管理',
  70. icon: 'Appstore',
  71. component: './Infrared/remote',
  72. },
  73. ],
  74. },
  75. // 版本管理
  76. {
  77. path: '/editionManagement',
  78. name: '版本管理',
  79. icon: 'Appstore',
  80. component: './EditionManagement',
  81. },
  82. // 用户管理
  83. {
  84. path: '/UserManagement',
  85. name: '用户管理',
  86. icon: 'team',
  87. component: './setting/UserManagement',
  88. },
  89. // 家列表管理
  90. {
  91. path: '/homeList',
  92. name: '家列表管理',
  93. icon: 'file',
  94. component: './home',
  95. },
  96. // 菜单管理
  97. {
  98. path: '/MenuManagement',
  99. name: '菜单管理',
  100. icon: 'Appstore',
  101. component: './MenuManagement',
  102. },
  103. // 角色管理
  104. {
  105. path: '/RoleManagement',
  106. name: '角色管理',
  107. icon: 'Appstore',
  108. component: './RoleManagement',
  109. },
  110. {
  111. path: '/ParameterConfiguration',
  112. name: '参数配置',
  113. icon: 'Appstore',
  114. component: './ParameterConfiguration',
  115. },
  116. // {
  117. // path: '/LogManagement',
  118. // name: '日志管理',
  119. // icon: 'Appstore',
  120. // component: './LogManagement',
  121. // },
  122. {
  123. path: '/ProductionDataManagement',
  124. name: '产测数据管理',
  125. icon: 'Appstore',
  126. component: './ProductionDataManagement',
  127. },
  128. {
  129. path: '/DataBoard',
  130. name: '可视化视窗',
  131. icon: 'file',
  132. layout: false,
  133. component: './DataBoard',
  134. },
  135. // 故障管理
  136. {
  137. path: '/deviceFaults',
  138. name: '版本管理',
  139. icon: 'Appstore',
  140. component: './DeviceFaults',
  141. },
  142. // banner图管理
  143. {
  144. path: '/banner',
  145. name: 'banner图管理',
  146. icon: 'Appstore',
  147. component: './BannerManagement',
  148. },
  149. // 报备管理
  150. {
  151. path: '/reporting',
  152. name: '经销商报备管理',
  153. icon: 'Appstore',
  154. routes: [
  155. // 小区管理
  156. {
  157. path: '/reporting/community',
  158. name: '小区管理',
  159. icon: 'Appstore',
  160. component: './CommunityManagement',
  161. },
  162. // 工程项目报备
  163. {
  164. path: '/reporting/project',
  165. name: '工程报备',
  166. icon: 'Appstore',
  167. component: './ReportingManagement',
  168. },
  169. // 零售报备
  170. {
  171. path: '/reporting/home',
  172. name: '零售报备',
  173. icon: 'Appstore',
  174. component: './ReportHomeManagement',
  175. },
  176. ],
  177. },
  178. // 房间列表
  179. {
  180. path: '/roomList',
  181. component: './Home/Room',
  182. },
  183. {
  184. path: '/',
  185. redirect: '/welcome',
  186. },
  187. {
  188. component: './404',
  189. },
  190. ];