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
7db5ac81
authored
Jan 25, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】Bpm:触发器
parent
e3db7d30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
+4
-3
src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue
+3
-3
src/components/SimpleProcessDesignerV2/src/nodes-config/components/UserTaskListener.vue
+2
-2
No files found.
src/components/SimpleProcessDesignerV2/src/nodes-config/TriggerNodeConfig.vue
View file @
7db5ac81
...
...
@@ -70,6 +70,7 @@
import
{
SimpleFlowNode
,
NodeType
,
TriggerSetting
,
TRIGGER_TYPES
,
TriggerTypeEnum
}
from
'../consts'
import
{
useWatchNode
,
useDrawer
,
useNodeName
}
from
'../node'
import
HttpRequestParamSetting
from
'./components/HttpRequestParamSetting.vue'
defineOptions
({
name
:
'TriggerNodeConfig'
})
...
...
@@ -104,7 +105,7 @@ const configForm = ref<TriggerSetting>({
}
})
/
/ 保存配置
/
** 保存配置 */
const
saveConfig
=
async
()
=>
{
if
(
!
formRef
)
return
false
const
valid
=
await
formRef
.
value
.
validate
()
...
...
@@ -116,7 +117,7 @@ const saveConfig = async () => {
settingVisible
.
value
=
false
return
true
}
/
/ 获取节点展示内容
/
** 获取节点展示内容 */
const
getShowText
=
():
string
=>
{
let
showText
=
''
if
(
configForm
.
value
.
type
===
TriggerTypeEnum
.
HTTP_REQUEST
)
{
...
...
@@ -125,7 +126,7 @@ const getShowText = (): string => {
return
showText
}
/
/ 显示触发器节点配置, 由父组件传过来
/
** 显示触发器节点配置, 由父组件传过来 */
const
showTriggerNodeConfig
=
(
node
:
SimpleFlowNode
)
=>
{
nodeName
.
value
=
node
.
name
if
(
node
.
triggerSetting
)
{
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue
View file @
7db5ac81
...
...
@@ -166,14 +166,14 @@ const props = defineProps({
const
formFieldOptions
=
useFormFields
()
const
addHttpRequestParam
=
(
arr
)
=>
{
const
addHttpRequestParam
=
(
arr
:
ListenerParam
[]
)
=>
{
arr
.
push
({
key
:
''
,
type
:
1
,
type
:
ListenerParamTypeEnum
.
FIXED_VALUE
,
value
:
''
})
}
const
deleteHttpRequestParam
=
(
arr
,
index
)
=>
{
const
deleteHttpRequestParam
=
(
arr
:
ListenerParam
[],
index
:
number
)
=>
{
arr
.
splice
(
index
,
1
)
}
</
script
>
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/components/UserTaskListener.vue
View file @
7db5ac81
...
...
@@ -31,7 +31,7 @@
>
<el-input
v-model=
"configForm[`task$
{listener.type}ListenerPath`]" />
</el-form-item>
<HttpRequestParamSetting
<HttpRequestParamSetting
:header=
"configForm[`task$
{listener.type}Listener`].header"
:body="configForm[`task${listener.type}Listener`].body"
:bind="`task${listener.type}Listener`"
...
...
@@ -42,8 +42,8 @@
</
template
>
<
script
setup
lang=
"ts"
>
// import { LISTENER_MAP_TYPES, ListenerParamTypeEnum } from '../../consts'
import
HttpRequestParamSetting
from
'./HttpRequestParamSetting.vue'
const
props
=
defineProps
({
modelValue
:
{
type
:
Object
,
...
...
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