|
|
@@ -4,33 +4,72 @@ import Router from 'vue-router'
|
|
|
Vue.use(Router)
|
|
|
|
|
|
export default new Router({
|
|
|
- routes: [
|
|
|
- {
|
|
|
+ routes: [{
|
|
|
path: '/login',
|
|
|
name: 'login',
|
|
|
- component: ()=> import('./views/Login.vue'),
|
|
|
- show:0
|
|
|
+ component: () => import('./views/Login.vue'),
|
|
|
+ show: 0
|
|
|
},
|
|
|
{
|
|
|
path: '/',
|
|
|
name: '概览',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
- show:1,
|
|
|
- isLeaf:1,
|
|
|
- children:[
|
|
|
- { path: '/', component: () => import('./views/Index.vue'), name: '系统首页' },
|
|
|
- ]
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 1,
|
|
|
+ children: [{
|
|
|
+ path: '/',
|
|
|
+ component: () => import('./views/Index.vue'),
|
|
|
+ name: '系统首页'
|
|
|
+ }, ]
|
|
|
},
|
|
|
{
|
|
|
path: '/',
|
|
|
name: '项目管理',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
- show:1,
|
|
|
- isLeaf:0,
|
|
|
- children:[
|
|
|
- { path: '/subject', component: () => import('./views/project/Index.vue'), name: '培训科目' },
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/subject',
|
|
|
+ component: () => import('./views/project/Index.vue'),
|
|
|
+ name: '培训科目'
|
|
|
+ }, ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/online',
|
|
|
+ name: '在线培训',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
+ component: () => import('./views/Home.vue'),
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/test',
|
|
|
+ component: () => import('./views/online/Test.vue'),
|
|
|
+ name: '试卷管理'
|
|
|
+ }, {
|
|
|
+ path: '/video',
|
|
|
+ component: () => import('./views/online/Video.vue'),
|
|
|
+ name: '视频管理'
|
|
|
+ }, ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/content',
|
|
|
+ name: '内容管理',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
+ component: () => import('./views/Home.vue'),
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/content',
|
|
|
+ component: () => import('./views/content/Index.vue'),
|
|
|
+ name: '栏目管理'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/article',
|
|
|
+ component: () => import('./views/content/Article.vue'),
|
|
|
+ name: '文章管理'
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
@@ -77,19 +116,22 @@ export default new Router({
|
|
|
show:1,
|
|
|
isLeaf:0,
|
|
|
children:[
|
|
|
- { path: '/user', component: () => import('./views/user/Index.vue'), name: '用户管理' },
|
|
|
+ { path: '/user', component: () => import('./views/user/Index.vue'), name: '用户列表' },
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- path: '/',
|
|
|
+ { path: '/system',
|
|
|
name: '系统管理',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
- show:1,
|
|
|
- isLeaf:0,
|
|
|
- children:[
|
|
|
- { path: '/system/add', component: () => import('./views/user/Add.vue'), name: '新增用户' },
|
|
|
- ]
|
|
|
- },
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/system',
|
|
|
+ component: () => import('./views/system/Index.vue'),
|
|
|
+ name: '账号管理'
|
|
|
+ },
|
|
|
+ { path: '/system/add', component: () => import('./views/user/Add.vue'), name: '新增用户' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
-})
|
|
|
+})
|