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
66d8cf12
authored
Jan 16, 2025
by
zws
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决bpmn设计器 初次创建流程key不一致问题
parent
84552a62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
+3
-0
src/views/bpm/model/editor/index.vue
+6
-0
src/views/bpm/model/form/index.vue
+1
-0
No files found.
src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
View file @
66d8cf12
...
...
@@ -152,6 +152,9 @@ watch(
handleKeyUpdate
(
props
.
model
.
key
)
handleNameUpdate
(
props
.
model
.
name
)
}
},
{
immediate
:
true
}
)
...
...
src/views/bpm/model/editor/index.vue
View file @
66d8cf12
...
...
@@ -12,6 +12,8 @@
:additionalModel=
"controlForm.additionalModel"
:model=
"model"
@
save=
"save"
:process-id=
"modelKey"
:process-name=
"modelName"
/>
<!-- 流程属性器,负责编辑每个流程节点的属性 -->
<MyProcessPenal
...
...
@@ -53,6 +55,8 @@ provide('formType', formType)
// 注入流程数据
const
xmlString
=
inject
(
'processData'
)
as
Ref
// 注入模型数据
const
modelData
=
inject
(
'modelData'
)
as
Ref
const
modeler
=
shallowRef
()
// BPMN Modeler
const
processDesigner
=
ref
()
...
...
@@ -69,6 +73,8 @@ const model = ref<ModelApi.ModelVO>() // 流程模型的信息
/** 初始化 modeler */
// TODO @zws:需要初始化,不然首次创建后,无法发布!相当于说,key、name 要去赋值下
const
initModeler
=
async
(
item
)
=>
{
//先初始化模型数据
model
.
value
=
modelData
.
value
modeler
.
value
=
item
}
...
...
src/views/bpm/model/form/index.vue
View file @
66d8cf12
...
...
@@ -145,6 +145,7 @@ const formData: any = ref({
const
processData
=
ref
<
any
>
()
provide
(
'processData'
,
processData
)
provide
(
'modelData'
,
formData
)
// 数据列表
const
formList
=
ref
([])
...
...
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