add 添加表单配置
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DefinitionConfigVO, DefinitionConfigForm } from '@/api/workflow/definitionConfig/types';
|
||||
|
||||
|
||||
/**
|
||||
* 查询表单配置详细
|
||||
* @param id
|
||||
*/
|
||||
export const getByDefId = (definitionId: string | number): AxiosPromise<DefinitionConfigVO> => {
|
||||
return request({
|
||||
url: '/workflow/definitionConfig/getByDefId/' + definitionId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增表单配置
|
||||
* @param data
|
||||
*/
|
||||
export const saveOrUpdate = (data: DefinitionConfigForm) => {
|
||||
return request({
|
||||
url: '/workflow/definitionConfig/saveOrUpdate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除表单配置
|
||||
* @param id
|
||||
*/
|
||||
export const deldefinitionConfig = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/workflow/definitionConfig/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,95 @@
|
||||
import { FormManageVO } from '@/api/workflow/formManage/types';
|
||||
|
||||
export interface DefinitionConfigVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 表单ID
|
||||
*/
|
||||
formId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程定义ID
|
||||
*/
|
||||
definitionId: string | number;
|
||||
|
||||
/**
|
||||
* 流程KEY
|
||||
*/
|
||||
processKey: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 表单管理
|
||||
*/
|
||||
wfFormManageVo: FormManageVO;
|
||||
|
||||
}
|
||||
|
||||
export interface DefinitionConfigForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 表单ID
|
||||
*/
|
||||
formId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程定义ID
|
||||
*/
|
||||
definitionId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程KEY
|
||||
*/
|
||||
processKey?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 表单管理
|
||||
*/
|
||||
wfFormManageVo: FormManageVO;
|
||||
|
||||
|
||||
}
|
||||
|
||||
export interface DefinitionConfigQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 表单ID
|
||||
*/
|
||||
formId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程定义ID
|
||||
*/
|
||||
definitionId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程KEY
|
||||
*/
|
||||
processKey?: string;
|
||||
|
||||
/**
|
||||
* 表单管理
|
||||
*/
|
||||
wfFormManageVo: FormManageVO;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user