deployService.js
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import request from '@/utils/request'
import commonUtil from "@/utils/common";
// 获取模型数据
export const getProcesslists = (data) => {
const fd = commonUtil.objectToFormData(data);
return request({
url: '/flow/manage/getprocesslists?pageNum=1&pageSize=10',
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
data: fd
})
}
// 上传
export const uploadProcess = (data) => {
const fd = commonUtil.objectToFormData(data);
return request({
url: '/flow/manage/uploadworkflow',
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
data: fd
})
}
// 转换模型
export const exchangeById = id => {
return request({
url: `/flow/manage/exchangeProcessToModel/${id}`,
method: 'get'
});
}
// 删除流程信息
export const deleteProcessByDeployId = deployId => {
const data = {
ids: deployId
};
return request({
url: `/flow/manage/remove/${deployId}`,
method: 'post',
data: commonUtil.objectToFormData(data)
});
}
// 挂起流程
export const suspendProcess = params => {
return request({
url: `/flow/manage/suspendProcessDefinition`,
method: 'get',
params
});
}
// 激活
export const activateProcess = params => {
return request({
url: `/flow/manage/activateProcessDefinition`,
method: 'get',
params
});
}