forked from xxhjsb/hbt-prevention-ui
24 lines
911 B
TypeScript
24 lines
911 B
TypeScript
import BaseService from "hbt-common/service/base.service"
|
|
import type { AxiosResponse } from 'axios'
|
|
import { ActionResult } from "hbt-common/models/actionResult";
|
|
export default class WorkFlowService extends BaseService<any>{
|
|
constructor(){
|
|
super()
|
|
}
|
|
|
|
//创建流程
|
|
public startWorkFlow(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
|
const url = this.prefix.bpm+'/task/createProcess';
|
|
return this.post(url,params)
|
|
}
|
|
|
|
public again(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
|
const url = this.prefix.bpm+'/task/candidate/set';
|
|
return this.post(url,params,{},true)
|
|
}
|
|
//处理流程
|
|
public taskHandle(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
|
const url = this.prefix.bpm+'/task/taskHandle';
|
|
return this.post(url,params,{},true)
|
|
}
|
|
} |