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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
+13
-9
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) => {
...
@@ -81,15 +81,16 @@ const addNode = (type: number) => {
type
:
NodeType
.
USER_TASK_NODE
,
type
:
NodeType
.
USER_TASK_NODE
,
approveMethod
:
ApproveMethodType
.
RRANDOM_SELECT_ONE_APPROVE
,
approveMethod
:
ApproveMethodType
.
RRANDOM_SELECT_ONE_APPROVE
,
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateParam
:
undefined
,
//
candidateParam: undefined,
fieldsPermission
:
undefined
,
//
fieldsPermission: undefined,
// 超时处理
// 超时处理
timeoutHandler
:
{
enable
:
false
},
rejectHandler
:
{
rejectHandler
:
{
type
:
RejectHandlerType
.
FINISH_PROCESS
type
:
RejectHandlerType
.
FINISH_PROCESS
},
},
timeoutHandler
:
{
enable
:
false
},
childNode
:
props
.
childNode
childNode
:
props
.
childNode
// 审批节点配置
// 审批节点配置
// attributes: {
// attributes: {
...
@@ -114,12 +115,15 @@ const addNode = (type: number) => {
...
@@ -114,12 +115,15 @@ const addNode = (type: number) => {
name
:
NODE_DEFAULT_NAME
.
get
(
NodeType
.
COPY_TASK_NODE
)
as
string
,
name
:
NODE_DEFAULT_NAME
.
get
(
NodeType
.
COPY_TASK_NODE
)
as
string
,
showText
:
''
,
showText
:
''
,
type
:
NodeType
.
COPY_TASK_NODE
,
type
:
NodeType
.
COPY_TASK_NODE
,
// 审批节点配置
attributes
:
{
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateParam
:
undefined
,
candidateParam
:
undefined
,
fieldsPermission
:
undefined
fieldsPermission
:
undefined
,
},
// 审批节点配置
// attributes: {
// candidateStrategy: CandidateStrategy.USER,
// candidateParam: undefined,
// fieldsPermission: undefined
// },
childNode
:
props
.
childNode
childNode
:
props
.
childNode
}
}
emits
(
'update:childNode'
,
data
)
emits
(
'update:childNode'
,
data
)
...
...
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
88356c7b
...
@@ -181,7 +181,7 @@ export type SimpleFlowNode = {
...
@@ -181,7 +181,7 @@ export type SimpleFlowNode = {
// 多人审批方式
// 多人审批方式
approveMethod
?:
ApproveMethodType
approveMethod
?:
ApproveMethodType
//通过比例
//通过比例
approveRatio
:
number
approveRatio
?
:
number
// 表单权限
// 表单权限
fieldsPermission
?:
any
[]
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