FlowEngine.js
2.2 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import request from '@/utils/request'
// 获取流程引擎列表
export function FlowEngineList(data) {
return request({
url: `/workflow/Engine/FlowEngine`,
method: 'get',
data
})
}
// 获取流程引擎信息
export function FlowEngineInfo(id) {
return request({
url: `/workflow/Engine/FlowEngine/${id}`,
method: 'get'
})
}
// 删除流程引擎
export function Delete(id) {
return request({
url: `/workflow/Engine/FlowEngine/${id}`,
method: 'DELETE'
})
}
// 新建流程引擎
export function Create(data) {
return request({
url: `/workflow/Engine/FlowEngine`,
method: 'post',
data
})
}
// 更新流程引擎
export function Update(data) {
return request({
url: `/workflow/Engine/FlowEngine/${data.id}`,
method: 'PUT',
data
})
}
// 复制流程表单
export function Copy(id) {
return request({
url: `/workflow/Engine/FlowEngine/${id}/Actions/Copy`,
method: 'post'
})
}
// 导出流程表单
export function exportData(id) {
return request({
url: `/workflow/Engine/FlowEngine/${id}/Actions/ExportData`,
method: 'GET'
})
}
// 发布流程引擎
export function Release(id) {
return request({
url: `/workflow/Engine/FlowEngine/Release/${id}`,
method: 'post'
})
}
// 停止流程引擎
export function Stop(id) {
return request({
url: `/workflow/Engine/FlowEngine/Stop/${id}`,
method: 'post'
})
}
// 列表ListAll
export function FlowEngineListAll() {
return request({
url: `/workflow/Engine/FlowEngine/ListAll`,
method: 'get'
})
}
// 流程引擎下拉框
export function FlowEngineSelector(type) {
return request({
url: `/workflow/Engine/FlowEngine/Selector`,
method: 'get',
data: { type }
})
}
// 流程表单主表属性
export function getFormDataFields(id) {
return request({
url: `/workflow/Engine/FlowEngine/${id}/FormDataFields`,
method: 'get'
})
}
// 流程表单数据
export function FieldDataSelect(id) {
return request({
url: `/workflow/Engine/FlowEngine/${id}/FieldDataSelect`,
method: 'get'
})
}
// 获取流程表单详情
export function getFlowTaskData(flowId, id) {
return request({
url: `/workflow/Engine/FlowTask/${flowId}/${id}`,
method: 'get'
})
}