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
78d8782b
authored
Feb 17, 2025
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】 代码评审修改
parent
6be64a21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/components/SimpleProcessDesignerV2/src/consts.ts
+3
-3
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
+3
-3
No files found.
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
78d8782b
...
...
@@ -747,9 +747,9 @@ export enum TriggerTypeEnum {
*/
HTTP_REQUEST
=
1
,
/**
*
更新流程表单
触发器
*
流程表单更新
触发器
*/
UPDATE_NORMAL_FORM
=
2
// TODO @jason:FORM_UPDATE?
FORM_UPDATE
=
2
}
/**
...
...
@@ -782,5 +782,5 @@ export type FormTriggerSetting = {
export
const
TRIGGER_TYPES
:
DictDataVO
[]
=
[
{
label
:
'HTTP 请求'
,
value
:
TriggerTypeEnum
.
HTTP_REQUEST
},
{
label
:
'修改表单数据'
,
value
:
TriggerTypeEnum
.
UPDATE_NORMAL_FORM
}
{
label
:
'修改表单数据'
,
value
:
TriggerTypeEnum
.
FORM_UPDATE
}
]
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
View file @
78d8782b
...
...
@@ -122,7 +122,7 @@
</el-form-item>
</div>
<!-- 表单数据修改触发器 -->
<div
v-if=
"configForm.type === TriggerTypeEnum.
UPDATE_NORMAL_FORM
"
>
<div
v-if=
"configForm.type === TriggerTypeEnum.
FORM_UPDATE
"
>
<div
v-for=
"(formSetting, index) in configForm.formSettings"
:key=
"index"
>
<el-card
class=
"w-580px mt-4"
>
<
template
#
header
>
...
...
@@ -404,7 +404,7 @@ const saveConfig = async () => {
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
HTTP_REQUEST
)
{
configForm
.
value
.
formSettings
=
undefined
}
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
UPDATE_NORMAL_FORM
)
{
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
FORM_UPDATE
)
{
configForm
.
value
.
httpRequestSetting
=
undefined
}
currentNode
.
value
.
triggerSetting
=
configForm
.
value
...
...
@@ -417,7 +417,7 @@ const getShowText = (): string => {
let
showText
=
''
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
HTTP_REQUEST
)
{
showText
=
`
${
configForm
.
value
.
httpRequestSetting
?.
url
}
`
} else if (configForm.value.type === TriggerTypeEnum.
UPDATE_NORMAL_FORM
) {
} else if (configForm.value.type === TriggerTypeEnum.
FORM_UPDATE
) {
for (const [index, setting] of configForm.value.formSettings!.entries()) {
if (!setting.updateFormFields || Object.keys(setting.updateFormFields).length === 0) {
message.warning(`
请添加表单设置
$
{
index
+
1
}
的修改字段
`)
...
...
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