@@ -29,33 +29,33 @@ export const getPageByFinish = (query: ProcessInstanceQuery): AxiosPromise<Proce
2929} ;
3030
3131/**
32- * 通过流程实例id获取历史流程图
32+ * 通过业务id获取历史流程图
3333 */
34- export const getHistoryImage = ( processInstanceId : string ) => {
34+ export const getHistoryImage = ( businessKey : string ) => {
3535 return request ( {
36- url : `/workflow/processInstance/getHistoryImage/${ processInstanceId } ` + '?t' + Math . random ( ) ,
36+ url : `/workflow/processInstance/getHistoryImage/${ businessKey } ` + '?t' + Math . random ( ) ,
3737 method : 'get'
3838 } ) ;
3939} ;
4040
4141/**
42- * 通过流程实例id获取历史流程图运行中 ,历史等节点
42+ * 通过业务id获取历史流程图运行中 ,历史等节点
4343 */
44- export const getHistoryList = ( instanceId : string ) : AxiosPromise < Record < string , any > > => {
44+ export const getHistoryList = ( businessKey : string ) : AxiosPromise < Record < string , any > > => {
4545 return request ( {
46- url : `/workflow/processInstance/getHistoryList/${ instanceId } ` + '?t' + Math . random ( ) ,
46+ url : `/workflow/processInstance/getHistoryList/${ businessKey } ` + '?t' + Math . random ( ) ,
4747 method : 'get'
4848 } ) ;
4949} ;
5050
5151/**
5252 * 获取审批记录
53- * @param processInstanceId 流程实例id
53+ * @param businessKey 业务id
5454 * @returns
5555 */
56- export const getHistoryRecord = ( processInstanceId : string ) => {
56+ export const getHistoryRecord = ( businessKey : string ) => {
5757 return request ( {
58- url : `/workflow/processInstance/getHistoryRecord/${ processInstanceId } ` ,
58+ url : `/workflow/processInstance/getHistoryRecord/${ businessKey } ` ,
5959 method : 'get'
6060 } ) ;
6161} ;
@@ -75,24 +75,24 @@ export const deleteRunInstance = (data: object) => {
7575
7676/**
7777 * 运行中的实例 删除程实例,删除历史记录,删除业务与流程关联信息
78- * @param processInstanceId 流程实例id
78+ * @param businessKey 业务id
7979 * @returns
8080 */
81- export const deleteRunAndHisInstance = ( processInstanceId : string | string [ ] ) => {
81+ export const deleteRunAndHisInstance = ( businessKey : string | string [ ] ) => {
8282 return request ( {
83- url : `/workflow/processInstance/deleteRunAndHisInstance/${ processInstanceId } ` ,
83+ url : `/workflow/processInstance/deleteRunAndHisInstance/${ businessKey } ` ,
8484 method : 'delete'
8585 } ) ;
8686} ;
8787
8888/**
8989 * 已完成的实例 删除程实例,删除历史记录,删除业务与流程关联信息
90- * @param processInstanceId 流程实例id
90+ * @param businessKey 业务id
9191 * @returns
9292 */
93- export const deleteFinishAndHisInstance = ( processInstanceId : string | string [ ] ) => {
93+ export const deleteFinishAndHisInstance = ( businessKey : string | string [ ] ) => {
9494 return request ( {
95- url : `/workflow/processInstance/deleteFinishAndHisInstance/${ processInstanceId } ` ,
95+ url : `/workflow/processInstance/deleteFinishAndHisInstance/${ businessKey } ` ,
9696 method : 'delete'
9797 } ) ;
9898} ;
@@ -112,12 +112,12 @@ export const getPageByCurrent = (query: ProcessInstanceQuery): AxiosPromise<Proc
112112
113113/**
114114 * 撤销流程
115- * @param processInstanceId 流程实例id
115+ * @param businessKey 业务id
116116 * @returns
117117 */
118- export const cancelProcessApply = ( processInstanceId : string ) => {
118+ export const cancelProcessApply = ( businessKey : string ) => {
119119 return request ( {
120- url : `/workflow/processInstance/cancelProcessApply/${ processInstanceId } ` ,
120+ url : `/workflow/processInstance/cancelProcessApply/${ businessKey } ` ,
121121 method : 'post'
122122 } ) ;
123123} ;
0 commit comments