From 2e02992906b7f7c9bf8dbeab48aedfa6cd48b347 Mon Sep 17 00:00:00 2001 From: xlsea Date: Mon, 21 Jul 2025 10:54:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8D=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E7=BB=84=E4=BB=B6=E5=BC=B9=E7=AA=97=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workflow/process-instance/index.vue | 6 +++++- src/views/workflow/task/all-task-waiting/index.vue | 6 +++++- src/views/workflow/task/my-document/index.vue | 6 +++++- src/views/workflow/task/task-copy/index.vue | 6 +++++- src/views/workflow/task/task-finish/index.vue | 6 +++++- src/views/workflow/task/task-waiting/index.vue | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/views/workflow/process-instance/index.vue b/src/views/workflow/process-instance/index.vue index efe98f6d..fe656e88 100644 --- a/src/views/workflow/process-instance/index.vue +++ b/src/views/workflow/process-instance/index.vue @@ -321,11 +321,15 @@ const businessId = ref(); /** 流程预览,动态加载组件 */ async function handlePreview(row: Api.Workflow.Instance) { + dynamicComponent.value = null; + previewVisible.value = false; businessId.value = row.businessId; const formPath = row.formPath; if (!formPath) return; dynamicComponent.value = await loadDynamicComponent(modules, formPath); - showPreviewDrawer(); + setTimeout(() => { + showPreviewDrawer(); + }, 300); } diff --git a/src/views/workflow/task/all-task-waiting/index.vue b/src/views/workflow/task/all-task-waiting/index.vue index 216c6311..46450457 100644 --- a/src/views/workflow/task/all-task-waiting/index.vue +++ b/src/views/workflow/task/all-task-waiting/index.vue @@ -225,10 +225,14 @@ const taskId = ref(''); const assigneeIds = ref([]); const assigneeNames = ref([]); function handleIntervene(row: Api.Workflow.Task) { + dynamicComponent.value = null; + interveneVisible.value = false; taskId.value = row.id; assigneeIds.value = row.assigneeIds?.split(',') || []; assigneeNames.value = row.assigneeNames?.split(',') || []; - showInterveneDrawer(); + setTimeout(() => { + showInterveneDrawer(); + }, 300); } diff --git a/src/views/workflow/task/my-document/index.vue b/src/views/workflow/task/my-document/index.vue index 402b37e3..5bf8ff94 100644 --- a/src/views/workflow/task/my-document/index.vue +++ b/src/views/workflow/task/my-document/index.vue @@ -219,12 +219,16 @@ const businessId = ref(); const operateType = ref(); async function handleOpen(row: Api.Workflow.Instance, type: 'edit' | 'detail') { + dynamicComponent.value = null; + viewVisible.value = false; operateType.value = type; businessId.value = row.businessId; const formPath = row.formPath; if (!formPath) return; dynamicComponent.value = await loadDynamicComponent(modules, formPath); - showViewDrawer(); + setTimeout(() => { + showViewDrawer(); + }, 300); } async function handleDelete(row: Api.Workflow.Instance) { diff --git a/src/views/workflow/task/task-copy/index.vue b/src/views/workflow/task/task-copy/index.vue index 825675ed..d6fd9e02 100644 --- a/src/views/workflow/task/task-copy/index.vue +++ b/src/views/workflow/task/task-copy/index.vue @@ -168,12 +168,16 @@ const businessId = ref(); const taskId = ref(); async function handleView(row: Api.Workflow.Task) { + dynamicComponent.value = null; + viewVisible.value = false; businessId.value = row.businessId; taskId.value = row.id; const formPath = row.formPath; if (!formPath) return; dynamicComponent.value = await loadDynamicComponent(modules, formPath); - showViewDrawer(); + setTimeout(() => { + showViewDrawer(); + }, 300); } diff --git a/src/views/workflow/task/task-finish/index.vue b/src/views/workflow/task/task-finish/index.vue index 27dbeef6..f45c992d 100644 --- a/src/views/workflow/task/task-finish/index.vue +++ b/src/views/workflow/task/task-finish/index.vue @@ -181,12 +181,16 @@ const businessId = ref(); const taskId = ref(); async function handleView(row: Api.Workflow.HisTask) { + dynamicComponent.value = null; + viewVisible.value = false; businessId.value = row.businessId; taskId.value = row.id; const formPath = row.formPath; if (!formPath) return; dynamicComponent.value = await loadDynamicComponent(modules, formPath); - showViewDrawer(); + setTimeout(() => { + showViewDrawer(); + }, 300); } diff --git a/src/views/workflow/task/task-waiting/index.vue b/src/views/workflow/task/task-waiting/index.vue index a6f882fc..ae7d107f 100644 --- a/src/views/workflow/task/task-waiting/index.vue +++ b/src/views/workflow/task/task-waiting/index.vue @@ -162,12 +162,16 @@ const businessId = ref(); const taskId = ref(); async function handleApproval(row: Api.Workflow.Task) { + dynamicComponent.value = null; + viewVisible.value = false; businessId.value = row.businessId; taskId.value = row.id; const formPath = row.formPath; if (!formPath) return; dynamicComponent.value = await loadDynamicComponent(modules, formPath); - showViewDrawer(); + setTimeout(() => { + showViewDrawer(); + }, 300); }