From 52c393a04b9f01e56194ef5e99027cd4a87abaed Mon Sep 17 00:00:00 2001 From: LesanOuO <1960681385@qq.com> Date: Sat, 25 Jan 2025 13:29:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20BPM-=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/processInstance/index.ts | 4 + .../bpm/model/CategoryDraggableModel.vue | 17 ++ .../bpm/processInstance/report/index.vue | 183 ++++++++++++++++++ 3 files changed, 204 insertions(+) create mode 100644 src/views/bpm/processInstance/report/index.vue diff --git a/src/api/bpm/processInstance/index.ts b/src/api/bpm/processInstance/index.ts index 9a99a91e..32cadc2c 100644 --- a/src/api/bpm/processInstance/index.ts +++ b/src/api/bpm/processInstance/index.ts @@ -60,6 +60,10 @@ export const getProcessInstanceManagerPage = async (params: any) => { return await request.get({ url: '/bpm/process-instance/manager-page', params }) } +export const getProcessInstanceReportPage = async (params: any) => { + return await request.get({ url: '/bpm/process-instance/report-page', params }) +} + export const createProcessInstance = async (data) => { return await request.post({ url: '/bpm/process-instance/create', data: data }) } diff --git a/src/views/bpm/model/CategoryDraggableModel.vue b/src/views/bpm/model/CategoryDraggableModel.vue index bcbd47d2..1a8c37a8 100644 --- a/src/views/bpm/model/CategoryDraggableModel.vue +++ b/src/views/bpm/model/CategoryDraggableModel.vue @@ -192,6 +192,13 @@ 历史 + + 报表 + useAppStore().getIsDark) // 是否黑暗模式 +const router = useRouter() // 路由 const isModelSorting = ref(false) // 是否正处于排序状态 const originalData = ref([]) // 原始数据 @@ -349,6 +357,15 @@ const handleModelCommand = (command: string, row: any) => { case 'handleClean': handleClean(row) break + case 'handleReport': + router.push({ + name: 'BpmProcessInstanceReport', + query: { + processDefinitionId: row.processDefinition.id, + processDefinitionKey: row.key + } + }) + break default: break } diff --git a/src/views/bpm/processInstance/report/index.vue b/src/views/bpm/processInstance/report/index.vue new file mode 100644 index 00000000..54bdd522 --- /dev/null +++ b/src/views/bpm/processInstance/report/index.vue @@ -0,0 +1,183 @@ + +