add 添加流程表单配置
This commit is contained in:
38
src/api/workflow/formDefinition/index.ts
Normal file
38
src/api/workflow/formDefinition/index.ts
Normal file
@ -0,0 +1,38 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { FormDefinitionVO, FormDefinitionForm, FormDefinitionQuery } from '@/api/workflow/formDefinition/types';
|
||||
|
||||
|
||||
/**
|
||||
* 查询表单配置详细
|
||||
* @param id
|
||||
*/
|
||||
export const getByDefId = (definitionId: string | number): AxiosPromise<FormDefinitionVO> => {
|
||||
return request({
|
||||
url: '/workflow/formDefinition/getByDefId/' + definitionId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增表单配置
|
||||
* @param data
|
||||
*/
|
||||
export const saveOrUpdate = (data: FormDefinitionForm) => {
|
||||
return request({
|
||||
url: '/workflow/formDefinition/saveOrUpdate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除表单配置
|
||||
* @param id
|
||||
*/
|
||||
export const delFormDefinition = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/workflow/formDefinition/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
81
src/api/workflow/formDefinition/types.ts
Normal file
81
src/api/workflow/formDefinition/types.ts
Normal file
@ -0,0 +1,81 @@
|
||||
export interface FormDefinitionVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 路由地址
|
||||
*/
|
||||
path: string;
|
||||
|
||||
/**
|
||||
* 流程定义ID
|
||||
*/
|
||||
definitionId: string | number;
|
||||
|
||||
/**
|
||||
* 流程KEY
|
||||
*/
|
||||
processKey: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FormDefinitionForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 路由地址
|
||||
*/
|
||||
path?: string;
|
||||
|
||||
/**
|
||||
* 流程定义ID
|
||||
*/
|
||||
definitionId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程KEY
|
||||
*/
|
||||
processKey?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FormDefinitionQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 路由地址
|
||||
*/
|
||||
path?: string;
|
||||
|
||||
/**
|
||||
* 流程定义ID
|
||||
*/
|
||||
definitionId?: string | number;
|
||||
|
||||
/**
|
||||
* 流程KEY
|
||||
*/
|
||||
processKey?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
@ -5,6 +5,7 @@ export interface LeaveVO {
|
||||
endDate: string;
|
||||
leaveDays: number;
|
||||
remark: string;
|
||||
processInstanceVo: any;
|
||||
}
|
||||
|
||||
export interface LeaveForm extends BaseEntity {
|
||||
@ -14,6 +15,7 @@ export interface LeaveForm extends BaseEntity {
|
||||
endDate?: string;
|
||||
leaveDays?: number;
|
||||
remark?: string;
|
||||
processInstanceVo: any;
|
||||
}
|
||||
|
||||
export interface LeaveQuery extends PageQuery {
|
||||
|
@ -36,6 +36,8 @@ export interface TaskVO extends BaseEntity {
|
||||
processDefinitionKey: string;
|
||||
participantVo: ParticipantVo;
|
||||
multiInstance: boolean;
|
||||
businessKey: string;
|
||||
wfFormDefinitionVo: any;
|
||||
}
|
||||
|
||||
export interface VariableVo {
|
||||
|
Reference in New Issue
Block a user