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
4bd02085
authored
Dec 11, 2024
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加UserTask自定义配置,审批类型
parent
a9c924a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue
+29
-2
No files found.
src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue
View file @
4bd02085
...
@@ -4,9 +4,24 @@
...
@@ -4,9 +4,24 @@
3. 审批人为空时
3. 审批人为空时
4. 操作按钮
4. 操作按钮
5. 字段权限
5. 字段权限
6. 审批类型
-->
-->
<
template
>
<
template
>
<div>
<div>
<el-divider
content-position=
"left"
>
审批类型
</el-divider>
<el-form-item
prop=
"approveType"
>
<el-radio-group
v-model=
"approveType.value"
>
<el-radio
v-for=
"(item, index) in APPROVE_TYPE"
:key=
"index"
:value=
"item.value"
:label=
"item.value"
>
{{
item
.
label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-divider
content-position=
"left"
>
审批人拒绝时
</el-divider>
<el-divider
content-position=
"left"
>
审批人拒绝时
</el-divider>
<el-form-item
prop=
"rejectHandlerType"
>
<el-form-item
prop=
"rejectHandlerType"
>
<el-radio-group
<el-radio-group
...
@@ -158,7 +173,9 @@ import {
...
@@ -158,7 +173,9 @@ import {
AssignEmptyHandlerType
,
AssignEmptyHandlerType
,
OPERATION_BUTTON_NAME
,
OPERATION_BUTTON_NAME
,
DEFAULT_BUTTON_SETTING
,
DEFAULT_BUTTON_SETTING
,
FieldPermissionType
FieldPermissionType
,
APPROVE_TYPE
,
ApproveType
}
from
'@/components/SimpleProcessDesignerV2/src/consts'
}
from
'@/components/SimpleProcessDesignerV2/src/consts'
import
*
as
UserApi
from
'@/api/system/user'
import
*
as
UserApi
from
'@/api/system/user'
import
{
cloneDeep
}
from
'lodash-es'
import
{
cloneDeep
}
from
'lodash-es'
...
@@ -198,6 +215,9 @@ const { formType, fieldsPermissionConfig, getNodeConfigFormFields } = useFormFie
...
@@ -198,6 +215,9 @@ const { formType, fieldsPermissionConfig, getNodeConfigFormFields } = useFormFie
FieldPermissionType
.
READ
FieldPermissionType
.
READ
)
)
// 审批类型
const
approveType
=
ref
({
value
:
ApproveType
.
USER
})
const
elExtensionElements
=
ref
()
const
elExtensionElements
=
ref
()
const
otherExtensions
=
ref
()
const
otherExtensions
=
ref
()
const
bpmnElement
=
ref
()
const
bpmnElement
=
ref
()
...
@@ -217,6 +237,11 @@ const resetCustomConfigList = () => {
...
@@ -217,6 +237,11 @@ const resetCustomConfigList = () => {
bpmnElement
.
value
.
businessObject
?.
extensionElements
??
bpmnElement
.
value
.
businessObject
?.
extensionElements
??
bpmnInstances
().
moddle
.
create
(
'bpmn:ExtensionElements'
,
{
values
:
[]
})
bpmnInstances
().
moddle
.
create
(
'bpmn:ExtensionElements'
,
{
values
:
[]
})
// 审批类型
approveType
.
value
=
elExtensionElements
.
value
.
values
?.
filter
((
ex
)
=>
ex
.
$type
===
`
${
prefix
}
:ApproveType`
)?.[
0
]
||
bpmnInstances
().
moddle
.
create
(
`
${
prefix
}
:ApproveType`
,
{
value
:
ApproveType
.
USER
})
// 审批人与提交人为同一人时
// 审批人与提交人为同一人时
assignStartUserHandlerTypeEl
.
value
=
assignStartUserHandlerTypeEl
.
value
=
elExtensionElements
.
value
.
values
?.
filter
(
elExtensionElements
.
value
.
values
?.
filter
(
...
@@ -294,7 +319,8 @@ const resetCustomConfigList = () => {
...
@@ -294,7 +319,8 @@ const resetCustomConfigList = () => {
ex
.
$type
!==
`
${
prefix
}
:AssignEmptyHandlerType`
&&
ex
.
$type
!==
`
${
prefix
}
:AssignEmptyHandlerType`
&&
ex
.
$type
!==
`
${
prefix
}
:AssignEmptyUserIds`
&&
ex
.
$type
!==
`
${
prefix
}
:AssignEmptyUserIds`
&&
ex
.
$type
!==
`
${
prefix
}
:ButtonsSetting`
&&
ex
.
$type
!==
`
${
prefix
}
:ButtonsSetting`
&&
ex
.
$type
!==
`
${
prefix
}
:FieldsPermission`
ex
.
$type
!==
`
${
prefix
}
:FieldsPermission`
&&
ex
.
$type
!==
`
${
prefix
}
:ApproveType`
)
??
[]
)
??
[]
// 更新元素扩展属性,避免后续报错
// 更新元素扩展属性,避免后续报错
...
@@ -343,6 +369,7 @@ const updateElementExtensions = () => {
...
@@ -343,6 +369,7 @@ const updateElementExtensions = () => {
returnNodeIdEl
.
value
,
returnNodeIdEl
.
value
,
assignEmptyHandlerTypeEl
.
value
,
assignEmptyHandlerTypeEl
.
value
,
assignEmptyUserIdsEl
.
value
,
assignEmptyUserIdsEl
.
value
,
approveType
.
value
,
...
buttonsSettingEl
.
value
,
...
buttonsSettingEl
.
value
,
...
fieldsPermissionEl
.
value
...
fieldsPermissionEl
.
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