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) }