diff --git a/src/components/SimpleProcessDesignerV2/src/consts.ts b/src/components/SimpleProcessDesignerV2/src/consts.ts index d4e59155..4f66a271 100644 --- a/src/components/SimpleProcessDesignerV2/src/consts.ts +++ b/src/components/SimpleProcessDesignerV2/src/consts.ts @@ -246,15 +246,15 @@ export type AssignEmptyHandler = { export type ListenerHandler = { enable: boolean path?: string - header?: ListenerParam[] - body?: ListenerParam[] + header?: HttpRequestParam[] + body?: HttpRequestParam[] } -export type ListenerParam = { +export type HttpRequestParam = { key: string type: number value: string } -export enum ListenerParamTypeEnum { +export enum BpmHttpRequestParamTypeEnum { /** * 固定值 */ @@ -264,7 +264,7 @@ export enum ListenerParamTypeEnum { */ FROM_FORM = 2 } -export const LISTENER_MAP_TYPES = [ +export const BPM_HTTP_REQUEST_PARAM_TYPES = [ { value: 1, label: '固定值' @@ -710,7 +710,7 @@ export type RouterSetting = { conditionGroups: ConditionGroup } -// ==================== 触发器相关定义 ==================== +// ==================== 触发器相关定义 ==================== /** * 触发器节点结构定义 */ @@ -736,9 +736,9 @@ export type HttpRequestTriggerSetting = { // 请求 URL url: string // 请求头参数设置 - header?: ListenerParam[] // TODO 需要重命名一下 + header?: HttpRequestParam[] // 请求体参数设置 - body?: ListenerParam[] + body?: HttpRequestParam[] } export const TRIGGER_TYPES: DictDataVO[] = [ diff --git a/src/components/SimpleProcessDesignerV2/src/node.ts b/src/components/SimpleProcessDesignerV2/src/node.ts index eba4c7ef..76932088 100644 --- a/src/components/SimpleProcessDesignerV2/src/node.ts +++ b/src/components/SimpleProcessDesignerV2/src/node.ts @@ -14,7 +14,7 @@ import { AssignStartUserHandlerType, AssignEmptyHandlerType, FieldPermissionType, - ListenerParam + HttpRequestParam } from './consts' import { parseFormFields } from '@/components/FormCreate/src/utils' @@ -139,20 +139,20 @@ export type UserTaskFormType = { taskCreateListenerEnable?: boolean taskCreateListenerPath?: string taskCreateListener?: { - header: ListenerParam[], - body: ListenerParam[] + header: HttpRequestParam[], + body: HttpRequestParam[] } taskAssignListenerEnable?: boolean taskAssignListenerPath?: string taskAssignListener?: { - header: ListenerParam[], - body: ListenerParam[] + header: HttpRequestParam[], + body: HttpRequestParam[] } taskCompleteListenerEnable?: boolean taskCompleteListenerPath?: string taskCompleteListener?:{ - header: ListenerParam[], - body: ListenerParam[] + header: HttpRequestParam[], + body: HttpRequestParam[] } signEnable: boolean reasonRequire: boolean diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue index 4a21af05..9c37f009 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue @@ -16,7 +16,7 @@
@@ -47,7 +47,7 @@ }" > @@ -86,7 +86,7 @@
@@ -117,7 +117,7 @@ }" > @@ -141,7 +141,7 @@