routes.js 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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/list',
  28. name: '轮播图管理',
  29. icon: 'picCenter',
  30. component: './rotationChart/list',
  31. },
  32. {
  33. path: '/rotationChart/add',
  34. name: '轮播图新增',
  35. hideInMenu: true,
  36. component: './rotationChart/edit',
  37. },
  38. {
  39. path: '/rotationChart/edit',
  40. name: '轮播图编辑',
  41. hideInMenu: true,
  42. component: './rotationChart/edit',
  43. },
  44. // {
  45. // path: '/monitor',
  46. // name: '监控管理',
  47. // icon: 'VideoCameraOutlined',
  48. // component: './monitor/index',
  49. // },
  50. {
  51. path: '/dish/list',
  52. name: '菜肴管理',
  53. icon: 'star',
  54. icon: 'VideoCameraOutlined',
  55. component: './dish/list',
  56. },
  57. {
  58. path: '/dish/add',
  59. name: '菜肴详情',
  60. icon: 'smile',
  61. hideInMenu: true,
  62. component: './dish/edit',
  63. },
  64. {
  65. path: '/dish/edit',
  66. name: '菜肴修改',
  67. hideInMenu: true,
  68. component: './dish/edit',
  69. },
  70. {
  71. path: '/package/list',
  72. name: '套餐管理',
  73. icon: 'shopping',
  74. component: './package/index',
  75. },
  76. {
  77. path: '/guaranteeTask/list',
  78. name: '任务管理',
  79. icon: 'borderBottom',
  80. component: './guaranteeTask/index',
  81. },
  82. {
  83. path: '/guaranteeTask/edit',
  84. name: '任务详情',
  85. icon: 'borderBottom',
  86. hideInMenu: true,
  87. component: './guaranteeTask/Edit/index',
  88. },
  89. {
  90. path: '/stock/list',
  91. name: '库存管理',
  92. icon: 'appstore',
  93. component: './stock/list',
  94. },
  95. {
  96. path: '/stock/add',
  97. name: '库存新增',
  98. hideInMenu: true,
  99. component: './stock/edit',
  100. },
  101. {
  102. path: '/stock/edit',
  103. name: '库存详细',
  104. hideInMenu: true,
  105. component: './stock/edit',
  106. },
  107. {
  108. path: '/stock/outAndIn',
  109. name: '出入库管理',
  110. hideInMenu: true,
  111. component: './stock/outAndIn',
  112. },
  113. {
  114. path: '/stockLog/list',
  115. name: '库存日志',
  116. icon: 'appstoreAdd',
  117. component: './stock/stockLog',
  118. },
  119. {
  120. path: '/stockClassification/list',
  121. name: '库存分类',
  122. icon: 'sortAscending',
  123. component: './stockClassification/list',
  124. },
  125. {
  126. path: '/stockClassification/edit',
  127. name: '分类编辑',
  128. hideInMenu: true,
  129. component: './stockClassification/edit',
  130. },
  131. {
  132. path: '/guaranteeTask/print',
  133. name: '保障单打印',
  134. hideInMenu: true,
  135. layout: false,
  136. component: './guaranteeTask/print/index',
  137. },
  138. {
  139. component: './404',
  140. },
  141. ];