refactor(crm/businessTripApply): 出差申请路由路径从静态路由更改为菜单动态配置路由

dev^2
Yangk 5 days ago
parent 3338d4fd90
commit 4fcbf12442

@ -294,7 +294,7 @@ const handleSelectionChange = (selection: BusinessTripApplyVO[]) => {
/** 新增按钮操作 */
const handleAdd = (command: string) => {
router.push({
path: '/oa/crm/businessTripApply/edit',
path: '/tripapply/businessTripApply/edit',
query: { type: 'add', tripType: command }
});
};
@ -303,7 +303,7 @@ const handleAdd = (command: string) => {
const handleUpdate = (row?: BusinessTripApplyVO) => {
const _tripId = row?.tripId || ids.value[0];
router.push({
path: '/oa/crm/businessTripApply/edit',
path: '/tripapply/businessTripApply/edit',
query: { id: _tripId, type: 'update' }
});
};
@ -312,7 +312,7 @@ const handleUpdate = (row?: BusinessTripApplyVO) => {
const handleView = (row: BusinessTripApplyVO) => {
const _tripId = row?.tripId;
router.push({
path: '/oa/crm/businessTripApply/edit',
path: '/tripapply/businessTripApply/edit',
query: { id: _tripId, type: 'view' }
});
};

Loading…
Cancel
Save