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
69ccd83a
authored
Jan 16, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: bpmn设计器添加UserTask签名配置
parent
37964e74
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/flowableDescriptor.json
+14
-0
src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue
+1
-1
src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue
+16
-1
No files found.
src/components/bpmnProcessDesigner/package/designer/plugins/descriptor/flowableDescriptor.json
View file @
69ccd83a
...
@@ -1438,6 +1438,20 @@
...
@@ -1438,6 +1438,20 @@
"isBody"
:
true
"isBody"
:
true
}
}
]
]
},
{
"name"
:
"SignEnable"
,
"superClass"
:
[
"Element"
],
"meta"
:
{
"allowedIn"
:
[
"bpmn:UserTask"
]
},
"properties"
:
[
{
"name"
:
"value"
,
"type"
:
"Boolean"
,
"isBody"
:
true
}
]
}
}
],
],
"emumerations"
:
[]
"emumerations"
:
[]
...
...
src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue
View file @
69ccd83a
<
template
>
<
template
>
<div
class=
"process-panel__container"
:style=
"
{ width: `${width}px` }">
<div
class=
"process-panel__container"
:style=
"
{ width: `${width}px`
, maxHeight: '600px'
}">
<el-collapse
v-model=
"activeTab"
v-if=
"isReady"
>
<el-collapse
v-model=
"activeTab"
v-if=
"isReady"
>
<el-collapse-item
name=
"base"
>
<el-collapse-item
name=
"base"
>
<!-- class="panel-tab__title" -->
<!-- class="panel-tab__title" -->
...
...
src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue
View file @
69ccd83a
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
4. 操作按钮
4. 操作按钮
5. 字段权限
5. 字段权限
6. 审批类型
6. 审批类型
7. 是否需要签名
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -161,6 +162,11 @@
...
@@ -161,6 +162,11 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
</div>
</div>
<el-divider
content-position=
"left"
>
是否需要签名
</el-divider>
<el-form-item
prop=
"signEnable"
>
<el-switch
v-model=
"signEnable.value"
active-text=
"是"
inactive-text=
"否"
/>
</el-form-item>
</div>
</div>
</
template
>
</
template
>
...
@@ -218,6 +224,9 @@ const { formType, fieldsPermissionConfig, getNodeConfigFormFields } = useFormFie
...
@@ -218,6 +224,9 @@ const { formType, fieldsPermissionConfig, getNodeConfigFormFields } = useFormFie
// 审批类型
// 审批类型
const
approveType
=
ref
({
value
:
ApproveType
.
USER
})
const
approveType
=
ref
({
value
:
ApproveType
.
USER
})
// 是否需要签名
const
signEnable
=
ref
({
value
:
false
})
const
elExtensionElements
=
ref
()
const
elExtensionElements
=
ref
()
const
otherExtensions
=
ref
()
const
otherExtensions
=
ref
()
const
bpmnElement
=
ref
()
const
bpmnElement
=
ref
()
...
@@ -325,6 +334,11 @@ const resetCustomConfigList = () => {
...
@@ -325,6 +334,11 @@ const resetCustomConfigList = () => {
ex
.
$type
!==
`
${
prefix
}
:ApproveType`
ex
.
$type
!==
`
${
prefix
}
:ApproveType`
)
??
[]
)
??
[]
// 是否需要签名
signEnable
.
value
=
elExtensionElements
.
value
.
values
?.
filter
((
ex
)
=>
ex
.
$type
===
`
${
prefix
}
:SignEnable`
)?.[
0
]
||
bpmnInstances
().
moddle
.
create
(
`
${
prefix
}
:SignEnable`
,
{
value
:
false
})
// 更新元素扩展属性,避免后续报错
// 更新元素扩展属性,避免后续报错
updateElementExtensions
()
updateElementExtensions
()
}
}
...
@@ -373,7 +387,8 @@ const updateElementExtensions = () => {
...
@@ -373,7 +387,8 @@ const updateElementExtensions = () => {
assignEmptyUserIdsEl
.
value
,
assignEmptyUserIdsEl
.
value
,
approveType
.
value
,
approveType
.
value
,
...
buttonsSettingEl
.
value
,
...
buttonsSettingEl
.
value
,
...
fieldsPermissionEl
.
value
...
fieldsPermissionEl
.
value
,
signEnable
.
value
]
]
})
})
bpmnInstances
().
modeling
.
updateProperties
(
toRaw
(
bpmnElement
.
value
),
{
bpmnInstances
().
modeling
.
updateProperties
(
toRaw
(
bpmnElement
.
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