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
b09ff417
authored
Dec 10, 2024
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 同步bpm设计器审批人配置,发起人部门负责人,发起人连续多级部门的负责人
parent
6b397104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue
+17
-3
No files found.
src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue
View file @
b09ff417
<
template
>
<
template
>
<el-form
label-width=
"1
0
0px"
>
<el-form
label-width=
"1
2
0px"
>
<el-form-item
label=
"规则类型"
prop=
"candidateStrategy"
>
<el-form-item
label=
"规则类型"
prop=
"candidateStrategy"
>
<el-select
<el-select
v-model=
"userTaskForm.candidateStrategy"
v-model=
"userTaskForm.candidateStrategy"
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
v-if=
"userTaskForm.candidateStrategy === CandidateStrategy.FORM_USER"
v-if=
"userTaskForm.candidateStrategy === CandidateStrategy.FORM_USER"
label=
"用户字段"
label=
"
表单内
用户字段"
prop=
"formUser"
prop=
"formUser"
>
>
<el-select
<el-select
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
prop=
"deptLevel"
prop=
"deptLevel"
span=
"24"
span=
"24"
>
>
<el-select
v-model=
"deptLevel"
clearable
>
<el-select
v-model=
"deptLevel"
clearable
@
change=
"updateElementTask"
>
<el-option
<el-option
v-for=
"(item, index) in MULTI_LEVEL_DEPT"
v-for=
"(item, index) in MULTI_LEVEL_DEPT"
:key=
"index"
:key=
"index"
...
@@ -258,6 +258,12 @@ const resetTaskForm = () => {
...
@@ -258,6 +258,12 @@ const resetTaskForm = () => {
return
num
>
Number
.
MAX_SAFE_INTEGER
||
num
<
-
Number
.
MAX_SAFE_INTEGER
?
item
:
num
return
num
>
Number
.
MAX_SAFE_INTEGER
||
num
<
-
Number
.
MAX_SAFE_INTEGER
?
item
:
num
})
})
deptLevel
.
value
=
+
candidateParamStr
.
split
(
'|'
)[
1
]
deptLevel
.
value
=
+
candidateParamStr
.
split
(
'|'
)[
1
]
}
else
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
START_USER_DEPT_LEADER
||
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
START_USER_MULTI_LEVEL_DEPT_LEADER
)
{
userTaskForm
.
value
.
candidateParam
=
+
candidateParamStr
deptLevel
.
value
=
+
candidateParamStr
}
else
{
}
else
{
userTaskForm
.
value
.
candidateParam
=
candidateParamStr
.
split
(
','
).
map
((
item
)
=>
{
userTaskForm
.
value
.
candidateParam
=
candidateParamStr
.
split
(
','
).
map
((
item
)
=>
{
// 如果数字超出了最大安全整数范围,则将其作为字符串处理
// 如果数字超出了最大安全整数范围,则将其作为字符串处理
...
@@ -319,6 +325,14 @@ const updateElementTask = () => {
...
@@ -319,6 +325,14 @@ const updateElementTask = () => {
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
MULTI_LEVEL_DEPT_LEADER
)
{
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
MULTI_LEVEL_DEPT_LEADER
)
{
candidateParam
+=
'|'
+
deptLevel
.
value
candidateParam
+=
'|'
+
deptLevel
.
value
}
}
// 特殊处理发起人部门负责人、发起人连续部门负责人
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
START_USER_DEPT_LEADER
||
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
START_USER_MULTI_LEVEL_DEPT_LEADER
)
{
candidateParam
=
deptLevel
.
value
+
''
}
const
extensions
=
bpmnInstances
().
moddle
.
create
(
'bpmn:ExtensionElements'
,
{
const
extensions
=
bpmnInstances
().
moddle
.
create
(
'bpmn:ExtensionElements'
,
{
values
:
[
values
:
[
...
otherExtensions
.
value
,
...
otherExtensions
.
value
,
...
...
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