【功能修复】审批详情页,审批通过后,bpmn 不会重新渲染高亮的问题

pull/582/head
YunaiV 2024-11-02 09:32:35 +08:00
parent a097560f81
commit 3202378b04
2 changed files with 14 additions and 3 deletions

View File

@ -24,6 +24,11 @@ const view = ref({
watch(
() => props.loading,
async (value) => {
//
view.value = {
bpmnXml: ''
}
//
if (value && props.id) {
view.value = await ProcessInstanceApi.getProcessInstanceBpmnModelView(props.id)
}

View File

@ -76,13 +76,19 @@
<el-tab-pane label="流程图" name="diagram">
<div class="form-scroll-area">
<ProcessInstanceSimpleViewer
v-show="processDefinition.modelType && processDefinition.modelType === BpmModelType.SIMPLE"
v-show="
processDefinition.modelType && processDefinition.modelType === BpmModelType.SIMPLE
"
:id="`${id}`"
:loading="processInstanceLoading"
/>
<ProcessInstanceBpmnViewer
v-show="processDefinition.modelType && processDefinition.modelType === BpmModelType.BPMN"
:id="`${id}`" :loading="processInstanceLoading" />
v-show="
processDefinition.modelType && processDefinition.modelType === BpmModelType.BPMN
"
:id="`${id}`"
:loading="processInstanceLoading"
/>
</div>
</el-tab-pane>