File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
components/bpmnProcessDesigner/package/penal/base Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,9 @@ watch(
152
152
handleKeyUpdate (props .model .key )
153
153
handleNameUpdate (props .model .name )
154
154
}
155
+ },
156
+ {
157
+ immediate: true
155
158
}
156
159
)
157
160
Original file line number Diff line number Diff line change 12
12
:additionalModel =" controlForm.additionalModel"
13
13
:model =" model"
14
14
@save =" save"
15
+ :process-id =" modelKey"
16
+ :process-name =" modelName"
15
17
/>
16
18
<!-- 流程属性器,负责编辑每个流程节点的属性 -->
17
19
<MyProcessPenal
@@ -53,6 +55,8 @@ provide('formType', formType)
53
55
54
56
// 注入流程数据
55
57
const xmlString = inject (' processData' ) as Ref
58
+ // 注入模型数据
59
+ const modelData = inject (' modelData' ) as Ref
56
60
57
61
const modeler = shallowRef () // BPMN Modeler
58
62
const processDesigner = ref ()
@@ -69,6 +73,8 @@ const model = ref<ModelApi.ModelVO>() // 流程模型的信息
69
73
/** 初始化 modeler */
70
74
// TODO @zws:需要初始化,不然首次创建后,无法发布!相当于说,key、name 要去赋值下
71
75
const initModeler = async (item ) => {
76
+ // 先初始化模型数据
77
+ model .value = modelData .value
72
78
modeler .value = item
73
79
}
74
80
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ const formData: any = ref({
145
145
const processData = ref <any >()
146
146
147
147
provide (' processData' , processData )
148
+ provide (' modelData' , formData )
148
149
149
150
// 数据列表
150
151
const formList = ref ([])
You can’t perform that action at this time.
0 commit comments