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
Unverified
Commit
473d681c
authored
Jan 25, 2025
by
芋道源码
Committed by
Gitee
Jan 25, 2025
Browse files
Options
Browse Files
Download
Plain Diff
!683 代码审查修改
Merge pull request !683 from Lesan/feature/bpm-代码审查
parents
7db5ac81
092a8acd
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
29 deletions
+38
-29
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/views/bpm/task/copy/index.vue
+9
-0
src/views/bpm/task/done/index.vue
+3
-3
src/views/bpm/task/todo/index.vue
+3
-3
No files found.
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
473d681c
...
@@ -246,15 +246,15 @@ export type AssignEmptyHandler = {
...
@@ -246,15 +246,15 @@ export type AssignEmptyHandler = {
export
type
ListenerHandler
=
{
export
type
ListenerHandler
=
{
enable
:
boolean
enable
:
boolean
path
?:
string
path
?:
string
header
?:
Listener
Param
[]
header
?:
HttpRequest
Param
[]
body
?:
Listener
Param
[]
body
?:
HttpRequest
Param
[]
}
}
export
type
Listener
Param
=
{
export
type
HttpRequest
Param
=
{
key
:
string
key
:
string
type
:
number
type
:
number
value
:
string
value
:
string
}
}
export
enum
Listener
ParamTypeEnum
{
export
enum
BpmHttpRequest
ParamTypeEnum
{
/**
/**
* 固定值
* 固定值
*/
*/
...
@@ -264,7 +264,7 @@ export enum ListenerParamTypeEnum {
...
@@ -264,7 +264,7 @@ export enum ListenerParamTypeEnum {
*/
*/
FROM_FORM
=
2
FROM_FORM
=
2
}
}
export
const
LISTENER_MAP
_TYPES
=
[
export
const
BPM_HTTP_REQUEST_PARAM
_TYPES
=
[
{
{
value
:
1
,
value
:
1
,
label
:
'固定值'
label
:
'固定值'
...
@@ -736,9 +736,9 @@ export type HttpRequestTriggerSetting = {
...
@@ -736,9 +736,9 @@ export type HttpRequestTriggerSetting = {
// 请求 URL
// 请求 URL
url
:
string
url
:
string
// 请求头参数设置
// 请求头参数设置
header
?:
ListenerParam
[]
// TODO 需要重命名一下
header
?:
HttpRequestParam
[]
// 请求体参数设置
// 请求体参数设置
body
?:
Listener
Param
[]
body
?:
HttpRequest
Param
[]
}
}
export
const
TRIGGER_TYPES
:
DictDataVO
[]
=
[
export
const
TRIGGER_TYPES
:
DictDataVO
[]
=
[
...
...
src/components/SimpleProcessDesignerV2/src/node.ts
View file @
473d681c
...
@@ -14,7 +14,7 @@ import {
...
@@ -14,7 +14,7 @@ import {
AssignStartUserHandlerType
,
AssignStartUserHandlerType
,
AssignEmptyHandlerType
,
AssignEmptyHandlerType
,
FieldPermissionType
,
FieldPermissionType
,
Listener
Param
HttpRequest
Param
}
from
'./consts'
}
from
'./consts'
import
{
parseFormFields
}
from
'@/components/FormCreate/src/utils'
import
{
parseFormFields
}
from
'@/components/FormCreate/src/utils'
...
@@ -139,20 +139,20 @@ export type UserTaskFormType = {
...
@@ -139,20 +139,20 @@ export type UserTaskFormType = {
taskCreateListenerEnable
?:
boolean
taskCreateListenerEnable
?:
boolean
taskCreateListenerPath
?:
string
taskCreateListenerPath
?:
string
taskCreateListener
?:
{
taskCreateListener
?:
{
header
:
Listener
Param
[],
header
:
HttpRequest
Param
[],
body
:
Listener
Param
[]
body
:
HttpRequest
Param
[]
}
}
taskAssignListenerEnable
?:
boolean
taskAssignListenerEnable
?:
boolean
taskAssignListenerPath
?:
string
taskAssignListenerPath
?:
string
taskAssignListener
?:
{
taskAssignListener
?:
{
header
:
Listener
Param
[],
header
:
HttpRequest
Param
[],
body
:
Listener
Param
[]
body
:
HttpRequest
Param
[]
}
}
taskCompleteListenerEnable
?:
boolean
taskCompleteListenerEnable
?:
boolean
taskCompleteListenerPath
?:
string
taskCompleteListenerPath
?:
string
taskCompleteListener
?:{
taskCompleteListener
?:{
header
:
Listener
Param
[],
header
:
HttpRequest
Param
[],
body
:
Listener
Param
[]
body
:
HttpRequest
Param
[]
}
}
signEnable
:
boolean
signEnable
:
boolean
reasonRequire
:
boolean
reasonRequire
:
boolean
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/components/HttpRequestParamSetting.vue
View file @
473d681c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<div
class=
"mr-2"
>
<div
class=
"mr-2"
>
<el-select
class=
"w-100px!"
v-model=
"item.type"
>
<el-select
class=
"w-100px!"
v-model=
"item.type"
>
<el-option
<el-option
v-for=
"types in
LISTENER_MAP
_TYPES"
v-for=
"types in
BPM_HTTP_REQUEST_PARAM
_TYPES"
:key=
"types.value"
:key=
"types.value"
:label=
"types.label"
:label=
"types.label"
:value=
"types.value"
:value=
"types.value"
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
}"
}"
>
>
<el-input
<el-input
v-if=
"item.type ===
Listener
ParamTypeEnum.FIXED_VALUE"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FIXED_VALUE"
class=
"w-160px"
class=
"w-160px"
v-model=
"item.value"
v-model=
"item.value"
/>
/>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
}"
}"
>
>
<el-select
<el-select
v-if=
"item.type ===
Listener
ParamTypeEnum.FROM_FORM"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FROM_FORM"
class=
"w-160px!"
class=
"w-160px!"
v-model=
"item.value"
v-model=
"item.value"
>
>
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<div
class=
"mr-2"
>
<div
class=
"mr-2"
>
<el-select
class=
"w-100px!"
v-model=
"item.type"
>
<el-select
class=
"w-100px!"
v-model=
"item.type"
>
<el-option
<el-option
v-for=
"types in
LISTENER_MAP
_TYPES"
v-for=
"types in
BPM_HTTP_REQUEST_PARAM
_TYPES"
:key=
"types.value"
:key=
"types.value"
:label=
"types.label"
:label=
"types.label"
:value=
"types.value"
:value=
"types.value"
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
}"
}"
>
>
<el-input
<el-input
v-if=
"item.type ===
Listener
ParamTypeEnum.FIXED_VALUE"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FIXED_VALUE"
class=
"w-160px"
class=
"w-160px"
v-model=
"item.value"
v-model=
"item.value"
/>
/>
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
}"
}"
>
>
<el-select
<el-select
v-if=
"item.type ===
Listener
ParamTypeEnum.FROM_FORM"
v-if=
"item.type ===
BpmHttpRequest
ParamTypeEnum.FROM_FORM"
class=
"w-160px!"
class=
"w-160px!"
v-model=
"item.value"
v-model=
"item.value"
>
>
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
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'
import
{
useFormFields
}
from
'../../node'
defineOptions
({
defineOptions
({
name
:
'HttpRequestParamSetting'
name
:
'HttpRequestParamSetting'
...
@@ -149,12 +149,12 @@ defineOptions({
...
@@ -149,12 +149,12 @@ defineOptions({
const
props
=
defineProps
({
const
props
=
defineProps
({
header
:
{
header
:
{
type
:
Array
as
()
=>
Listener
Param
[],
type
:
Array
as
()
=>
HttpRequest
Param
[],
required
:
false
,
required
:
false
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
body
:
{
body
:
{
type
:
Array
as
()
=>
Listener
Param
[],
type
:
Array
as
()
=>
HttpRequest
Param
[],
required
:
false
,
required
:
false
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
...
...
src/views/bpm/task/copy/index.vue
View file @
473d681c
...
@@ -46,6 +46,15 @@
...
@@ -46,6 +46,15 @@
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<!-- TODO 芋艿:增加摘要 -->
<!-- TODO 芋艿:增加摘要 -->
<el-table-column
align=
"center"
label=
"流程名"
prop=
"processInstanceName"
min-width=
"180"
/>
<el-table-column
align=
"center"
label=
"流程名"
prop=
"processInstanceName"
min-width=
"180"
/>
<el-table-column
label=
"摘要"
prop=
"summary"
min-width=
"180"
>
<template
#
default=
"scope"
>
<div
class=
"flex flex-col"
v-if=
"scope.row.summary && scope.row.summary.length > 0"
>
<div
v-for=
"(item, index) in scope.row.summary"
:key=
"index"
>
<el-text
type=
"info"
>
{{
item
.
key
}}
:
{{
item
.
value
}}
</el-text>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
align=
"center"
align=
"center"
label=
"流程发起人"
label=
"流程发起人"
...
...
src/views/bpm/task/done/index.vue
View file @
473d681c
...
@@ -122,10 +122,10 @@
...
@@ -122,10 +122,10 @@
<ContentWrap>
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
align=
"center"
label=
"流程"
prop=
"processInstance.name"
width=
"180"
/>
<el-table-column
align=
"center"
label=
"流程"
prop=
"processInstance.name"
width=
"180"
/>
<el-table-column
label=
"摘要"
prop=
"summary"
min-width=
"180"
>
<el-table-column
label=
"摘要"
prop=
"
processInstance.
summary"
min-width=
"180"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<div
class=
"flex flex-col"
v-if=
"scope.row.
summary && scope.row
.summary.length > 0"
>
<div
class=
"flex flex-col"
v-if=
"scope.row.
processInstance.summary && scope.row.processInstance
.summary.length > 0"
>
<div
v-for=
"(item, index) in scope.row.summary"
:key=
"index"
>
<div
v-for=
"(item, index) in scope.row.
processInstance.
summary"
:key=
"index"
>
<el-text
type=
"info"
>
{{
item
.
key
}}
:
{{
item
.
value
}}
</el-text>
<el-text
type=
"info"
>
{{
item
.
key
}}
:
{{
item
.
value
}}
</el-text>
</div>
</div>
</div>
</div>
...
...
src/views/bpm/task/todo/index.vue
View file @
473d681c
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
<ContentWrap>
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
align=
"center"
label=
"流程"
prop=
"processInstance.name"
width=
"180"
/>
<el-table-column
align=
"center"
label=
"流程"
prop=
"processInstance.name"
width=
"180"
/>
<el-table-column
label=
"摘要"
prop=
"summary"
min-width=
"180"
>
<el-table-column
label=
"摘要"
prop=
"
processInstance.
summary"
min-width=
"180"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<div
class=
"flex flex-col"
v-if=
"scope.row.
summary && scope.row
.summary.length > 0"
>
<div
class=
"flex flex-col"
v-if=
"scope.row.
processInstance.summary && scope.row.processInstance
.summary.length > 0"
>
<div
v-for=
"(item, index) in scope.row.summary"
:key=
"index"
>
<div
v-for=
"(item, index) in scope.row.
processInstance.
summary"
:key=
"index"
>
<el-text
type=
"info"
>
{{
item
.
key
}}
:
{{
item
.
value
}}
</el-text>
<el-text
type=
"info"
>
{{
item
.
key
}}
:
{{
item
.
value
}}
</el-text>
</div>
</div>
</div>
</div>
...
...
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