Skip to content

Commit 78d8782

Browse files
committed
【功能优化】 代码评审修改
1 parent 6be64a2 commit 78d8782

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/SimpleProcessDesignerV2/src/consts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,9 @@ export enum TriggerTypeEnum {
747747
*/
748748
HTTP_REQUEST = 1,
749749
/**
750-
* 更新流程表单触发器
750+
* 流程表单更新触发器
751751
*/
752-
UPDATE_NORMAL_FORM = 2 // TODO @jason:FORM_UPDATE?
752+
FORM_UPDATE = 2
753753
}
754754

755755
/**
@@ -782,5 +782,5 @@ export type FormTriggerSetting = {
782782

783783
export const TRIGGER_TYPES: DictDataVO[] = [
784784
{ label: 'HTTP 请求', value: TriggerTypeEnum.HTTP_REQUEST },
785-
{ label: '修改表单数据', value: TriggerTypeEnum.UPDATE_NORMAL_FORM }
785+
{ label: '修改表单数据', value: TriggerTypeEnum.FORM_UPDATE }
786786
]

src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
</el-form-item>
123123
</div>
124124
<!-- 表单数据修改触发器 -->
125-
<div v-if="configForm.type === TriggerTypeEnum.UPDATE_NORMAL_FORM">
125+
<div v-if="configForm.type === TriggerTypeEnum.FORM_UPDATE">
126126
<div v-for="(formSetting, index) in configForm.formSettings" :key="index">
127127
<el-card class="w-580px mt-4">
128128
<template #header>
@@ -404,7 +404,7 @@ const saveConfig = async () => {
404404
if (configForm.value.type === TriggerTypeEnum.HTTP_REQUEST) {
405405
configForm.value.formSettings = undefined
406406
}
407-
if (configForm.value.type === TriggerTypeEnum.UPDATE_NORMAL_FORM) {
407+
if (configForm.value.type === TriggerTypeEnum.FORM_UPDATE) {
408408
configForm.value.httpRequestSetting = undefined
409409
}
410410
currentNode.value.triggerSetting = configForm.value
@@ -417,7 +417,7 @@ const getShowText = (): string => {
417417
let showText = ''
418418
if (configForm.value.type === TriggerTypeEnum.HTTP_REQUEST) {
419419
showText = `${configForm.value.httpRequestSetting?.url}`
420-
} else if (configForm.value.type === TriggerTypeEnum.UPDATE_NORMAL_FORM) {
420+
} else if (configForm.value.type === TriggerTypeEnum.FORM_UPDATE) {
421421
for (const [index, setting] of configForm.value.formSettings!.entries()) {
422422
if (!setting.updateFormFields || Object.keys(setting.updateFormFields).length === 0) {
423423
message.warning(`请添加表单设置${index + 1}的修改字段`)

0 commit comments

Comments
 (0)