yxk-20260526-党委会查询督办流程:写一个通用的删除流程方法
This commit is contained in:
+13
-6
@@ -17,6 +17,7 @@ enum Api {
|
||||
startProcess = '/act/process/extActProcess/startMutilProcess',
|
||||
startProcessSchedules = '/tasktask/taskTask/flow-schedules',
|
||||
queryByBusinessId = '/tasktask/taskTask/queryByBusinessId',
|
||||
deleteSingleProcess = '/tasktask/taskTask/deleteSingleProcess',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -115,8 +116,8 @@ export const downloadFile = (url, fileName?, parameter?) => {
|
||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||
window.navigator.msSaveBlob(new Blob([data]), fileName);
|
||||
} else {
|
||||
let url = window.URL.createObjectURL(new Blob([data]));
|
||||
let link = document.createElement('a');
|
||||
const url = window.URL.createObjectURL(new Blob([data]));
|
||||
const link = document.createElement('a');
|
||||
link.style.display = 'none';
|
||||
link.href = url;
|
||||
link.setAttribute('download', fileName);
|
||||
@@ -154,8 +155,8 @@ export const startProcessSchedules = (params) => {
|
||||
return defHttp.post({
|
||||
url: Api.startProcessSchedules,
|
||||
params,
|
||||
})
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 发起流程
|
||||
@@ -173,9 +174,15 @@ export const startProcess = (params) => {
|
||||
* 根据业务ID查询流程列表
|
||||
* @param params
|
||||
*/
|
||||
export const queryByBusinessId = (params) =>
|
||||
defHttp.get({ url: Api.queryByBusinessId, params }, { isTransformResponse: false });
|
||||
export const queryByBusinessId = (params) => defHttp.get({ url: Api.queryByBusinessId, params }, { isTransformResponse: false });
|
||||
|
||||
/**
|
||||
* 删除单个流程实例
|
||||
* @param params { processInstId: string }
|
||||
*/
|
||||
export const deleteSingleProcess = (params) => {
|
||||
return defHttp.post({ url: Api.deleteSingleProcess, params }, { joinParamsToUrl: true, isTransformResponse: false });
|
||||
};
|
||||
|
||||
/**
|
||||
* 【用于评论功能】自定义文件上传-方法
|
||||
|
||||
Reference in New Issue
Block a user