Browse Source

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

maxiaoxiao 10 months ago
parent
commit
ce9793737f
1 changed files with 1 additions and 1 deletions
  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)