|
|
|
@ -26,7 +26,6 @@ import Layout from '@/layout'
|
|
|
|
|
activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 公共路由
|
|
|
|
|
export const constantRoutes = [
|
|
|
|
|
{
|
|
|
|
@ -65,20 +64,6 @@ export const constantRoutes = [
|
|
|
|
|
component: () => import('@/views/test/index'),
|
|
|
|
|
hidden: true
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// path: '',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// redirect: 'index',
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'index',
|
|
|
|
|
// component: () => import('@/views/index'),
|
|
|
|
|
// name: 'Index',
|
|
|
|
|
// meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
path: '/user',
|
|
|
|
|
component: Layout,
|
|
|
|
@ -115,17 +100,16 @@ export const dynamicRoutes = [{
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/index',
|
|
|
|
|
path: '/transactionRecords',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'list',
|
|
|
|
|
permissions: ['system:user:edit'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'list',
|
|
|
|
|
path: 'index',
|
|
|
|
|
component: () => import('@/views/transaction/index'),
|
|
|
|
|
name: 'list',
|
|
|
|
|
meta: { title: '交易记录', icon: 'dashboard', affix: true, activeMenu: '/index' }
|
|
|
|
|
name: 'transactionRecords',
|
|
|
|
|
meta: { title: '交易记录', icon: 'null', affix: true, activeMenu: '/index' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@ -144,16 +128,16 @@ export const dynamicRoutes = [{
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/homepage',
|
|
|
|
|
path: '/task',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
permissions: ['system:user:edit'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'home',
|
|
|
|
|
path: 'homepageage',
|
|
|
|
|
component: () => import('@/views/homepage/index.vue'),
|
|
|
|
|
name: 'Index',
|
|
|
|
|
meta: { title: '首页', affix: true, activeMenu: '/training/List' }
|
|
|
|
|
name: 'homepageage',
|
|
|
|
|
meta: { title: '任务主页', affix: true, activeMenu: '/training/List' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@ -164,9 +148,9 @@ export const dynamicRoutes = [{
|
|
|
|
|
permissions: ['system:user:edit'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
path: 'homepagege',
|
|
|
|
|
component: () => import('@/views/PracticeZone/index.vue'),
|
|
|
|
|
name: 'Index',
|
|
|
|
|
name: 'PracticeZone',
|
|
|
|
|
meta: { title: '练习专区', affix: true, activeMenu: '/training/List' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@ -195,7 +179,7 @@ export const dynamicRoutes = [{
|
|
|
|
|
path: 'case',
|
|
|
|
|
component: () => import('@/views/teachingpan/index.vue'),
|
|
|
|
|
name: 'teachingPlan',
|
|
|
|
|
meta: { title: '实训教案', icon: 'teachingplan', affix: true, activeMenu: '/teachingPlan/case' }
|
|
|
|
|
meta: { title: '实训教案', icon: 'teachingplan', affix: true}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@ -209,7 +193,7 @@ export const dynamicRoutes = [{
|
|
|
|
|
path: 'lowcore',
|
|
|
|
|
component: () => import('@/views/quotation/index.vue'),
|
|
|
|
|
name: 'lowcore',
|
|
|
|
|
meta: { title: '行情中心', icon: 'market', affix: true, activeMenu: '/teachingPlan/case' }
|
|
|
|
|
meta: { title: '行情中心', icon: 'market', affix: true}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@ -282,10 +266,7 @@ export const dynamicRoutes = [{
|
|
|
|
|
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}, {
|
|
|
|
|
path: '*',
|
|
|
|
|
redirect: '/404'
|
|
|
|
|
}
|
|
|
|
|
}, { path: '*', redirect: '/404'}
|
|
|
|
|
]
|
|
|
|
|
// 教师端路由
|
|
|
|
|
export const teacher = [
|
|
|
|
|