routes.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './User/Login',
  10. },
  11. {
  12. component: './404',
  13. },
  14. ],
  15. },
  16. // {
  17. // path: '/welcome',
  18. // name: 'welcome',
  19. // icon: 'smile',
  20. // component: './Welcome',
  21. // },
  22. {
  23. path: '/',
  24. redirect: '/rotationChart/list',
  25. },
  26. {
  27. path: '/rotationChart',
  28. name: '轮播图管理',
  29. icon: 'picCenter',
  30. routes: [
  31. {
  32. path: '/rotationChart/list',
  33. name: '轮播图管理',
  34. component: './rotationChart/list',
  35. },
  36. ],
  37. },
  38. {
  39. path: '/rotationChart/add',
  40. name: '轮播图新增',
  41. hideInMenu: true,
  42. component: './rotationChart/edit',
  43. },
  44. {
  45. path: '/rotationChart/edit',
  46. name: '轮播图编辑',
  47. hideInMenu: true,
  48. component: './rotationChart/edit',
  49. },
  50. // {
  51. // path: '/monitor',
  52. // name: '监控管理',
  53. // icon: 'VideoCameraOutlined',
  54. // component: './monitor/index',
  55. // },
  56. {
  57. path: '/dish/list',
  58. name: '菜肴管理',
  59. icon: 'star',
  60. icon: 'VideoCameraOutlined',
  61. component: './dish/list',
  62. },
  63. {
  64. path: '/dish/add',
  65. name: '菜肴详情',
  66. icon: 'smile',
  67. hideInMenu: true,
  68. component: './dish/edit',
  69. },
  70. {
  71. path: '/dish/edit',
  72. name: '菜肴修改',
  73. hideInMenu: true,
  74. component: './dish/edit',
  75. },
  76. {
  77. path: '/package/list',
  78. name: '套餐管理',
  79. icon: 'shopping',
  80. component: './package/index',
  81. },
  82. {
  83. path: '/guaranteeTask/list',
  84. name: '任务管理',
  85. icon: 'borderBottom',
  86. component: './guaranteeTask/index',
  87. },
  88. {
  89. path: '/guaranteeTask/edit',
  90. name: '任务详情',
  91. icon: 'borderBottom',
  92. hideInMenu: true,
  93. component: './guaranteeTask/Edit/index',
  94. },
  95. {
  96. path: '/stock/list',
  97. name: '库存管理',
  98. icon: 'appstore',
  99. component: './stock/list',
  100. },
  101. {
  102. path: '/stock/add',
  103. name: '库存新增',
  104. hideInMenu: true,
  105. component: './stock/edit',
  106. },
  107. {
  108. path: '/stock/edit',
  109. name: '库存详细',
  110. hideInMenu: true,
  111. component: './stock/edit',
  112. },
  113. {
  114. path: '/stock/outAndIn',
  115. name: '出入库管理',
  116. hideInMenu: true,
  117. component: './stock/outAndIn',
  118. },
  119. {
  120. path: '/stockLog/list',
  121. name: '库存日志',
  122. icon: 'appstoreAdd',
  123. component: './stock/stockLog',
  124. },
  125. {
  126. path: '/stockClassification/list',
  127. name: '库存分类',
  128. icon: 'sortAscending',
  129. component: './stockClassification/list',
  130. },
  131. {
  132. path: '/stockClassification/edit',
  133. name: '分类编辑',
  134. hideInMenu: true,
  135. component: './stockClassification/edit',
  136. },
  137. {
  138. path: '/guaranteeTask/print',
  139. name: '保障单打印',
  140. hideInMenu: true,
  141. layout: false,
  142. component: './guaranteeTask/print/index',
  143. },
  144. {
  145. component: './404',
  146. },
  147. ];