|
@@ -83,7 +83,11 @@ const getData = async () => {
|
|
|
EndTime: dayjs(date.value[1]).format("YYYY-MM-DD"),
|
|
|
IsSource: activeIndex.value === 0,
|
|
|
});
|
|
|
- const legEndTime = result
|
|
|
+ // 根据hasCount排序
|
|
|
+ result.sort((a: any, b: any) => {
|
|
|
+ return b.hasCount - a.hasCount;
|
|
|
+ });
|
|
|
+ let legEndTime = result
|
|
|
.map((item: any) => item.name)
|
|
|
.filter((item: any) => item);
|
|
|
dataList.value = result
|