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
d2954776
authored
Jan 25, 2025
by
LesanOuO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更改HttpRequestParam相关命名
parent
e3db7d30
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
24 deletions
+23
-24
src/components/SimpleProcessDesignerV2/src/consts.ts
+7
-7
src/components/SimpleProcessDesignerV2/src/node.ts
+7
-7
src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue
+9
-9
src/components/SimpleProcessDesignerV2/src/nodes-config/components/UserTaskListener.vue
+0
-1
No files found.
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
d2954776
...
...
@@ -246,15 +246,15 @@ export type AssignEmptyHandler = {
export
type
ListenerHandler
=
{
enable
:
boolean
path
?:
string
header
?:
Listener
Param
[]
body
?:
Listener
Param
[]
header
?:
HttpRequest
Param
[]
body
?:
HttpRequest
Param
[]
}
export
type
Listener
Param
=
{
export
type
HttpRequest
Param
=
{
key
:
string
type
:
number
value
:
string
}
export
enum
Listener
ParamTypeEnum
{
export
enum
BpmHttpRequest
ParamTypeEnum
{
/**
* 固定值
*/
...
...
@@ -264,7 +264,7 @@ export enum ListenerParamTypeEnum {
*/
FROM_FORM
=
2
}
export
const
LISTENER_MAP
_TYPES
=
[
export
const
BPM_HTTP_REQUEST_PARAM
_TYPES
=
[
{
value
:
1
,
label
:
'固定值'
...
...
@@ -736,9 +736,9 @@ export type HttpRequestTriggerSetting = {
// 请求 URL
url
:
string
// 请求头参数设置
header
?:
ListenerParam
[]
// TODO 需要重命名一下
header
?:
HttpRequestParam
[]
// 请求体参数设置
body
?:
Listener
Param
[]
body
?:
HttpRequest
Param
[]
}
export
const
TRIGGER_TYPES
:
DictDataVO
[]
=
[
...
...
src/components/SimpleProcessDesignerV2/src/node.ts
View file @
d2954776
...
...
@@ -14,7 +14,7 @@ import {
AssignStartUserHandlerType
,
AssignEmptyHandlerType
,
FieldPermissionType
,
Listener
Param
HttpRequest
Param
}
from
'./consts'
import
{
parseFormFields
}
from
'@/components/FormCreate/src/utils'
...
...
@@ -139,20 +139,20 @@ export type UserTaskFormType = {
taskCreateListenerEnable
?:
boolean
taskCreateListenerPath
?:
string
taskCreateListener
?:
{
header
:
Listener
Param
[],
body
:
Listener
Param
[]
header
:
HttpRequest
Param
[],
body
:
HttpRequest
Param
[]
}
taskAssignListenerEnable
?:
boolean
taskAssignListenerPath
?:
string
taskAssignListener
?:
{
header
:
Listener
Param
[],
body
:
Listener
Param
[]
header
:
HttpRequest
Param
[],
body
:
HttpRequest
Param
[]
}
taskCompleteListenerEnable
?:
boolean
taskCompleteListenerPath
?:
string
taskCompleteListener
?:{
header
:
Listener
Param
[],
body
:
Listener
Param
[]
header
:
HttpRequest
Param
[],
body
:
HttpRequest
Param
[]
}
signEnable
:
boolean
reasonRequire
:
boolean
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue
View file @
d2954776
...
...
@@ -16,7 +16,7 @@
<div
class=
"mr-2"
>
<el-select
class=
"w-100px!"
v-model=
"item.type"
>
<el-option
v-for=
"types in
LISTENER_MAP
_TYPES"
v-for=
"types in
BPM_HTTP_REQUEST_PARAM
_TYPES"
:key=
"types.value"
:label=
"types.label"
:value=
"types.value"
...
...
@@ -33,7 +33,7 @@
}"
>
<el-input
v-if=
"item.type ===
Listener
ParamTypeEnum.FIXED_VALUE"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FIXED_VALUE"
class=
"w-160px"
v-model=
"item.value"
/>
...
...
@@ -47,7 +47,7 @@
}"
>
<el-select
v-if=
"item.type ===
Listener
ParamTypeEnum.FROM_FORM"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FROM_FORM"
class=
"w-160px!"
v-model=
"item.value"
>
...
...
@@ -86,7 +86,7 @@
<div
class=
"mr-2"
>
<el-select
class=
"w-100px!"
v-model=
"item.type"
>
<el-option
v-for=
"types in
LISTENER_MAP
_TYPES"
v-for=
"types in
BPM_HTTP_REQUEST_PARAM
_TYPES"
:key=
"types.value"
:label=
"types.label"
:value=
"types.value"
...
...
@@ -103,7 +103,7 @@
}"
>
<el-input
v-if=
"item.type ===
Listener
ParamTypeEnum.FIXED_VALUE"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FIXED_VALUE"
class=
"w-160px"
v-model=
"item.value"
/>
...
...
@@ -117,7 +117,7 @@
}"
>
<el-select
v-if=
"item.type ===
Listener
ParamTypeEnum.FROM_FORM"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FROM_FORM"
class=
"w-160px!"
v-model=
"item.value"
>
...
...
@@ -141,7 +141,7 @@
</el-form-item>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ListenerParam
,
LISTENER_MAP_TYPES
,
Listener
ParamTypeEnum
}
from
'../../consts'
import
{
HttpRequestParam
,
BPM_HTTP_REQUEST_PARAM_TYPES
,
BpmHttpRequest
ParamTypeEnum
}
from
'../../consts'
import
{
useFormFields
}
from
'../../node'
defineOptions
({
name
:
'HttpRequestParamSetting'
...
...
@@ -149,12 +149,12 @@ defineOptions({
const
props
=
defineProps
({
header
:
{
type
:
Array
as
()
=>
Listener
Param
[],
type
:
Array
as
()
=>
HttpRequest
Param
[],
required
:
false
,
default
:
()
=>
[]
},
body
:
{
type
:
Array
as
()
=>
Listener
Param
[],
type
:
Array
as
()
=>
HttpRequest
Param
[],
required
:
false
,
default
:
()
=>
[]
},
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/components/UserTaskListener.vue
View file @
d2954776
...
...
@@ -42,7 +42,6 @@
</
template
>
<
script
setup
lang=
"ts"
>
// import { LISTENER_MAP_TYPES, ListenerParamTypeEnum } from '../../consts'
import
HttpRequestParamSetting
from
'./HttpRequestParamSetting.vue'
const
props
=
defineProps
({
modelValue
:
{
...
...
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