From ddd6bbbee1718a12b1af0b32dc4ac088e90d4e26 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 28 Mar 2023 07:51:46 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=AE=9E=E4=BE=8B=E7=9A=84=E5=88=9B=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{create.vue => create/index.vue} | 34 +++---------------- .../{ => create}/process.create.ts | 0 .../detail/ProcessInstanceBpmnViewer.vue | 8 +++-- 3 files changed, 9 insertions(+), 33 deletions(-) rename src/views/bpm/processInstance/{create.vue => create/index.vue} (84%) rename src/views/bpm/processInstance/{ => create}/process.create.ts (100%) diff --git a/src/views/bpm/processInstance/create.vue b/src/views/bpm/processInstance/create/index.vue similarity index 84% rename from src/views/bpm/processInstance/create.vue rename to src/views/bpm/processInstance/create/index.vue index b6fc0f49..023788c3 100644 --- a/src/views/bpm/processInstance/create.vue +++ b/src/views/bpm/processInstance/create/index.vue @@ -37,31 +37,20 @@ /> - -
- 流程图 -
- - -
+ + - - diff --git a/src/views/bpm/processInstance/process.create.ts b/src/views/bpm/processInstance/create/process.create.ts similarity index 100% rename from src/views/bpm/processInstance/process.create.ts rename to src/views/bpm/processInstance/create/process.create.ts diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue index a06ac368..3a3e244b 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue @@ -40,9 +40,11 @@ const activityList = ref([]) // 任务列表 /** 初始化 */ onMounted(async () => { - activityList.value = await ActivityApi.getActivityList({ - processInstanceId: props.id - }) + if (props.id) { + activityList.value = await ActivityApi.getActivityList({ + processInstanceId: props.id + }) + } })