36 lines
660 B
JavaScript
36 lines
660 B
JavaScript
import request from '@/utils/request'
|
|
|
|
export function getMyProcessInstancePage(query) {
|
|
return request({
|
|
url: '/bpm/process-instance/my-page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function createProcessInstance(data) {
|
|
return request({
|
|
url: '/bpm/process-instance/create',
|
|
method: 'POST',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function cancelProcessInstance(id, reason) {
|
|
return request({
|
|
url: '/bpm/process-instance/cancel',
|
|
method: 'DELETE',
|
|
data: {
|
|
id,
|
|
reason
|
|
}
|
|
})
|
|
}
|
|
|
|
export function getProcessInstance(id) {
|
|
return request({
|
|
url: '/bpm/process-instance/get?id=' + id,
|
|
method: 'get',
|
|
})
|
|
}
|