From 67430a83fbf460e2296ab3fecd10c8ea81a3d0d2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 28 Oct 2024 19:02:20 +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=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=9A=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E4=B8=8D=E9=80=9A=E8=BF=87=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E5=8F=91=E8=B5=B7=E6=97=B6=EF=BC=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/definition/index.vue | 22 +++++++------------ .../bpm/processInstance/create/index.vue | 12 +++++++++- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/views/bpm/definition/index.vue b/src/views/bpm/definition/index.vue index 1e7794b3..55da993d 100644 --- a/src/views/bpm/definition/index.vue +++ b/src/views/bpm/definition/index.vue @@ -70,13 +70,7 @@ - + @@ -118,7 +112,7 @@ const formDetailPreview = ref({ rule: [], option: {} }) -const handleFormDetail = async (row) => { +const handleFormDetail = async (row: any) => { if (row.formType == 10) { // 设置表单 setConfAndFields2(formDetailPreview, row.formConf, row.formFields) @@ -133,13 +127,13 @@ const handleFormDetail = async (row) => { /** 流程图的详情按钮操作 */ const bpmnDetailVisible = ref(false) -const bpmnXml = ref(null) -const bpmnControlForm = ref({ - prefix: 'flowable' -}) -const handleBpmnDetail = async (row) => { - bpmnXml.value = (await DefinitionApi.getProcessDefinition(row.id))?.bpmnXml +const bpmnXml = ref('') +const handleBpmnDetail = async (row: any) => { + // 设置可见 + bpmnXml.value = '' bpmnDetailVisible.value = true + // 加载 BPMN XML + bpmnXml.value = (await DefinitionApi.getProcessDefinition(row.id))?.bpmnXml } /** 初始化 **/ diff --git a/src/views/bpm/processInstance/create/index.vue b/src/views/bpm/processInstance/create/index.vue index cc588881..83e1ff46 100644 --- a/src/views/bpm/processInstance/create/index.vue +++ b/src/views/bpm/processInstance/create/index.vue @@ -95,7 +95,7 @@