소스 검색

级联查询:调整现状图例按面积排序

maxiaoxiao 11 달 전
부모
커밋
ce9793737f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/Query/clickQuery/MultiLevelQuery.vue

+ 1 - 1
src/components/Query/clickQuery/MultiLevelQuery.vue

@@ -261,7 +261,7 @@ export default {
                                 Object.keys(countByName).forEach((key) => {
                                     edata.push({name:key,value:this.compute(countByName[key])})
                                 });
-                                console.log(index,edata,'--a-a--')
+                                edata.sort((a, b) => b.value - a.value);
                                 // }
                                 this.setEchart(edata,'vertical',index)