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
a9c924a4
authored
Dec 11, 2024
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 同步bpm设计器审批人配置,表单内部门负责人
parent
b09ff417
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue
+31
-2
No files found.
src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue
View file @
a9c924a4
...
...
@@ -130,6 +130,26 @@
</el-select>
</el-form-item>
<el-form-item
v-if=
"userTaskForm.candidateStrategy === CandidateStrategy.FORM_DEPT_LEADER"
label=
"表单内部门字段"
prop=
"formDept"
>
<el-select
v-model=
"userTaskForm.candidateParam"
clearable
style=
"width: 100%"
@
change=
"updateElementTask"
>
<el-option
v-for=
"(item, idx) in deptFieldOnFormOptions"
:key=
"idx"
:label=
"item.title"
:value=
"item.field"
:disabled=
"!item.required"
/>
</el-select>
</el-form-item>
<el-form-item
v-if=
"
userTaskForm.candidateStrategy == CandidateStrategy.MULTI_LEVEL_DEPT_LEADER ||
userTaskForm.candidateStrategy == CandidateStrategy.START_USER_DEPT_LEADER ||
...
...
@@ -206,12 +226,15 @@ const postOptions = ref<PostApi.PostVO[]>([]) // 岗位列表
const
userOptions
=
ref
<
UserApi
.
UserVO
[]
>
([])
// 用户列表
const
userGroupOptions
=
ref
<
UserGroupApi
.
UserGroupVO
[]
>
([])
// 用户组列表
// 表单内用户字段
const
{
formFieldOptions
}
=
useFormFieldsPermission
(
FieldPermissionType
.
READ
)
// 表单内用户字段选项, 必须是必填和用户选择器
const
userFieldOnFormOptions
=
computed
(()
=>
{
return
formFieldOptions
.
filter
((
item
)
=>
item
.
type
===
'UserSelect'
)
})
// 表单内部门字段选项, 必须是必填和部门选择器
const
deptFieldOnFormOptions
=
computed
(()
=>
{
return
formFieldOptions
.
filter
((
item
)
=>
item
.
type
===
'DeptSelect'
)
})
const
deptLevel
=
ref
(
1
)
const
deptLevelLabel
=
computed
(()
=>
{
...
...
@@ -264,6 +287,9 @@ const resetTaskForm = () => {
)
{
userTaskForm
.
value
.
candidateParam
=
+
candidateParamStr
deptLevel
.
value
=
+
candidateParamStr
}
else
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
FORM_DEPT_LEADER
)
{
userTaskForm
.
value
.
candidateParam
=
candidateParamStr
.
split
(
'|'
)[
0
]
deptLevel
.
value
=
+
candidateParamStr
.
split
(
'|'
)[
1
]
}
else
{
userTaskForm
.
value
.
candidateParam
=
candidateParamStr
.
split
(
','
).
map
((
item
)
=>
{
// 如果数字超出了最大安全整数范围,则将其作为字符串处理
...
...
@@ -322,7 +348,10 @@ const updateElementTask = () => {
:
userTaskForm
.
value
.
candidateParam
// 特殊处理多级部门情况
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
MULTI_LEVEL_DEPT_LEADER
)
{
if
(
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
MULTI_LEVEL_DEPT_LEADER
||
userTaskForm
.
value
.
candidateStrategy
==
CandidateStrategy
.
FORM_DEPT_LEADER
)
{
candidateParam
+=
'|'
+
deptLevel
.
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