Эх сурвалжийг харах

reactor:宜宾司法大屏改造

zhangchong 1 долоо хоног өмнө
parent
commit
89af3b26a6

+ 5 - 1
src/views/home/right-bottom.vue

@@ -83,7 +83,11 @@ const getData = async () => {
       EndTime: dayjs(date.value[1]).format("YYYY-MM-DD"),
       EndTime: dayjs(date.value[1]).format("YYYY-MM-DD"),
       IsSource: activeIndex.value === 0,
       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)
       .map((item: any) => item.name)
       .filter((item: any) => item);
       .filter((item: any) => item);
     dataList.value = result
     dataList.value = result