Skip to content

Commit 3202378

Browse files
committed
【功能修复】审批详情页,审批通过后,bpmn 不会重新渲染高亮的问题
1 parent a097560 commit 3202378

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ const view = ref({
2424
watch(
2525
() => props.loading,
2626
async (value) => {
27+
// 重置
28+
view.value = {
29+
bpmnXml: ''
30+
}
31+
// 加载最新
2732
if (value && props.id) {
2833
view.value = await ProcessInstanceApi.getProcessInstanceBpmnModelView(props.id)
2934
}

src/views/bpm/processInstance/detail/index.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,19 @@
7676
<el-tab-pane label="流程图" name="diagram">
7777
<div class="form-scroll-area">
7878
<ProcessInstanceSimpleViewer
79-
v-show="processDefinition.modelType && processDefinition.modelType === BpmModelType.SIMPLE"
79+
v-show="
80+
processDefinition.modelType && processDefinition.modelType === BpmModelType.SIMPLE
81+
"
8082
:id="`${id}`"
8183
:loading="processInstanceLoading"
8284
/>
8385
<ProcessInstanceBpmnViewer
84-
v-show="processDefinition.modelType && processDefinition.modelType === BpmModelType.BPMN"
85-
:id="`${id}`" :loading="processInstanceLoading" />
86+
v-show="
87+
processDefinition.modelType && processDefinition.modelType === BpmModelType.BPMN
88+
"
89+
:id="`${id}`"
90+
:loading="processInstanceLoading"
91+
/>
8692
</div>
8793
</el-tab-pane>
8894

0 commit comments

Comments
 (0)