2025-05-07 23:57:41 +08:00
|
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
|
|
|
{
|
|
|
|
|
path: '/bpm',
|
|
|
|
|
name: 'bpm',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '工作流',
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'process-instance/detail',
|
|
|
|
|
component: () => import('#/views/bpm/processInstance/detail/index.vue'),
|
|
|
|
|
name: 'BpmProcessInstanceDetail',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '流程详情',
|
|
|
|
|
activePath: '/bpm/task/my',
|
|
|
|
|
icon: 'ant-design:history-outlined',
|
|
|
|
|
keepAlive: false,
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
},
|
|
|
|
|
props: (route) => {
|
|
|
|
|
return {
|
|
|
|
|
id: route.query.id,
|
|
|
|
|
taskId: route.query.taskId,
|
|
|
|
|
activityId: route.query.activityId,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-05-14 01:20:11 +08:00
|
|
|
{
|
|
|
|
|
path: '/bpm/manager/form/edit',
|
|
|
|
|
name: 'BpmFormEditor',
|
2025-05-21 01:29:03 +08:00
|
|
|
component: () => import('#/views/bpm/form/designer/index.vue'),
|
2025-05-14 01:20:11 +08:00
|
|
|
meta: {
|
2025-10-20 22:06:36 +08:00
|
|
|
title: '设计流程表单',
|
2025-05-14 01:20:11 +08:00
|
|
|
activePath: '/bpm/manager/form',
|
|
|
|
|
},
|
|
|
|
|
props: (route) => {
|
|
|
|
|
return {
|
|
|
|
|
id: route.query.id,
|
|
|
|
|
type: route.query.type,
|
|
|
|
|
copyId: route.query.copyId,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-05-16 14:05:52 +08:00
|
|
|
{
|
|
|
|
|
path: 'manager/model/create',
|
|
|
|
|
component: () => import('#/views/bpm/model/form/index.vue'),
|
|
|
|
|
name: 'BpmModelCreate',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '创建流程',
|
|
|
|
|
activePath: '/bpm/manager/model',
|
|
|
|
|
icon: 'carbon:flow-connection',
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-06-08 23:41:20 +08:00
|
|
|
{
|
|
|
|
|
path: 'manager/model/:type/:id',
|
|
|
|
|
component: () => import('#/views/bpm/model/form/index.vue'),
|
|
|
|
|
name: 'BpmModelUpdate',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '修改流程',
|
|
|
|
|
activePath: '/bpm/manager/model',
|
|
|
|
|
icon: 'carbon:flow-connection',
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-06-10 22:35:38 +08:00
|
|
|
{
|
|
|
|
|
path: 'manager/definition',
|
|
|
|
|
component: () => import('#/views/bpm/model/definition/index.vue'),
|
|
|
|
|
name: 'BpmProcessDefinition',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '流程定义',
|
|
|
|
|
activePath: '/bpm/manager/model',
|
|
|
|
|
icon: 'carbon:flow-modeler',
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-06-15 10:56:53 +08:00
|
|
|
{
|
|
|
|
|
path: 'process-instance/report',
|
|
|
|
|
component: () => import('#/views/bpm/processInstance/report/index.vue'),
|
|
|
|
|
name: 'BpmProcessInstanceReport',
|
|
|
|
|
meta: {
|
|
|
|
|
title: '数据报表',
|
2025-09-21 21:59:01 +08:00
|
|
|
activePath: '/bpm/manager/model',
|
2025-06-15 10:56:53 +08:00
|
|
|
icon: 'carbon:data-2',
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-05-07 23:57:41 +08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default routes;
|