ljNav.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. import BasicLayout from '../layouts/BasicLayout';
  2. import Exception403 from '../routes/Exception/403';
  3. import Exception404 from '../routes/Exception/404';
  4. import Exception500 from '../routes/Exception/500';
  5. import ImageList from '../routes/Resource/ImageList';
  6. import VideoList from '../routes/Resource/VideoList';
  7. import TagList from '../routes/Product/TagList';
  8. import TagSave from '../routes/Product/TagSave';
  9. import WareList from '../routes/Product/WareList';
  10. import WareSave from '../routes/Product/WareSave';
  11. import LessonList from '../routes/Product/LessonList';
  12. import LessonSave from '../routes/Product/LessonSave';
  13. import CourseList from '../routes/Product/CourseList';
  14. import CourseSave from '../routes/Product/CourseSave';
  15. import SupportList from '../routes/Product/SupportList';
  16. import SupportSave from '../routes/Product/SupportSave';
  17. import ItemList from '../routes/Goods/ItemList';
  18. import ItemSave from '../routes/Goods/ItemSave';
  19. const data = [
  20. {
  21. component: BasicLayout,
  22. layout: 'BasicLayout',
  23. name: '首页', // for breadcrumb
  24. path: '/',
  25. children: [
  26. // 一级菜单:销售概览模块,
  27. // filter为true为不在侧边菜单显示
  28. {
  29. name: '销售概览',
  30. icon: 'dashboard',
  31. path: 'sales',
  32. children: [{
  33. name: '概览',
  34. path: 'view',
  35. component: Exception404,
  36. },{
  37. name: '销售详情',
  38. path: 'detail',
  39. component: Exception404,
  40. }],
  41. },
  42. // 一级菜单:资源管理模块
  43. {
  44. name: '资源管理',
  45. icon: 'folder',
  46. path: 'resource',
  47. children: [{
  48. name: '图库管理',
  49. path: 'image',
  50. component: ImageList,
  51. },{
  52. name: '视频管理',
  53. path: 'video',
  54. component: VideoList,
  55. }],
  56. },
  57. // 一级菜单:课程及周边配套管理
  58. {
  59. name: '产品管理',
  60. icon: 'appstore',
  61. path: 'product',
  62. children: [{
  63. name: '标签管理',
  64. path: 'tag',
  65. component: TagList,
  66. filter: true,
  67. children: [{
  68. name: '添加',
  69. path: 'add',
  70. component: TagSave,
  71. },{
  72. name: '编辑',
  73. path: 'edit',
  74. component: TagSave,
  75. }],
  76. },{
  77. name: '课件管理',
  78. path: 'ware',
  79. component: WareList,
  80. filter: true,
  81. children: [{
  82. name: '添加',
  83. path: 'add',
  84. component: WareSave,
  85. },{
  86. name: '编辑',
  87. path: 'edit',
  88. component: WareSave,
  89. }],
  90. },{
  91. name: '课管理',
  92. path: 'lesson',
  93. component: LessonList,
  94. filter: true,
  95. children: [{
  96. name: '添加',
  97. path: 'add',
  98. component: LessonSave,
  99. },{
  100. name: '编辑',
  101. path: 'edit',
  102. component: LessonSave,
  103. }],
  104. },{
  105. name: '课程管理',
  106. path: 'course',
  107. component: CourseList,
  108. filter: true,
  109. children: [{
  110. name: '添加',
  111. path: 'add',
  112. component: CourseSave,
  113. },{
  114. name: '编辑',
  115. path: 'edit',
  116. component: CourseSave,
  117. }],
  118. },{
  119. name: '周边配套管理',
  120. path: 'support',
  121. component: SupportList,
  122. filter: true,
  123. children: [{
  124. name: '添加',
  125. path: 'add',
  126. component: SupportSave,
  127. },{
  128. name: '编辑',
  129. path: 'edit',
  130. component: SupportSave,
  131. }]
  132. }],
  133. },
  134. // 一级菜单:产品管理模块
  135. {
  136. name: '商品管理',
  137. icon: 'shopping-cart',
  138. path: 'goods',
  139. children: [{
  140. name: '商品管理',
  141. path: 'item',
  142. component: ItemList,
  143. filter: true,
  144. children: [{
  145. name: '添加',
  146. path: 'add',
  147. component: ItemSave,
  148. },{
  149. name: '编辑',
  150. path: 'edit',
  151. component: ItemSave,
  152. }],
  153. },{
  154. name: '商品包管理',
  155. path: 'combo',
  156. component: Exception404,
  157. }],
  158. },
  159. // 一级菜单:厂商管理
  160. {
  161. name: '厂商管理',
  162. icon: 'team',
  163. path: 'merchant',
  164. children: [{
  165. name: '供应商管理',
  166. path: 'cp',
  167. component: Exception404,
  168. },{
  169. name: '渠道方管理',
  170. path: 'project',
  171. component: Exception404,
  172. }],
  173. },
  174. // 一级菜单:订单管理模块
  175. {
  176. name: '交易管理',
  177. icon: 'trademark',
  178. path: 'trade',
  179. children: [{
  180. name: '订单管理',
  181. path: 'order',
  182. component: Exception404,
  183. }],
  184. },
  185. // 一级菜单:终端管理模块
  186. {
  187. name: '终端管理',
  188. icon: 'desktop',
  189. path: 'terminal',
  190. children: [{
  191. name: '终端用户',
  192. path: 'user',
  193. component: Exception404,
  194. },{
  195. name: '校区管理',
  196. path: 'campus',
  197. component: Exception404,
  198. }],
  199. },
  200. // 一级菜单:行为统计模块
  201. {
  202. name: '行为统计',
  203. icon: 'scan',
  204. path: 'action',
  205. children: [{
  206. name: '使用记录',
  207. path: 'usage',
  208. component: Exception404,
  209. }],
  210. }
  211. ],
  212. },
  213. ];
  214. export function getNavData() {
  215. return data;
  216. }
  217. export default data;