From 5eb415437df45c524e5a1946266113c9618c06c4 Mon Sep 17 00:00:00 2001 From: GoldenZqqq <1361001127@qq.com> Date: Tue, 12 Nov 2024 11:22:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E9=A1=B5=E9=9D=A2=E5=B7=A6=E4=BE=A7=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E4=B8=8E=E5=8F=B3=E4=BE=A7=E6=B5=81=E7=A8=8B=E5=88=86?= =?UTF-8?q?=E7=BB=84=E9=A1=BA=E5=BA=8F=E4=B8=8D=E7=BB=9F=E4=B8=80=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/processInstance/create/index.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/bpm/processInstance/create/index.vue b/src/views/bpm/processInstance/create/index.vue index 92d68bf1..3a8a8810 100644 --- a/src/views/bpm/processInstance/create/index.vue +++ b/src/views/bpm/processInstance/create/index.vue @@ -41,7 +41,7 @@ :ref="`category-${categoryCode}`" >

- {{ getCategoryName(categoryCode) }} + {{ getCategoryName(categoryCode as any) }}

{ /** 流程定义的分组 */ const processDefinitionGroup: any = computed(() => { if (!processDefinitionList.value?.length) return {} - return groupBy(filteredProcessDefinitionList.value, 'category') + const grouped = groupBy(filteredProcessDefinitionList.value, 'category') + + const orderedGroup = {} + // 按照 categoryList 的顺序重新组织数据 + categoryList.value.forEach((category: any) => { + if (grouped[category.code]) { + orderedGroup[category.code] = grouped[category.code] + } + }) + + return orderedGroup }) /** 左侧分类切换 */