From aec249624a7219ae803ce934cdc070407407320e Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 4 Oct 2022 16:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=B1=80=EF=BC=9A=20=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E7=BB=9F=E8=AE=A1=E9=87=91=E5=AD=97=E5=A1=94=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=80=BC=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../abilityStatistics/components/ResourceAggregation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/views/abilityStatistics/components/ResourceAggregation.vue b/front/src/views/abilityStatistics/components/ResourceAggregation.vue index 50f850f7..45fa2333 100644 --- a/front/src/views/abilityStatistics/components/ResourceAggregation.vue +++ b/front/src/views/abilityStatistics/components/ResourceAggregation.vue @@ -314,9 +314,9 @@ const funnelPlot = (dataList) => { let arrCopy = ['0-5', '5-10', '10-15', '15-20', '20以上'] // 真实数据 dataList.sort((a, b) => { - console.log(arrCopy.indexOf(a.fanwei), arrCopy.indexOf(b.fanwei)) - return arrCopy.indexOf(b.fanwei) - arrCopy.indexOf(a.fanwei) + return Number(a.value) - Number(b.value) }) + let _arr = dataList.map(v => v.fanwei) || arrCopy; // 数据配置形成金字塔形状固定 let chartData = _arr.map((v, i) => {