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 + }) + } })