|
|
|
@ -26,6 +26,7 @@ const constantRouterComponents = {
|
|
|
|
|
// 默认首页
|
|
|
|
|
Console: () => import('@/views/system/index/welcome'),
|
|
|
|
|
BookingDetail: () => import('@/views/main/BookingLedger/detail'),
|
|
|
|
|
ExpressModuleDetails: () => import('@/views/main/ExpressModule/details'),
|
|
|
|
|
CustomerInformationManagementAdd: () => import('@/views/main/Customer/addForm'),
|
|
|
|
|
CustomerInformationManagementEdit: () => import('@/views/main/Customer/editForm'),
|
|
|
|
|
SendCarAdd: () => import('@/views/main/SendCar/addForm'),
|
|
|
|
@ -347,6 +348,20 @@ const bookingNew = [
|
|
|
|
|
component: 'CustomerInformationManagementEdit'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
// 快递
|
|
|
|
|
const ExpressModule = [
|
|
|
|
|
{
|
|
|
|
|
name: 'ExpressModuleDetails',
|
|
|
|
|
path: '/ExpressModuleDetails',
|
|
|
|
|
pid: 0,
|
|
|
|
|
id: 10031,
|
|
|
|
|
meta: {
|
|
|
|
|
title: '快递详情',
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
component: 'ExpressModuleDetails'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
// 根级菜单
|
|
|
|
|
const rootRouter = {
|
|
|
|
|
key: '',
|
|
|
|
@ -380,6 +395,7 @@ export const generatorDynamicRouter = data => {
|
|
|
|
|
listToTree(userAccount, childrenNav, 0)
|
|
|
|
|
listToTree(booking, childrenNav, 0)
|
|
|
|
|
listToTree(bookingNew, childrenNav, 0)
|
|
|
|
|
listToTree(ExpressModule, childrenNav, 0)
|
|
|
|
|
rootRouter.children = childrenNav
|
|
|
|
|
menuNav.push(rootRouter)
|
|
|
|
|
const routers = generator(menuNav)
|
|
|
|
|