表单预览和修改
This commit is contained in:
@ -1,8 +1,20 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export const listCategory = (query) =>
|
||||
export const listAllCategory = (query) =>
|
||||
request({
|
||||
url: "/flowable/category/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
export const addCategory = (data) =>
|
||||
request({
|
||||
url: "/flowable/category",
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
export const delCategory = (ids) =>
|
||||
request({
|
||||
url: "/flowable/category",
|
||||
method: "delete",
|
||||
data: { ids }
|
||||
});
|
||||
|
||||
51
src/api/flowable/deploy.js
Normal file
51
src/api/flowable/deploy.js
Normal file
@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询流程部署列表
|
||||
export function listDeploy(query) {
|
||||
return request({
|
||||
url: '/workflow/deploy/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function listPublish(query) {
|
||||
return request({
|
||||
url: '/workflow/deploy/publishList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取流程模型流程图
|
||||
export function getBpmnXml(definitionId) {
|
||||
return request({
|
||||
url: '/workflow/deploy/bpmnXml/' + definitionId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程状态
|
||||
export function changeState(params) {
|
||||
return request({
|
||||
url: '/workflow/deploy/changeState',
|
||||
method: 'put',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程部署
|
||||
export function delDeploy(deployIds) {
|
||||
return request({
|
||||
url: '/workflow/deploy/' + deployIds,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程部署关联表单信息
|
||||
export function getFormByDeployId(deployId) {
|
||||
return request({
|
||||
url: '/workflow/deploy/form/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user