From 3202378b043ea926c206f2196072e9270777ecfc Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 2 Nov 2024 09:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E5=AE=A1=E6=89=B9=E8=AF=A6=E6=83=85=E9=A1=B5=EF=BC=8C?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87=E5=90=8E=EF=BC=8Cbpmn=20?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E9=87=8D=E6=96=B0=E6=B8=B2=E6=9F=93=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/ProcessInstanceBpmnViewer.vue | 5 +++++ src/views/bpm/processInstance/detail/index.vue | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue index 33520627..7ffe11b8 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue @@ -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) } diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 6fe4565e..9890f698 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -76,13 +76,19 @@
+ v-show=" + processDefinition.modelType && processDefinition.modelType === BpmModelType.BPMN + " + :id="`${id}`" + :loading="processInstanceLoading" + />