fix(借库菜单): 调整路由顺序 + 统一菜单命名

This commit is contained in:
DXC
2026-06-12 14:21:03 +08:00
parent 7ef22a3830
commit 6f5652b90e

View File

@ -209,27 +209,17 @@ const routes: Array<RouteRecordRaw> = [
meta: { title: '借库管理', icon: 'Operation' }, meta: { title: '借库管理', icon: 'Operation' },
redirect: '/operation/borrow', redirect: '/operation/borrow',
children: [ children: [
{
path: 'borrow',
name: 'OpBorrow',
component: () => import('@/views/transaction/borrow.vue'),
meta: { title: '借库' }
},
{
path: 'borrow_approval',
name: 'BorrowApproval',
component: () => import('@/views/borrow/approval/index.vue'),
meta: {
title: '借库审批',
icon: 'Stamp',
roles: ['SUPER_ADMIN', 'SUPERVISOR']
}
},
{ {
path: 'borrow_apply', path: 'borrow_apply',
name: 'BorrowApply', name: 'BorrowApply',
component: () => import('@/views/borrow/apply/index.vue'), component: () => import('@/views/borrow/apply/index.vue'),
meta: { title: '借库申请' } meta: { title: '借库选单' }
},
{
path: 'borrow',
name: 'OpBorrow',
component: () => import('@/views/transaction/borrow.vue'),
meta: { title: '扫码借库' }
}, },
{ {
path: 'repair', path: 'repair',
@ -242,6 +232,16 @@ const routes: Array<RouteRecordRaw> = [
name: 'OpRecords', name: 'OpRecords',
component: () => import('@/views/transaction/records.vue'), component: () => import('@/views/transaction/records.vue'),
meta: { title: '借还记录' } meta: { title: '借还记录' }
},
{
path: 'borrow_approval',
name: 'BorrowApproval',
component: () => import('@/views/borrow/approval/index.vue'),
meta: {
title: '借库审批',
icon: 'Stamp',
roles: ['SUPER_ADMIN', 'SUPERVISOR']
}
} }
] ]
}, },