File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/components/SimpleProcessDesignerV2/src Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -747,9 +747,9 @@ export enum TriggerTypeEnum {
747
747
*/
748
748
HTTP_REQUEST = 1 ,
749
749
/**
750
- * 更新流程表单触发器
750
+ * 流程表单更新触发器
751
751
*/
752
- UPDATE_NORMAL_FORM = 2 // TODO @jason :FORM_UPDATE?
752
+ FORM_UPDATE = 2
753
753
}
754
754
755
755
/**
@@ -782,5 +782,5 @@ export type FormTriggerSetting = {
782
782
783
783
export const TRIGGER_TYPES : DictDataVO [ ] = [
784
784
{ label : 'HTTP 请求' , value : TriggerTypeEnum . HTTP_REQUEST } ,
785
- { label : '修改表单数据' , value : TriggerTypeEnum . UPDATE_NORMAL_FORM }
785
+ { label : '修改表单数据' , value : TriggerTypeEnum . FORM_UPDATE }
786
786
]
Original file line number Diff line number Diff line change 122
122
</el-form-item >
123
123
</div >
124
124
<!-- 表单数据修改触发器 -->
125
- <div v-if =" configForm.type === TriggerTypeEnum.UPDATE_NORMAL_FORM " >
125
+ <div v-if =" configForm.type === TriggerTypeEnum.FORM_UPDATE " >
126
126
<div v-for =" (formSetting, index) in configForm.formSettings" :key =" index" >
127
127
<el-card class =" w-580px mt-4" >
128
128
<template #header >
@@ -404,7 +404,7 @@ const saveConfig = async () => {
404
404
if (configForm .value .type === TriggerTypeEnum .HTTP_REQUEST ) {
405
405
configForm .value .formSettings = undefined
406
406
}
407
- if (configForm .value .type === TriggerTypeEnum .UPDATE_NORMAL_FORM ) {
407
+ if (configForm .value .type === TriggerTypeEnum .FORM_UPDATE ) {
408
408
configForm .value .httpRequestSetting = undefined
409
409
}
410
410
currentNode .value .triggerSetting = configForm .value
@@ -417,7 +417,7 @@ const getShowText = (): string => {
417
417
let showText = ' '
418
418
if (configForm .value .type === TriggerTypeEnum .HTTP_REQUEST ) {
419
419
showText = ` ${configForm .value .httpRequestSetting ?.url } `
420
- } else if (configForm .value .type === TriggerTypeEnum .UPDATE_NORMAL_FORM ) {
420
+ } else if (configForm .value .type === TriggerTypeEnum .FORM_UPDATE ) {
421
421
for (const [index, setting] of configForm .value .formSettings ! .entries ()) {
422
422
if (! setting .updateFormFields || Object .keys (setting .updateFormFields ).length === 0 ) {
423
423
message .warning (` 请添加表单设置${index + 1 }的修改字段 ` )
You can’t perform that action at this time.
0 commit comments