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
7683aa2e
authored
Jan 07, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Simple设计器-监听器
parent
0da3a9bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
6 deletions
+29
-6
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
+7
-1
src/components/SimpleProcessDesignerV2/src/consts.ts
+8
-4
src/components/SimpleProcessDesignerV2/src/node.ts
+14
-1
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+0
-0
No files found.
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
View file @
7683aa2e
...
...
@@ -128,7 +128,13 @@ const addNode = (type: number) => {
},
assignStartUserHandlerType
:
AssignStartUserHandlerType
.
START_USER_AUDIT
,
childNode
:
props
.
childNode
,
createTaskListener
:
{
taskCreateListener
:
{
enable
:
false
},
taskAssignListener
:
{
enable
:
false
},
taskCompleteListener
:
{
enable
:
false
}
}
...
...
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
7683aa2e
...
...
@@ -98,7 +98,11 @@ export interface SimpleFlowNode {
// 审批节点的审批人与发起人相同时,对应的处理类型
assignStartUserHandlerType
?:
number
// 创建任务监听器
createTaskListener
:
ListenerHandler
taskCreateListener
?:
ListenerHandler
// 创建任务监听器
taskAssignListener
?:
ListenerHandler
// 创建任务监听器
taskCompleteListener
?:
ListenerHandler
// 条件类型
conditionType
?:
ConditionType
// 条件表达式
...
...
@@ -236,9 +240,9 @@ export type AssignEmptyHandler = {
*/
export
type
ListenerHandler
=
{
enable
:
boolean
path
:
string
header
:
ListenerMap
[]
body
:
ListenerMap
[]
path
?
:
string
header
?
:
ListenerMap
[]
body
?
:
ListenerMap
[]
}
export
type
ListenerMap
=
{
key
:
string
...
...
src/components/SimpleProcessDesignerV2/src/node.ts
View file @
7683aa2e
...
...
@@ -14,7 +14,8 @@ import {
NODE_DEFAULT_NAME
,
AssignStartUserHandlerType
,
AssignEmptyHandlerType
,
FieldPermissionType
FieldPermissionType
,
ListenerMap
}
from
'./consts'
import
{
parseFormFields
}
from
'@/components/FormCreate/src/utils/index'
export
function
useWatchNode
(
props
:
{
flowNode
:
SimpleFlowNode
}):
Ref
<
SimpleFlowNode
>
{
...
...
@@ -136,6 +137,18 @@ export type UserTaskFormType = {
timeDuration
?:
number
maxRemindCount
?:
number
buttonsSetting
:
any
[]
taskCreateListenerEnable
?:
boolean
taskCreateListenerPath
?:
string
taskCreateListenerHeader
?:
ListenerMap
[]
taskCreateListenerBody
?:
ListenerMap
[]
taskAssignListenerEnable
?:
boolean
taskAssignListenerPath
?:
string
taskAssignListenerHeader
?:
ListenerMap
[]
taskAssignListenerBody
?:
ListenerMap
[]
taskCompleteListenerEnable
?:
boolean
taskCompleteListenerPath
?:
string
taskCompleteListenerHeader
?:
ListenerMap
[]
taskCompleteListenerBody
?:
ListenerMap
[]
}
export
type
CopyTaskFormType
=
{
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
7683aa2e
This diff is collapsed.
Click to expand it.
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