File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/views/bpm/processInstance/create Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 41
41
:ref =" `category-${categoryCode}`"
42
42
>
43
43
<h3 class =" text-18px font-bold mb-10px mt-5px" >
44
- {{ getCategoryName(categoryCode) }}
44
+ {{ getCategoryName(categoryCode as any ) }}
45
45
</h3 >
46
46
<div class =" grid grid-cols-3 gap3" >
47
47
<el-tooltip
@@ -175,7 +175,17 @@ const handleQuery = () => {
175
175
/** 流程定义的分组 */
176
176
const processDefinitionGroup: any = computed (() => {
177
177
if (! processDefinitionList .value ?.length ) return {}
178
- return groupBy (filteredProcessDefinitionList .value , ' category' )
178
+ const grouped = groupBy (filteredProcessDefinitionList .value , ' category' )
179
+
180
+ const orderedGroup = {}
181
+ // 按照 categoryList 的顺序重新组织数据
182
+ categoryList .value .forEach ((category : any ) => {
183
+ if (grouped [category .code ]) {
184
+ orderedGroup [category .code ] = grouped [category .code ]
185
+ }
186
+ })
187
+
188
+ return orderedGroup
179
189
})
180
190
181
191
/** 左侧分类切换 */
You can’t perform that action at this time.
0 commit comments