routes.js 2.9KB

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