mirror of https://gitee.com/lmlz_0/dc-ui.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.2 KiB
69 lines
1.2 KiB
2 years ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询流程表单列表
|
||
|
export function listForm(query) {
|
||
|
return request({
|
||
|
url: '/system/form/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
export function listAllForm(query) {
|
||
|
return request({
|
||
|
url: '/system/form/formList',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询流程表单详细
|
||
|
export function getForm(formId) {
|
||
|
return request({
|
||
|
url: '/system/form/' + formId,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增流程表单
|
||
|
export function addForm(data) {
|
||
|
return request({
|
||
|
url: '/system/form',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改流程表单
|
||
|
export function updateForm(data) {
|
||
|
return request({
|
||
|
url: '/system/form',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
// 挂载表单
|
||
|
export function addDeployForm(data) {
|
||
|
return request({
|
||
|
url: '/system/form/addDeployForm',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除流程表单
|
||
|
export function delForm(formId) {
|
||
|
return request({
|
||
|
url: '/flowable/form/' + formId,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 导出流程表单
|
||
|
export function exportForm(query) {
|
||
|
return request({
|
||
|
url: '/flowable/form/export',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|