20200726-入园申请

This commit is contained in:
paidaxing444
2020-07-26 17:00:20 +08:00
parent 0e4dc26da8
commit 5cafc37152
13 changed files with 1596 additions and 181 deletions

View File

@ -26,183 +26,239 @@ import Layout from '@/layout'
// 公共路由
export const constantRoutes = [{
path: '/redirect',
component: Layout,
hidden: true,
children: [{
path: '/redirect/:path(.*)',
component: () =>
import ('@/views/redirect')
}]
},
{
path: '/login',
component: () =>
import ('@/views/login'),
hidden: true
},
{
path: '/404',
component: () =>
import ('@/views/error/404'),
hidden: true
},
{
path: '/401',
component: () =>
import ('@/views/error/401'),
hidden: true
},
{
path: '',
component: Layout,
redirect: 'index',
children: [{
path: 'index',
component: () =>
import ('@/views/index'),
name: '首页',
meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
}]
},
{
path: '/user',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [{
path: 'profile',
component: () =>
import ('@/views/system/user/profile/index'),
name: 'Profile',
meta: { title: '个人中心', icon: 'user' }
}]
},
{
path: '/user/change',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [{
path: 'dept',
component: () =>
import ('@/views/system/user/change/dept/index'),
name: 'Changedept',
meta: { title: '切换岗位', icon: 'user' }
}]
},
{
path: '/dict',
component: Layout,
hidden: true,
children: [{
path: 'type/data/:dictId(\\d+)',
component: () =>
import ('@/views/system/dict/data'),
name: 'Data',
meta: { title: '字典数据', icon: '' }
}]
},
{
path: '/dayflow',
component: Layout,
hidden: true,
children: [{
path: 'dayflowmanger/dayflowtask/:id(\\d+)',
component: () =>
import ('@/views/benyi/dayflow/task'),
name: 'Task',
meta: { title: '一日流程任务', icon: '' }
}]
},
{
path: '/dayflow/dayflowmanger',
component: Layout,
hidden: true,
children: [{
path: 'dayflowtask/standard/:code(\\d+)',
component: () =>
import ('@/views/benyi/dayflow/standard'),
name: 'Standard',
meta: { title: '一日流程标准', icon: '' }
}]
},
{
path: '/dayflow/dayflowmanger/dayflowtask',
component: Layout,
hidden: true,
children: [{
path: 'standard/unscramble/:id(\\d+)',
component: () =>
import ('@/views/benyi/dayflow/unscramble'),
name: 'unscramble',
meta: { title: '一日流程标准解读', icon: '' }
}]
},
{
path: '/video_study',
component: Layout,
hidden: true,
children: [{
path: 'study/detail/:id(\\d+)',
component: () =>
import ('@/views/benyi_train/video_study/detail'),
name: 'Detail',
meta: { title: '培训视频详情', icon: '' }
}]
},
{
path: '/benyi_course/theme',
component: Layout,
hidden: true,
children: [{
path: 'activity/:id(\\d+)',
component: () =>
import ('@/views/benyi/theme/activity'),
name: 'Theme1',
meta: { title: '主题整合内容', icon: '' }
}]
},
{
path: '/benyi_course/math',
component: Layout,
hidden: true,
children: [{
path: 'plan/:id(\\d+)',
component: () =>
import ('@/views/benyi/math/plan'),
name: 'Math1',
meta: { title: '游戏数学方案', icon: '' }
}]
},
{
path: '/job',
component: Layout,
hidden: true,
children: [{
path: 'log',
component: () =>
import ('@/views/monitor/job/log'),
name: 'JobLog',
meta: { title: '调度日志' }
}]
},
{
path: '/gen',
component: Layout,
hidden: true,
children: [{
path: 'edit',
component: () =>
import ('@/views/tool/gen/editTable'),
name: 'GenEdit',
meta: { title: '修改生成配置' }
}]
}
path: '/redirect',
component: Layout,
hidden: true,
children: [{
path: '/redirect/:path(.*)',
component: () =>
import('@/views/redirect')
}]
},
{
path: '/login',
component: () =>
import('@/views/login'),
hidden: true
},
{
path: '/404',
component: () =>
import('@/views/error/404'),
hidden: true
},
{
path: '/401',
component: () =>
import('@/views/error/401'),
hidden: true
},
{
path: '/experience/choose/:id(\\d+)',
component: () =>
import('@/views/benyi/experience/choose'),
hidden: true
},
{
path: '/experience/apply/:id(\\d+)',
component: () =>
import('@/views/benyi/experience/apply'),
hidden: true
},
{
path: '/experience/result/:id(\\d+)',
component: () =>
import('@/views/benyi/experience/result'),
hidden: true
},
{
path: '',
component: Layout,
redirect: 'index',
children: [{
path: 'index',
component: () =>
import('@/views/index'),
name: '首页',
meta: {
title: '首页',
icon: 'dashboard',
noCache: true,
affix: true
}
}]
},
{
path: '/user',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [{
path: 'profile',
component: () =>
import('@/views/system/user/profile/index'),
name: 'Profile',
meta: {
title: '个人中心',
icon: 'user'
}
}]
},
{
path: '/user/change',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [{
path: 'dept',
component: () =>
import('@/views/system/user/change/dept/index'),
name: 'Changedept',
meta: {
title: '切换岗位',
icon: 'user'
}
}]
},
{
path: '/dict',
component: Layout,
hidden: true,
children: [{
path: 'type/data/:dictId(\\d+)',
component: () =>
import('@/views/system/dict/data'),
name: 'Data',
meta: {
title: '字典数据',
icon: ''
}
}]
},
{
path: '/dayflow',
component: Layout,
hidden: true,
children: [{
path: 'dayflowmanger/dayflowtask/:id(\\d+)',
component: () =>
import('@/views/benyi/dayflow/task'),
name: 'Task',
meta: {
title: '一日流程任务',
icon: ''
}
}]
},
{
path: '/dayflow/dayflowmanger',
component: Layout,
hidden: true,
children: [{
path: 'dayflowtask/standard/:code(\\d+)',
component: () =>
import('@/views/benyi/dayflow/standard'),
name: 'Standard',
meta: {
title: '一日流程标准',
icon: ''
}
}]
},
{
path: '/dayflow/dayflowmanger/dayflowtask',
component: Layout,
hidden: true,
children: [{
path: 'standard/unscramble/:id(\\d+)',
component: () =>
import('@/views/benyi/dayflow/unscramble'),
name: 'unscramble',
meta: {
title: '一日流程标准解读',
icon: ''
}
}]
},
{
path: '/video_study',
component: Layout,
hidden: true,
children: [{
path: 'study/detail/:id(\\d+)',
component: () =>
import('@/views/benyi_train/video_study/detail'),
name: 'Detail',
meta: {
title: '培训视频详情',
icon: ''
}
}]
},
{
path: '/benyi_course/theme',
component: Layout,
hidden: true,
children: [{
path: 'activity/:id(\\d+)',
component: () =>
import('@/views/benyi/theme/activity'),
name: 'Theme1',
meta: {
title: '主题整合内容',
icon: ''
}
}]
},
{
path: '/benyi_course/math',
component: Layout,
hidden: true,
children: [{
path: 'plan/:id(\\d+)',
component: () =>
import('@/views/benyi/math/plan'),
name: 'Math1',
meta: {
title: '游戏数学方案',
icon: ''
}
}]
},
{
path: '/job',
component: Layout,
hidden: true,
children: [{
path: 'log',
component: () =>
import('@/views/monitor/job/log'),
name: 'JobLog',
meta: {
title: '调度日志'
}
}]
},
{
path: '/gen',
component: Layout,
hidden: true,
children: [{
path: 'edit',
component: () =>
import('@/views/tool/gen/editTable'),
name: 'GenEdit',
meta: {
title: '修改生成配置'
}
}]
}
]
export default new Router({
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({
y: 0
}),
routes: constantRoutes
})