fix: 解决发起流程页面左侧分类与右侧流程分组顺序不统一问题

pull/586/MERGE
GoldenZqqq 2024-11-12 11:22:37 +08:00
parent 52a8c46a0a
commit 5eb415437d
1 changed files with 12 additions and 2 deletions

View File

@ -41,7 +41,7 @@
:ref="`category-${categoryCode}`" :ref="`category-${categoryCode}`"
> >
<h3 class="text-18px font-bold mb-10px mt-5px"> <h3 class="text-18px font-bold mb-10px mt-5px">
{{ getCategoryName(categoryCode) }} {{ getCategoryName(categoryCode as any) }}
</h3> </h3>
<div class="grid grid-cols-3 gap3"> <div class="grid grid-cols-3 gap3">
<el-tooltip <el-tooltip
@ -175,7 +175,17 @@ const handleQuery = () => {
/** 流程定义的分组 */ /** 流程定义的分组 */
const processDefinitionGroup: any = computed(() => { const processDefinitionGroup: any = computed(() => {
if (!processDefinitionList.value?.length) return {} 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
}) })
/** 左侧分类切换 */ /** 左侧分类切换 */