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
be332261
authored
Dec 02, 2024
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 边界事件切换类别时需监听businessObject
parent
d017ab55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue
+1
-1
src/components/bpmnProcessDesigner/package/penal/custom-config/ElementCustomConfig.vue
+11
-13
No files found.
src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue
View file @
be332261
...
...
@@ -56,7 +56,7 @@
</el-collapse-item>
<el-collapse-item
name=
"customConfig"
key=
"customConfig"
>
<
template
#
title
><Icon
icon=
"ep:tools"
/>
自定义配置
</
template
>
<element-custom-config
:id=
"elementId"
:type=
"elementType"
/>
<element-custom-config
:id=
"elementId"
:type=
"elementType"
:business-object=
"elementBusinessObject"
/>
</el-collapse-item>
</el-collapse>
</div>
...
...
src/components/bpmnProcessDesigner/package/penal/custom-config/ElementCustomConfig.vue
View file @
be332261
...
...
@@ -11,27 +11,25 @@ defineOptions({ name: 'ElementCustomConfig' })
const
props
=
defineProps
({
id
:
String
,
type
:
String
type
:
String
,
businessObject
:
{
type
:
Object
,
default
:
()
=>
{}
}
})
const
bpmnInstances
=
()
=>
(
window
as
any
)?.
bpmnInstances
const
customConfigComponent
=
ref
<
any
>
(
null
)
watch
(
()
=>
props
.
type
,
()
=>
props
.
businessObject
,
()
=>
{
if
(
props
.
type
)
{
const
element
=
bpmnInstances
().
bpmnElement
.
businessObject
let
elementType
=
props
.
type
if
(
element
.
eventDefinitions
)
{
// 处理类似共用BoundaryEvent类型的TimerEvent
elementType
+=
element
.
eventDefinitions
[
0
].
$type
.
split
(
':'
)[
1
]
}
const
config
=
CustomConfigMap
[
elementType
]
if
(
config
)
{
customConfigComponent
.
value
=
config
.
componet
return
if
(
props
.
type
&&
props
.
businessObject
)
{
let
val
=
props
.
type
if
(
props
.
businessObject
.
eventDefinitions
)
{
val
+=
props
.
businessObject
.
eventDefinitions
[
0
]?.
$type
.
split
(
':'
)[
1
]
||
''
}
customConfigComponent
.
value
=
CustomConfigMap
[
val
]?.
componet
}
},
{
immediate
:
true
}
...
...
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