浏览代码

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

maxiaoxiao 10 月之前
父节点
当前提交
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)