diff --git a/src/components/SimpleProcessDesignerV2/src/consts.ts b/src/components/SimpleProcessDesignerV2/src/consts.ts index 8e9328ab..1c36df02 100644 --- a/src/components/SimpleProcessDesignerV2/src/consts.ts +++ b/src/components/SimpleProcessDesignerV2/src/consts.ts @@ -757,9 +757,17 @@ export enum TriggerTypeEnum { */ HTTP_REQUEST = 1, /** - * 流程表单更新触发器 + * 表单数据更新触发器 */ - FORM_UPDATE = 2 + FORM_UPDATE = 2, + /** + * 表单数据删除触发器 + */ + FORM_DELETE = 3, + /** + * 发起异步 HTTP 请求 + */ + ASYNC_HTTP_REQUEST = 4 } /** @@ -786,13 +794,17 @@ export type FormTriggerSetting = { conditionExpression?: string // 条件组 conditionGroups?: ConditionGroup - // 更新表单字段 - updateFormFields?: Record + // 更新表单字段配置 + updateFormFields?: Record, + // 删除表单字段配置 + deleteFields?: string[] } export const TRIGGER_TYPES: DictDataVO[] = [ { label: 'HTTP 请求', value: TriggerTypeEnum.HTTP_REQUEST }, - { label: '修改表单数据', value: TriggerTypeEnum.FORM_UPDATE } + { label: '异步 HTTP 请求', value: TriggerTypeEnum.ASYNC_HTTP_REQUEST }, + { 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 b2e2e330..cb1b0727 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue @@ -26,7 +26,7 @@
- +
- - - - -
-
- - - - - +
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ +
-
- - - -
-
- -
-
- - 添加一行 - - + + 添加一行 + + +
+
@@ -150,8 +159,8 @@ type="success" effect="light" closable - @close="deleteFormUpdateCondition(formSetting)" - @click="openFormUpdateCondition(index, formSetting)" + @close="deleteFormSettingCondition(formSetting)" + @click="openFormSettingCondition(index, formSetting)" > {{ showConditionText(formSetting) }} @@ -160,7 +169,7 @@ v-else type="primary" text - @click="addFormUpdateCondition(index, formSetting)" + @click="addFormSettingCondition(index, formSetting)" > 添加条件 @@ -231,6 +240,76 @@ 添加设置
+ + +
+
+ + + + + +
+ + {{ showConditionText(formSetting) }} + +
+ + 添加条件 + + + 删除表单字段设置 + +
+ + + +
+
+
+ + + + 添加设置 + +