You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.2 KiB
102 lines
2.2 KiB
/** 项目管理路由 */
|
|
import Layout from '@/layout/firstLayout'
|
|
import basedataRouter from './basedata'
|
|
import businessdataRouter from './businessdata'
|
|
import wheeldataRouter from './wheeldata'
|
|
import vwdataRouter from './vwdata'
|
|
import vwoutdataRouter from './vw-out-data'
|
|
import bentengdataRouter from './bentengdata'
|
|
import BTOutDataRouter from './benteng-out-data'
|
|
import JFdataRouter from './jfdata'
|
|
import JFOutDataRouter from './jf-out-data'
|
|
|
|
|
|
const customerAuth = {
|
|
requiresAuth: true,
|
|
index: 1,
|
|
type: 'first',
|
|
subType: 'customer'
|
|
}
|
|
|
|
const customerRouter = {
|
|
path: 'customer',
|
|
meta: {
|
|
icon: 'iconsystem',
|
|
title: '系统管理',
|
|
...customerAuth
|
|
},
|
|
hidden: false,
|
|
children: [
|
|
{
|
|
path: 'dashboard',
|
|
component: () => import('@/views/dashboard/admin/index'),
|
|
name: 'Dashboard',
|
|
meta: {
|
|
title: '系统首页',
|
|
icon: 'iconsystem',
|
|
affix: true,
|
|
}
|
|
},
|
|
{
|
|
path: 'user',
|
|
component: () => import('@/views/user/index'),
|
|
name: 'User',
|
|
meta: {
|
|
title: '用户管理',
|
|
roles: ['AbpIdentity.Users'],
|
|
icon: 'user'
|
|
}
|
|
},
|
|
{
|
|
path: 'role',
|
|
component: () => import('@/views/role/index'),
|
|
name: 'Role',
|
|
hidden: true,
|
|
meta: {
|
|
title: '角色管理',
|
|
roles: ['AbpIdentity.Roles'],
|
|
icon: 'role'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
const fistRouter = {
|
|
path: '/first',
|
|
component: Layout,
|
|
redirect: '/first/dashboard',
|
|
name: 'first',
|
|
hidden: false,
|
|
meta: {
|
|
requiresAuth: true,
|
|
title: '系统管理',
|
|
index: 0,
|
|
type: 'first',
|
|
icon: 'iconcrm'
|
|
},
|
|
children: [
|
|
...customerRouter.children,
|
|
...basedataRouter.children,
|
|
...businessdataRouter.children,
|
|
...wheeldataRouter.children,
|
|
...vwdataRouter.children,
|
|
...vwoutdataRouter.children,
|
|
...bentengdataRouter.children,
|
|
...BTOutDataRouter.children,
|
|
...JFdataRouter.children,
|
|
...JFOutDataRouter.children
|
|
]
|
|
}
|
|
export default fistRouter
|
|
export const vueTestRouterMenu = [
|
|
customerRouter,
|
|
basedataRouter,
|
|
businessdataRouter,
|
|
wheeldataRouter,
|
|
vwdataRouter,
|
|
vwoutdataRouter,
|
|
bentengdataRouter,
|
|
BTOutDataRouter,
|
|
JFdataRouter,
|
|
JFOutDataRouter
|
|
]
|
|
|