表单设计页面,模型基础信息增删
This commit is contained in:
@@ -2,12 +2,12 @@ import createAxios from '@/utils/request'
|
||||
|
||||
import { PROCESS_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = PROCESS_BOOT +'/workflow/category'
|
||||
const MAPPING_PATH = PROCESS_BOOT + '/workflow/wfForm'
|
||||
|
||||
/**
|
||||
* 查询流程分类数据
|
||||
* 查询流程表单数据
|
||||
*/
|
||||
export const listCategory = (data: any) => {
|
||||
export const listWFForm = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/list',
|
||||
method: 'POST',
|
||||
@@ -15,11 +15,21 @@ export const listCategory = (data: any) => {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询表单详细信息
|
||||
*/
|
||||
export const getFormById = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/getFormById?id=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增流程分类
|
||||
* 新增流程表单
|
||||
*/
|
||||
export const addCategory = (data: any) => {
|
||||
export const addWFForm = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/add',
|
||||
method: 'POST',
|
||||
@@ -29,9 +39,9 @@ export const addCategory = (data: any) => {
|
||||
|
||||
|
||||
/**
|
||||
* 更新流程分类
|
||||
* 更新流程表单
|
||||
*/
|
||||
export const updateCategory = (data: any) => {
|
||||
export const updateWFForm = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/update',
|
||||
method: 'POST',
|
||||
@@ -41,9 +51,9 @@ export const updateCategory = (data: any) => {
|
||||
|
||||
|
||||
/**
|
||||
* 删除流程分类
|
||||
* 删除流程表单
|
||||
*/
|
||||
export const deleteCategory = (data: any) => {
|
||||
export const deleteWFForm = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/delete',
|
||||
118
src/api/process-boot/workflow/model.ts
Normal file
118
src/api/process-boot/workflow/model.ts
Normal file
@@ -0,0 +1,118 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
import { PROCESS_BOOT } from '@/utils/constantRequest'
|
||||
|
||||
const MAPPING_PATH = PROCESS_BOOT + '/workflow/model'
|
||||
|
||||
/**
|
||||
* 查询流程模型数据
|
||||
*/
|
||||
export const listWFModel = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/list',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询流程模型的历史数据
|
||||
*/
|
||||
export const listHistoryWFModel = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/historyList',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询模型详细信息
|
||||
*/
|
||||
export const getModelById = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/getModelById?id=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据id查询模型bpmn的xml
|
||||
*/
|
||||
export const getBpmnXmlById = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/getBpmnXmlById?id=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增流程模型
|
||||
*/
|
||||
export const addWFModel = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/add',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新流程模型
|
||||
*/
|
||||
export const updateWFModel = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/update',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存模型中的bpmn模型
|
||||
*/
|
||||
export const saveBpmnXml = (data: any) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/saveBpmnXml',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 设为最新流程模型
|
||||
*/
|
||||
export const latestModel = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/latest?id=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 部署流程模型
|
||||
*/
|
||||
export const deployModel = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/deploy?id=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 删除流程模型
|
||||
*/
|
||||
export const deleteWFModel = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user