diff --git a/apps/web-antd/src/api/bpm/definition/index.ts b/apps/web-antd/src/api/bpm/definition/index.ts index b7e22bea9..adf26c5ad 100644 --- a/apps/web-antd/src/api/bpm/definition/index.ts +++ b/apps/web-antd/src/api/bpm/definition/index.ts @@ -15,6 +15,7 @@ export namespace BpmProcessDefinitionApi { formType?: number; bpmnXml?: string; simpleModel?: string; + formFields?: string[]; } } diff --git a/apps/web-antd/src/router/routes/modules/bpm.ts b/apps/web-antd/src/router/routes/modules/bpm.ts index 5fc572eb2..02e8b0b1f 100644 --- a/apps/web-antd/src/router/routes/modules/bpm.ts +++ b/apps/web-antd/src/router/routes/modules/bpm.ts @@ -98,6 +98,18 @@ const routes: RouteRecordRaw[] = [ keepAlive: true, }, }, + { + path: 'process-instance/report', + component: () => import('#/views/bpm/processInstance/report/index.vue'), + name: 'BpmProcessInstanceReport', + meta: { + title: '数据报表', + activeMenu: '/bpm/manager/model', + icon: 'carbon:data-2', + hideInMenu: true, + keepAlive: true, + }, + }, ], }, ]; diff --git a/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue b/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue index fed9ecf6a..2f9228f6f 100644 --- a/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue +++ b/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue @@ -284,7 +284,7 @@ function handleModelCommand(command: string, row: any) { break; } case 'handleReport': { - console.warn('报表待实现', row); + handleReport(row); break; } default: { @@ -360,6 +360,17 @@ function handleDefinitionList(row: any) { }); } +/** 跳转到流程报表页面 */ +function handleReport(row: any) { + router.push({ + name: 'BpmProcessInstanceReport', + query: { + processDefinitionId: row.processDefinition.id, + processDefinitionKey: row.key, + }, + }); +} + /** 更新 modelList 模型列表 */ const updateModelList = useDebounceFn(() => { const newModelList = props.categoryInfo.modelList; @@ -567,7 +578,6 @@ const handleRenameSuccess = () => { > {{ row.formName }} -