180 lines
5.9 KiB
JavaScript
180 lines
5.9 KiB
JavaScript
// 路由
|
|
|
|
|
|
// 视图组件
|
|
const view = {
|
|
tabs: () => import('@/layouts/tabs'),
|
|
blank: () => import('@/layouts/BlankView'),
|
|
page: () => import('@/layouts/PageView')
|
|
}
|
|
|
|
// 请在 src\router\router.map.js 中配置路由 可直接复制该句
|
|
// import MaintenanceRouterMap from '@/router/Middle/transport/Maintenance/router.map.js'
|
|
// 并且在下面的 const routerMap 中导出
|
|
// MaintenanceRouterMap,
|
|
|
|
|
|
// 路由组件注册
|
|
const MaintenanceRouterMap = {
|
|
Maintenance: {
|
|
name: 'Maintenance',
|
|
icon: 'idcard',
|
|
component: view.page,
|
|
meta: {
|
|
invisible: false, // 不在菜单中显示
|
|
},
|
|
authority: {
|
|
permission: ['Maintenance-All'],
|
|
}
|
|
},
|
|
|
|
|
|
MaintenanceList: {
|
|
name: '维修项目列表',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/MaintenanceList',
|
|
meta: {
|
|
invisible: false, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/Maintenance/List'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Maintenance-List"],
|
|
}
|
|
},
|
|
MaintenanceCreate: {
|
|
name: '创建维修项目',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/MaintenanceCreate',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/Maintenance/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Maintenance-Create"],
|
|
}
|
|
},
|
|
MaintenanceUpdate: {
|
|
name: '更新维修项目',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/MaintenanceUpdate',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/Maintenance/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Maintenance-Update"],
|
|
}
|
|
},
|
|
MaintenanceGiornaleLogList: {
|
|
name: '维修记录列表',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/MaintenanceGiornaleLogList',
|
|
meta: {
|
|
invisible: false, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/MaintenanceGiornaleLog/List'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Maintenance-Giornale-Log-List"],
|
|
}
|
|
},
|
|
MaintenanceGiornaleLogCreate: {
|
|
name: '创建维修记录',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/MaintenanceGiornaleLogCreate',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/MaintenanceGiornaleLog/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Maintenance-Giornale-Log-Create"],
|
|
}
|
|
},
|
|
MaintenanceGiornaleLogUpdate: {
|
|
name: '更新维修记录',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/MaintenanceGiornaleLogUpdate/:id',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/MaintenanceGiornaleLog/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Maintenance-Giornale-Log-Update"],
|
|
}
|
|
},
|
|
OtherExpensesLogList: {
|
|
name: '其他费用记录',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/OtherExpensesLogList',
|
|
meta: {
|
|
invisible: false, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/OtherExpensesLog/List'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Other-Expenses-Log-List"],
|
|
}
|
|
},
|
|
OtherExpensesLogCreate: {
|
|
name: '创建其他费用',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/OtherExpensesLogCreate',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/OtherExpensesLog/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Other-Expenses-Log-Create"],
|
|
}
|
|
},
|
|
OtherExpensesLogUpdate: {
|
|
name: '更新其他费用',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/OtherExpensesLogUpdate/:id',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/OtherExpensesLog/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance", "Maintenance-All", "Other-Expenses-Log-Update"],
|
|
}
|
|
},
|
|
|
|
OtherExpensesList: {
|
|
name: '费用项目列表',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/OtherExpensesList',
|
|
meta: {
|
|
invisible: false, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/OtherExpenses/List'),
|
|
authority: {
|
|
permission: ["Maintenance","Maintenance-All","Other-Expenses-List"],
|
|
}
|
|
},
|
|
OtherExpensesCreate: {
|
|
name: '创建费用项目',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/OtherExpensesCreate',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/OtherExpenses/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance","Maintenance-All","Other-Expenses-Create"],
|
|
}
|
|
},
|
|
OtherExpensesUpdate: {
|
|
name: '创建费用项目',
|
|
icon: 'idcard',
|
|
path: '/Maintenance/OtherExpensesUpdate/:id',
|
|
meta: {
|
|
invisible: true, // 不在菜单中显示
|
|
},
|
|
component: () => import('@/pages/Middle/transport/Maintenance/OtherExpenses/Edit'),
|
|
authority: {
|
|
permission: ["Maintenance","Maintenance-All","Other-Expenses-Update"],
|
|
}
|
|
},
|
|
|
|
}
|
|
|
|
export default MaintenanceRouterMap |