签报详情添加路由

This commit is contained in:
‘huanghaiixia’
2025-12-30 17:12:37 +08:00
parent f23454e4cb
commit 96fe33b8dd
4 changed files with 37 additions and 3 deletions

View File

@ -244,3 +244,26 @@ export const PROCESS_MONITORING: AppRouteRecordRaw[] = [{
},
]
}]
// 自定义页面路由
export const PAGE_CUSTOM_ROUTE: AppRouteRecordRaw[] = [{
path: '',
name: '',
meta: {
title: ''
},
component: LAYOUT,
children: [
{
path: '/approve/Appro/form',
name: 'ApproForm',
component: () => import('/@/views/approve/Appro/components/createForm.vue'),
meta: {
title: (route) => '签报详情'
}
},
]
}];

View File

@ -6,7 +6,8 @@ import {
SYSTEM_ROUTE,
USERCENTER_ROUTE,
FLOW_ROUTE,
PROCESS_MONITORING
PROCESS_MONITORING,
PAGE_CUSTOM_ROUTE
// CUSTOMFORM_ROUTE,
} from '/@/router/routes/basic';
@ -66,6 +67,7 @@ export const basicRoutes = [
SYSTEM_ROUTE,
USERCENTER_ROUTE,
...FLOW_ROUTE,
...PROCESS_MONITORING
...PROCESS_MONITORING,
...PAGE_CUSTOM_ROUTE
// CUSTOMFORM_ROUTE,
];

View File

@ -197,6 +197,9 @@
getOption()
if (pageId.value) {
getInfo(pageId.value)
if (currentRoute.value.query?.disabled) {
isDisable.value = true
}
} else {
formState.empName = userInfo.name
formState.empId = userInfo.id

View File

@ -565,7 +565,13 @@
}
if (btn == 'view') {
router.push({
path: '/approve/Appro/form',
query: {
id: record.id || record.approId,
disabled: true
}
})
}
}