Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0b0c8d5
authored
Feb 27, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】BPM:触发器 HTTP 异步
parent
91c3b942
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
src/components/SimpleProcessDesignerV2/src/consts.ts
+3
-4
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
+4
-4
No files found.
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
d0b0c8d5
...
...
@@ -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
}
]
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
View file @
d0b0c8d5
...
...
@@ -38,8 +38,9 @@
<!-- HTTP 请求触发器 -->
<div
v-if=
"
[TriggerTypeEnum.HTTP_REQUEST, TriggerTypeEnum.HTTP_CALLBACK].includes(configForm.type) &&
configForm.httpRequestSetting
[TriggerTypeEnum.HTTP_REQUEST, TriggerTypeEnum.HTTP_CALLBACK].includes(
configForm.type
) && configForm.httpRequestSetting
"
>
<el-form-item>
...
...
@@ -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
:
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment