From 62a9b0e5ca1e22912674fe818b6eb74b12fac5cb Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Fri, 16 Sep 2022 17:13:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9F=E7=84=B6=E8=BF=98=E6=9C=89=E4=B8=AAol?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/communityParty/partyOld.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/modules/visual/communityParty/partyOld.vue b/src/views/modules/visual/communityParty/partyOld.vue index 6e3581082..9533c0383 100644 --- a/src/views/modules/visual/communityParty/partyOld.vue +++ b/src/views/modules/visual/communityParty/partyOld.vue @@ -338,7 +338,11 @@ export default { this.pieEduOptions = pieOption(this.pieEduChartS) this.pieEduOptions.legend = { ...legend } // this.pieEduOptions.series[1].width = 400 - this.clickEduPie(0) + + const maxValue = Math.max(...this.eduItem.map(i => Number(i.value))); + const maxIndex = this.eduItem.findIndex(a => Number(a.value)==maxValue); + this.clickEduPie(maxIndex) + console.log('----------------------最大值old', maxValue, maxIndex) let fun = params => { this.clickEduPie(params.dataIndex) }