|
|
@@ -36,29 +36,11 @@ export default new Router({
|
|
|
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: '文章管理'
|
|
|
- // },
|
|
|
- // ]
|
|
|
- // },
|
|
|
+
|
|
|
{
|
|
|
path: '/',
|
|
|
name: '报名信息',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
show:1,
|
|
|
isLeaf:0,
|
|
|
@@ -71,52 +53,101 @@ export default new Router({
|
|
|
{
|
|
|
path: '/',
|
|
|
name: '培训计划',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
- show:1,
|
|
|
- isLeaf:0,
|
|
|
- children:[
|
|
|
- { path: '/classes', component: () => import('./views/classes/Index.vue'), name: '班级管理' },
|
|
|
- { path: '/classes/add', component: () => import('./views/classes/Add.vue'), name: '新增班级' },
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/classes',
|
|
|
+ component: () => import('./views/classes/Index.vue'),
|
|
|
+ name: '班级管理'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/classes/add',
|
|
|
+ component: () => import('./views/classes/Add.vue'),
|
|
|
+ name: '新增班级'
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
path: '/',
|
|
|
name: '在线培训',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
- show:1,
|
|
|
- isLeaf:0,
|
|
|
- children:[
|
|
|
- { path: '/papers', component: () => import('./views/paper/Index.vue'), name: '试卷管理' },
|
|
|
- { path: '/videos', component: () => import('./views/videos/Index.vue'), name: '视频管理' },
|
|
|
- { path: '/videos/add', component: () => import('./views/videos/Add.vue'), name: '新增视频' },
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/papers',
|
|
|
+ component: () => import('./views/paper/Index.vue'),
|
|
|
+ name: '试卷管理'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/videos',
|
|
|
+ component: () => import('./views/videos/Index.vue'),
|
|
|
+ name: '视频管理'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/videos/add',
|
|
|
+ component: () => import('./views/videos/Add.vue'),
|
|
|
+ name: '新增视频'
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
path: '/',
|
|
|
name: '用户管理',
|
|
|
- icon:'el-icon-menu',
|
|
|
+ icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
- show:1,
|
|
|
- isLeaf:0,
|
|
|
- children:[
|
|
|
- { path: '/user', component: () => import('./views/user/Index.vue'), name: '用户列表' },
|
|
|
+ show: 1,
|
|
|
+ isLeaf: 0,
|
|
|
+ children: [{
|
|
|
+ path: '/user',
|
|
|
+ component: () => import('./views/user/Index.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: '文章管理'
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
- { path: '/system',
|
|
|
+ {
|
|
|
+ path: '/system',
|
|
|
name: '系统管理',
|
|
|
icon: 'el-icon-menu',
|
|
|
component: () => import('./views/Home.vue'),
|
|
|
show: 1,
|
|
|
isLeaf: 0,
|
|
|
children: [{
|
|
|
- path: '/system',
|
|
|
- component: () => import('./views/system/Index.vue'),
|
|
|
- name: '账号管理'
|
|
|
- },
|
|
|
- { path: '/system/add', component: () => import('./views/user/Add.vue'), name: '新增用户' },
|
|
|
- ]
|
|
|
+ path: '/system',
|
|
|
+ component: () => import('./views/system/Index.vue'),
|
|
|
+ name: '账号管理'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/system/add',
|
|
|
+ component: () => import('./views/user/Add.vue'),
|
|
|
+ name: '新增用户',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/system/addAccount',
|
|
|
+ component: () => import('./views/system/AddAccount.vue'),
|
|
|
+ name: '新增账户'
|
|
|
+ },
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
})
|