import request from '@/utils/request' // 获取全部流程列表 export function FetchInitFlowAll(params) { return request({ url: 'api/flowable/initFlowAll', method: 'get', params }) } // 获取运行中/历史流程列表 export function FetchFlowList(params) { return request({ url: 'api/flowable/getFlowList', method: 'get', params }) } // 部署 export function FetchDeloy(data) { return request({ url: 'api/flowable/deploy', method: 'post', data }) } // 激活挂起 export function FetchSuspendActivate(params) { return request({ url: 'api/flowable/suspendActivate', method: 'get', params }) } // 根据key获取历史版本 export function FetchAllByKey(params) { return request({ url: 'api/flowable/getAllByKey', method: 'get', params }) } // 下载 export function FetchLeadingOutModelXml(params) { return request({ url: 'api/flowable/leadingOutModelXml', method: 'get', params }) } export function FetchGenProcessDiagram(params) { return request({ url: 'api/flowable/genProcessDiagram', method: 'get', params }) } // 根据部署id获取流程图 export function FetchFindFolwImgByModelId(params) { return request({ url: 'api/flowable/findFolwImgByModelId', method: 'get', params }) } // 根据部署id获取流程图 export function FetchTaskByProcinstId(params) { return request({ url: 'api/flowable/getTaskByProcinstId', method: 'get', params }) } export default { FetchInitFlowAll, FetchFlowList, FetchDeloy, FetchSuspendActivate, FetchAllByKey, FetchLeadingOutModelXml, FetchFindFolwImgByModelId, FetchTaskByProcinstId }