From a6fd75bfd361857e604015d2b6784e1b24daa210 Mon Sep 17 00:00:00 2001 From: xiaocp2009 <39615122+xiaocp2009@users.noreply.github.com> Date: Tue, 4 Nov 2025 10:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=89=BE=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=A7=86=E5=9B=BE=E7=BB=84=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cds-fontend-2025.V1/src/utils/common.ts | 3 ++- .../modules/definition-operate-drawer.vue | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cds-fontend-2025.V1/src/utils/common.ts b/cds-fontend-2025.V1/src/utils/common.ts index a7ce5e5..4960f19 100644 --- a/cds-fontend-2025.V1/src/utils/common.ts +++ b/cds-fontend-2025.V1/src/utils/common.ts @@ -88,7 +88,8 @@ export async function loadDynamicComponent( formPath: string, { delay = 2000, timeout = 3000 } = {} ) { - const suffix = `${humpToLine(formPath)}.vue`; + //const suffix = `${humpToLine(formPath)}index.vue`; + const suffix = `${humpToLine(formPath)}`; const componentPath = suffix.replace('/workflow', '/workflow/form'); const matched = Object.entries(modules).find(([path]) => path.endsWith(componentPath)); diff --git a/cds-fontend-2025.V1/src/views/workflow/process-definition/modules/definition-operate-drawer.vue b/cds-fontend-2025.V1/src/views/workflow/process-definition/modules/definition-operate-drawer.vue index a205f08..681f8fb 100644 --- a/cds-fontend-2025.V1/src/views/workflow/process-definition/modules/definition-operate-drawer.vue +++ b/cds-fontend-2025.V1/src/views/workflow/process-definition/modules/definition-operate-drawer.vue @@ -45,8 +45,12 @@ const title = computed(() => { const formPaths = ref([]); const modules = import.meta.glob('@/components/workflow/form/**/*.vue'); Object.keys(modules).forEach(key => { - const label = key.replace('/src/components/workflow/form/', ''); - const value = key.replace('/src/components/workflow/form', '/workflow'); + //const label = key.replace('/src/components/workflow/form/', ''); + //const value = key.replace('/src/components/workflow/form', '/workflow'); + + const label = key.replace('/src/components/workflow/form/', '').replace('/index.vue', ''); + //const value = key.replace('/src/components/workflow/form', '/workflow').replace('index.vue', ''); + formPaths.value.push({ label, value }); });