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
88356c7b
authored
Jun 21, 2024
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仿钉钉设计器- 节点增加校验逻辑
parent
ea1e51a6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
+14
-10
src/components/SimpleProcessDesignerV2/src/consts.ts
+1
-1
src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue
+0
-0
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+0
-0
No files found.
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
View file @
88356c7b
...
...
@@ -81,15 +81,16 @@ const addNode = (type: number) => {
type
:
NodeType
.
USER_TASK_NODE
,
approveMethod
:
ApproveMethodType
.
RRANDOM_SELECT_ONE_APPROVE
,
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateParam
:
undefined
,
fieldsPermission
:
undefined
,
//
candidateParam: undefined,
//
fieldsPermission: undefined,
// 超时处理
timeoutHandler
:
{
enable
:
false
},
rejectHandler
:
{
type
:
RejectHandlerType
.
FINISH_PROCESS
},
timeoutHandler
:
{
enable
:
false
},
childNode
:
props
.
childNode
// 审批节点配置
// attributes: {
...
...
@@ -114,12 +115,15 @@ const addNode = (type: number) => {
name
:
NODE_DEFAULT_NAME
.
get
(
NodeType
.
COPY_TASK_NODE
)
as
string
,
showText
:
''
,
type
:
NodeType
.
COPY_TASK_NODE
,
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateParam
:
undefined
,
fieldsPermission
:
undefined
,
// 审批节点配置
attributes
:
{
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateParam
:
undefined
,
fieldsPermission
:
undefined
},
//
attributes: {
//
candidateStrategy: CandidateStrategy.USER,
//
candidateParam: undefined,
//
fieldsPermission: undefined
//
},
childNode
:
props
.
childNode
}
emits
(
'update:childNode'
,
data
)
...
...
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
88356c7b
...
...
@@ -181,7 +181,7 @@ export type SimpleFlowNode = {
// 多人审批方式
approveMethod
?:
ApproveMethodType
//通过比例
approveRatio
:
number
approveRatio
?
:
number
// 表单权限
fieldsPermission
?:
any
[]
// 审批任务超时处理
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue
View file @
88356c7b
This diff is collapsed.
Click to expand it.
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
88356c7b
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