Browse Source

update 增加默认导出

LiuHao 1 year ago
parent
commit
b8eb2dcb40
1 changed files with 15 additions and 2 deletions
  1. 15 2
      src/api/workflow/processInstance/index.ts

+ 15 - 2
src/api/workflow/processInstance/index.ts

@@ -41,9 +41,9 @@ export const getHistoryImage = (processInstanceId: string) => {
 /**
  * 通过流程实例id获取历史流程图运行中,历史等节点
  */
-export const getHistoryList = (processInstanceId: string) => {
+export const getHistoryList = (instanceId: string) => {
   return request({
-    url: `/workflow/processInstance/getHistoryList/${processInstanceId}` + '?t' + Math.random(),
+    url: `/workflow/processInstance/getHistoryList/${instanceId}` + '?t' + Math.random(),
     method: 'get'
   });
 };
@@ -121,3 +121,16 @@ export const cancelProcessApply = (processInstanceId: string) => {
     method: 'post'
   });
 };
+
+export default {
+  getPageByRunning,
+  getPageByFinish,
+  getHistoryImage,
+  getHistoryList,
+  getHistoryRecord,
+  deleteRunInstance,
+  deleteRunAndHisInstance,
+  deleteFinishAndHisInstance,
+  getPageByCurrent,
+  cancelProcessApply
+};