1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
| import type { RouteRecordRaw } from 'vue-router';
|
| const routes: RouteRecordRaw[] = [
| {
| path: '/bpm/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,
| noBasicLayout: false,
| },
| props: (route) => {
| return {
| id: route.query.id,
| taskId: route.query.taskId,
| activityId: route.query.activityId,
| };
| },
| },
| {
| path: '/bpm',
| name: 'bpm',
| meta: {
| title: '工作流',
| hideInMenu: true,
| },
| children: [
| {
| path: '/bpm/manager/form/edit',
| name: 'BpmFormEditor',
| component: () => import('#/views/bpm/form/designer/index.vue'),
| meta: {
| title: '设计流程表单',
| activePath: '/bpm/manager/form',
| },
| props: (route) => {
| return {
| id: route.query.id,
| type: route.query.type,
| copyId: route.query.copyId,
| };
| },
| },
| {
| 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,
| },
| },
| {
| 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,
| },
| },
| {
| 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,
| },
| },
| {
| path: 'process-instance/report',
| component: () => import('#/views/bpm/processInstance/report/index.vue'),
| name: 'BpmProcessInstanceReport',
| meta: {
| title: '数据报表',
| activePath: '/bpm/manager/model',
| icon: 'carbon:data-2',
| hideInMenu: true,
| keepAlive: true,
| },
| },
| ],
| },
| ];
|
| export default routes;
|
|