【代码评审】工作流:详情界面

This commit is contained in:
YunaiV committed 2024-11-19 13:18:58 +08:00
1 parent 3783582b33
commit 6304a8e9b6
2 files changed
+23 -29

No files matched your search

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