From d0b0c8d502ec903cf64f731aee34085faad3cd99 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 27 Feb 2025 09:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E3=80=91BPM=EF=BC=9A=E8=A7=A6=E5=8F=91=E5=99=A8=20HTTP=20?= =?UTF-8?q?=E5=BC=82=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SimpleProcessDesignerV2/src/consts.ts | 7 +++---- .../src/nodes-config/TriggerNodeConfig.vue | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/consts.ts b/src/components/SimpleProcessDesignerV2/src/consts.ts index 3ef47989..7f3e3530 100644 --- a/src/components/SimpleProcessDesignerV2/src/consts.ts +++ b/src/components/SimpleProcessDesignerV2/src/consts.ts @@ -757,7 +757,7 @@ export enum TriggerTypeEnum { */ HTTP_REQUEST = 1, /** - * 发起 HTTP 回调请求触发器 + * 接收 HTTP 回调请求触发器 */ HTTP_CALLBACK = 2, /** @@ -768,7 +768,6 @@ export enum TriggerTypeEnum { * 表单数据删除触发器 */ FORM_DELETE = 11 - } /** @@ -802,8 +801,8 @@ export type FormTriggerSetting = { } export const TRIGGER_TYPES: DictDataVO[] = [ - { label: 'HTTP 请求', value: TriggerTypeEnum.HTTP_REQUEST }, - { label: 'HTTP 回调', value: TriggerTypeEnum.HTTP_CALLBACK }, + { label: '发送 HTTP 请求', value: TriggerTypeEnum.HTTP_REQUEST }, + { label: '接收 HTTP 回调', value: TriggerTypeEnum.HTTP_CALLBACK }, { label: '修改表单数据', value: TriggerTypeEnum.FORM_UPDATE }, { label: '删除表单数据', value: TriggerTypeEnum.FORM_DELETE } ] diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue index 135fd93d..3f4109fb 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue @@ -38,8 +38,9 @@
@@ -407,8 +408,7 @@ const changeTriggerType = () => { if (configForm.value.type === TriggerTypeEnum.HTTP_CALLBACK) { configForm.value.httpRequestSetting = - originalSetting?.type === TriggerTypeEnum.HTTP_CALLBACK && - originalSetting.httpRequestSetting + originalSetting?.type === TriggerTypeEnum.HTTP_CALLBACK && originalSetting.httpRequestSetting ? originalSetting.httpRequestSetting : { url: '',