| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- import Vue from 'vue'
- import Router from 'vue-router'
- Vue.use(Router)
- export default new Router({
- routes: [{
- path: '/',
- name: 'login',
- component: () =>
- import ('./views/Login.vue'),
- show: 0,
- },
- {
- path: '/data',
- name: '参赛数据',
- icon: 'el-icon-pie-chart',
- component: () =>
- import ('./views/Home.vue'),
- show: 1,
- isLeaf: 0,
- children: [{
- path: '/data',
- component: () =>
- import ('./views/data/index.vue'),
- name: '数据统计'
- }, ]
- },
- {
- path: '/signup',
- name: '报名管理',
- icon: 'el-icon-pie-chart',
- component: () =>
- import ('./views/Home.vue'),
- show: 1,
- isLeaf: 0,
- children: [{
- path: '/signup/list',
- component: () =>
- import ('./views/signup/index.vue'),
- name: '订单管理'
- }, ]
- },
- {
- path: '/comments',
- name: '咨询/评论',
- icon: 'el-icon-pie-chart',
- component: () =>
- import ('./views/Home.vue'),
- show: 1,
- isLeaf: 0,
- children: [{
- path: '/stock/comments/list',
- component: () =>
- import ('./views/comments/stockComments.vue'),
- name: '股票评论'
- },
- {
- path: '/record/comments/list',
- component: () =>
- import ('./views/comments/recordComments.vue'),
- name: '作业评论'
- },
- {
- path: '/consult/list',
- component: () =>
- import ('./views/comments/consult.vue'),
- name: '顽主咨询'
- }
- ]
- },
- {
- path: '/match',
- name: '赛事管理',
- icon: 'el-icon-trophy-1',
- component: () =>
- import ('./views/Home.vue'),
- show: 1,
- isLeaf: 0,
- children: [{
- path: '/match',
- component: () =>
- import ('./views/match/index.vue'),
- name: '赛事管理'
- }, {
- path: '/group',
- component: () =>
- import ('./views/match/group.vue'),
- name: '赛事分组'
- }, {
- path: '/notice',
- component: () =>
- import ('./views/match/notice.vue'),
- name: '赛事公告'
- },
- {
- path: '/addNotice',
- component: () =>
- import ('./views/match/addArticle.vue'),
- name: '新增公告',
- hide: 1,
- isLeaf: 1
- },
- {
- path: '/championsay',
- component: () =>
- import ('./views/match/championSay.vue'),
- name: '冠军心得'
- },
- {
- path: '/addChampionSay',
- component: () =>
- import ('./views/match/addChampionSay.vue'),
- name: '新增冠军心得',
- hide: 1,
- isLeaf: 1
- },
- {
- path: '/stock',
- component: () =>
- import ('./views/match/stock.vue'),
- name: '股票仓库'
- }
- ]
- },
- {
- path: '/player',
- name: '选手管理',
- icon: 'el-icon-trophy-1',
- component: () =>
- import ('./views/Home.vue'),
- show: 1,
- isLeaf: 0,
- children: [{
- path: '/player',
- component: () =>
- import ('./views/player/index.vue'),
- name: '参赛选手'
- }]
- },
- {
- path: '/user',
- name: '用户管理',
- icon: 'el-icon-s-tools',
- component: () =>
- import ('./views/Home.vue'),
- show: 1,
- isLeaf: 1,
- children: [{
- path: '/user',
- component: () =>
- import ('./views/user/index.vue'),
- name: '用户管理'
- }, ]
- },
- ]
- })
|