router.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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-s-home',
  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. path: '/fundinout',
  28. component: () =>
  29. import ('./views/data/fundInOut.vue'),
  30. name: '资金出入'
  31. }
  32. ]
  33. },
  34. {
  35. path: '/comments',
  36. name: '咨询顽主',
  37. icon: 'el-icon-s-comment',
  38. component: () =>
  39. import ('./views/Home.vue'),
  40. show: 1,
  41. isLeaf: 1,
  42. children: [
  43. {
  44. path: '/comments',
  45. component: () =>
  46. import ('./views/comments/consult.vue'),
  47. name: '咨询顽主'
  48. }
  49. ]
  50. },
  51. {
  52. path: '/signup',
  53. name: '订单管理',
  54. icon: 'el-icon-s-finance',
  55. component: () =>
  56. import ('./views/Home.vue'),
  57. show: 1,
  58. isLeaf: 1,
  59. children: [{
  60. path: '/signup',
  61. component: () =>
  62. import ('./views/signup/index.vue'),
  63. name: '订单管理'
  64. }, ]
  65. },
  66. {
  67. path: '/player',
  68. name: '选手管理',
  69. icon: 'el-icon-user',
  70. component: () =>
  71. import ('./views/Home.vue'),
  72. show: 1,
  73. isLeaf: 1,
  74. children: [{
  75. path: '/player',
  76. component: () =>
  77. import ('./views/player/index.vue'),
  78. name: '参赛选手'
  79. }]
  80. },
  81. {
  82. path: '/user',
  83. name: '用户管理',
  84. icon: 'el-icon-s-custom',
  85. component: () =>
  86. import ('./views/Home.vue'),
  87. show: 1,
  88. isLeaf: 1,
  89. children: [{
  90. path: '/user',
  91. component: () =>
  92. import ('./views/user/index.vue'),
  93. name: '用户管理'
  94. }, ]
  95. },
  96. {
  97. path: '/baike',
  98. name: '短线百科',
  99. icon: 'el-icon-s-grid',
  100. component: () =>
  101. import ('./views/Home.vue'),
  102. show: 1,
  103. isLeaf: 0,
  104. children: [
  105. {
  106. path: '/baike/term',
  107. component: () =>
  108. import ('./views/baike/Index.vue'),
  109. name: '百科词条'
  110. }
  111. ]
  112. },
  113. {
  114. path: '/comments',
  115. name: '留言管理',
  116. icon: 'el-icon-tickets',
  117. component: () =>
  118. import ('./views/Home.vue'),
  119. show: 1,
  120. isLeaf: 0,
  121. children: [{
  122. path: '/stock/comments/list',
  123. component: () =>
  124. import ('./views/comments/stockComments.vue'),
  125. name: '股票留言'
  126. },
  127. {
  128. path: '/record/comments/list',
  129. component: () =>
  130. import ('./views/comments/recordComments.vue'),
  131. name: '作业留言'
  132. },
  133. {
  134. path: '/stock/nbcomments/list',
  135. component: () =>
  136. import ('./views/comments/stockNBComments.vue'),
  137. name: '牛人点评'
  138. },
  139. // {
  140. // path: '/famous/list',
  141. // component: () =>
  142. // import ('./views/comments/famousUserList.vue'),
  143. // name: '名人堂'
  144. // }
  145. ]
  146. },
  147. {
  148. path: '/match',
  149. name: '赛事管理',
  150. icon: 'el-icon-trophy-1',
  151. component: () =>
  152. import ('./views/Home.vue'),
  153. show: 1,
  154. isLeaf: 0,
  155. children: [{
  156. path: '/match',
  157. component: () =>
  158. import ('./views/match/index.vue'),
  159. name: '赛事管理'
  160. }, {
  161. path: '/group',
  162. component: () =>
  163. import ('./views/match/group.vue'),
  164. name: '赛事分组'
  165. }, {
  166. path: '/notice',
  167. component: () =>
  168. import ('./views/match/notice.vue'),
  169. name: '赛事公告'
  170. },
  171. {
  172. path: '/addNotice',
  173. component: () =>
  174. import ('./views/match/addArticle.vue'),
  175. name: '新增公告',
  176. hide: 1,
  177. isLeaf: 1
  178. },
  179. {
  180. path: '/championsay',
  181. component: () =>
  182. import ('./views/match/championSay.vue'),
  183. name: '文章数据'
  184. },
  185. // {
  186. // path: '/addChampionSay',
  187. // component: () =>
  188. // import ('./views/match/addChampionSay.vue'),
  189. // name: '新增冠军心得',
  190. // hide: 1,
  191. // isLeaf: 1
  192. // },
  193. {
  194. path: '/stock',
  195. component: () =>
  196. import ('./views/match/stock.vue'),
  197. name: '股票仓库'
  198. }
  199. ]
  200. },
  201. {
  202. path: '/sys',
  203. name: '系统管理',
  204. icon: 'el-icon-mobile',
  205. component: () =>
  206. import ('./views/Home.vue'),
  207. show: 1,
  208. isLeaf: 0,
  209. children: [{
  210. path: '/sys/version',
  211. component: () =>
  212. import ('./views/sys/Version.vue'),
  213. name: '版本管理'
  214. }
  215. ]
  216. }
  217. ]
  218. })