router.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. export default new Router({
  5. routes: [{
  6. path: '/',
  7. name: 'login',
  8. component: () =>
  9. import ('./views/Login.vue'),
  10. show: 0,
  11. },
  12. {
  13. path: '/data',
  14. name: '参赛数据',
  15. icon: 'el-icon-pie-chart',
  16. component: () =>
  17. import ('./views/Home.vue'),
  18. show: 1,
  19. isLeaf: 0,
  20. children: [{
  21. path: '/data',
  22. component: () =>
  23. import ('./views/data/index.vue'),
  24. name: '数据统计'
  25. }, ]
  26. },
  27. {
  28. path: '/signup',
  29. name: '报名管理',
  30. icon: 'el-icon-pie-chart',
  31. component: () =>
  32. import ('./views/Home.vue'),
  33. show: 1,
  34. isLeaf: 0,
  35. children: [{
  36. path: '/signup/list',
  37. component: () =>
  38. import ('./views/signup/index.vue'),
  39. name: '订单管理'
  40. }, ]
  41. },
  42. {
  43. path: '/comments',
  44. name: '咨询/评论',
  45. icon: 'el-icon-pie-chart',
  46. component: () =>
  47. import ('./views/Home.vue'),
  48. show: 1,
  49. isLeaf: 0,
  50. children: [{
  51. path: '/stock/comments/list',
  52. component: () =>
  53. import ('./views/comments/stockComments.vue'),
  54. name: '股票评论'
  55. },
  56. {
  57. path: '/record/comments/list',
  58. component: () =>
  59. import ('./views/comments/recordComments.vue'),
  60. name: '作业评论'
  61. },
  62. {
  63. path: '/consult/list',
  64. component: () =>
  65. import ('./views/comments/consult.vue'),
  66. name: '顽主咨询'
  67. }
  68. ]
  69. },
  70. {
  71. path: '/match',
  72. name: '赛事管理',
  73. icon: 'el-icon-trophy-1',
  74. component: () =>
  75. import ('./views/Home.vue'),
  76. show: 1,
  77. isLeaf: 0,
  78. children: [{
  79. path: '/match',
  80. component: () =>
  81. import ('./views/match/index.vue'),
  82. name: '赛事管理'
  83. }, {
  84. path: '/group',
  85. component: () =>
  86. import ('./views/match/group.vue'),
  87. name: '赛事分组'
  88. }, {
  89. path: '/notice',
  90. component: () =>
  91. import ('./views/match/notice.vue'),
  92. name: '赛事公告'
  93. },
  94. {
  95. path: '/addNotice',
  96. component: () =>
  97. import ('./views/match/addArticle.vue'),
  98. name: '新增公告',
  99. hide: 1,
  100. isLeaf: 1
  101. },
  102. {
  103. path: '/championsay',
  104. component: () =>
  105. import ('./views/match/championSay.vue'),
  106. name: '冠军心得'
  107. },
  108. {
  109. path: '/addChampionSay',
  110. component: () =>
  111. import ('./views/match/addChampionSay.vue'),
  112. name: '新增冠军心得',
  113. hide: 1,
  114. isLeaf: 1
  115. },
  116. {
  117. path: '/stock',
  118. component: () =>
  119. import ('./views/match/stock.vue'),
  120. name: '股票仓库'
  121. }
  122. ]
  123. },
  124. {
  125. path: '/player',
  126. name: '选手管理',
  127. icon: 'el-icon-trophy-1',
  128. component: () =>
  129. import ('./views/Home.vue'),
  130. show: 1,
  131. isLeaf: 0,
  132. children: [{
  133. path: '/player',
  134. component: () =>
  135. import ('./views/player/index.vue'),
  136. name: '参赛选手'
  137. }]
  138. },
  139. {
  140. path: '/user',
  141. name: '用户管理',
  142. icon: 'el-icon-s-tools',
  143. component: () =>
  144. import ('./views/Home.vue'),
  145. show: 1,
  146. isLeaf: 1,
  147. children: [{
  148. path: '/user',
  149. component: () =>
  150. import ('./views/user/index.vue'),
  151. name: '用户管理'
  152. }, ]
  153. },
  154. ]
  155. })