diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue index f01baef7..919940bd 100644 --- a/src/views/ucurrency/Index.vue +++ b/src/views/ucurrency/Index.vue @@ -37,7 +37,7 @@ 经验值排行榜
- 所有用户经验值TOP排行榜单,通过学习、贡献等行为可以获得经验值 。

+ 所有用户经验值TOP排行榜单,通过学习、贡献等行为可以获得经验值 。
系统已经根据您在4月23日新系统上线之后产生的学习数据对经验值进行
了初始化,更早的数据以及老系统中产生的数据,将在2022年底一次性
补充到您的经验值中,请您耐心等待。 @@ -428,6 +428,7 @@ itemHeight: 8, borderRadius: '50%', itemGap: 26, + selectedMode: false, formatter: function(name) { let data = option.series[0].data; let total = 0; @@ -495,10 +496,14 @@ } let chatData = []; let total = null; + let top3 = null; let totalList = []; for (let key in res.result.chatData) { if(res.result.chatData[key] > 0) { this.isShowChart = true; + if(key !== 'other') { + top3 += res.result.chatData[key]; + } } total += res.result.chatData[key]; totalList.push(res.result.chatData[key]); @@ -507,14 +512,7 @@ name: this.getUType(key) }) } - // 计算前三百分比 - totalList.sort(); - totalList = totalList.splice(1,3); - let top3 = null; - totalList.forEach(item => { - top3+=item; - }) - this.percentageNum = (top3/total)*100; + this.percentageNum = ((top3/total)*100).toFixed(2); this.chatData = chatData; this.initChat(chatData); }