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
a4a4dcdf
authored
Oct 08, 2024
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能修改】多人审批方式默认为按顺序依次审批,随机挑选一人功能可能被去掉
parent
019104f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
34 deletions
+2
-34
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+2
-34
No files found.
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
a4a4dcdf
...
...
@@ -139,7 +139,6 @@
clearable
multiple
style=
"width: 100%"
@
change=
"changedCandidateUsers"
>
<el-option
v-for=
"item in userOptions"
...
...
@@ -187,10 +186,6 @@
<el-radio
:value=
"item.value"
:label=
"item.value"
:disabled=
"
item.value !== ApproveMethodType.RANDOM_SELECT_ONE_APPROVE &&
notAllowedMultiApprovers
"
>
{{ item.label }}
</el-radio>
...
...
@@ -537,8 +532,7 @@ const {
getShowText
}
=
useNodeForm
(
NodeType
.
USER_TASK_NODE
)
const
configForm
=
tempConfigForm
as
Ref
<
UserTaskFormType
>
// 不允许多人审批
const
notAllowedMultiApprovers
=
ref
(
false
)
// 改变审批人设置策略
const
changeCandidateStrategy
=
()
=>
{
configForm
.
value
.
userIds
=
[]
...
...
@@ -548,29 +542,8 @@ const changeCandidateStrategy = () => {
configForm
.
value
.
userGroups
=
[]
configForm
.
value
.
deptLevel
=
1
configForm
.
value
.
approveMethod
=
ApproveMethodType
.
SEQUENTIAL_APPROVE
if
(
configForm
.
value
.
candidateStrategy
===
CandidateStrategy
.
START_USER
||
configForm
.
value
.
candidateStrategy
===
CandidateStrategy
.
USER
)
{
notAllowedMultiApprovers
.
value
=
true
}
else
{
notAllowedMultiApprovers
.
value
=
false
}
}
// 改变审批候选人
const
changedCandidateUsers
=
()
=>
{
if
(
configForm
.
value
.
userIds
&&
configForm
.
value
.
userIds
?.
length
<=
1
&&
configForm
.
value
.
candidateStrategy
===
CandidateStrategy
.
USER
)
{
configForm
.
value
.
approveMethod
=
ApproveMethodType
.
RANDOM_SELECT_ONE_APPROVE
configForm
.
value
.
rejectHandlerType
=
RejectHandlerType
.
FINISH_PROCESS
notAllowedMultiApprovers
.
value
=
true
}
else
{
notAllowedMultiApprovers
.
value
=
false
}
}
// 审批方式改变
const
approveMethodChanged
=
()
=>
{
configForm
.
value
.
rejectHandlerType
=
RejectHandlerType
.
FINISH_PROCESS
...
...
@@ -666,11 +639,6 @@ const showUserTaskNodeConfig = (node: SimpleFlowNode) => {
configForm
.
value
.
candidateStrategy
=
node
.
candidateStrategy
!
// 解析候选人参数
parseCandidateParam
(
node
.
candidateStrategy
!
,
node
?.
candidateParam
)
if
(
configForm
.
value
.
userIds
&&
configForm
.
value
.
userIds
.
length
>
1
)
{
notAllowedMultiApprovers
.
value
=
true
}
else
{
notAllowedMultiApprovers
.
value
=
false
}
// 2.2 设置审批方式
configForm
.
value
.
approveMethod
=
node
.
approveMethod
!
if
(
node
.
approveMethod
==
ApproveMethodType
.
APPROVE_BY_RATIO
)
{
...
...
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