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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
import { FormVO } from './types'
|
|
|
|
|
|
|
|
// 创建工作流的表单定义
|
|
|
|
export const createFormApi = (data: FormVO) => {
|
|
|
|
return defHttp.post({ url: '/bpm/form/create', data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 更新工作流的表单定义
|
|
|
|
export const updateFormApi = (data: FormVO) => {
|
|
|
|
return defHttp.put({ url: '/bpm/form/update', data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除工作流的表单定义
|
|
|
|
export const deleteFormApi = (id: number) => {
|
|
|
|
return defHttp.delete({ url: '/bpm/form/delete?id=' + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得工作流的表单定义
|
|
|
|
export const getFormApi = (id: number) => {
|
|
|
|
return defHttp.get({ url: '/bpm/form/get?id=' + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得工作流的表单定义分页
|
|
|
|
export const getFormPageApi = (params) => {
|
|
|
|
return defHttp.get({ url: '/bpm/form/page', params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得动态表单的精简列表
|
|
|
|
export const getSimpleFormsApi = async () => {
|
|
|
|
return await defHttp.get({ url: '/bpm/form/list-all-simple' })
|
|
|
|
}
|