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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.variables.find(variable => variable.key === item.field)?.value }}
+
+
+
+
+
+
+
+