donghaolin 5 months ago
parent
commit
6395065ccf
  1. 13
      vue/gold-system/src/views/workspace/index.vue

13
vue/gold-system/src/views/workspace/index.vue

@ -242,9 +242,9 @@ const get = async function () {
] ]
option4Data.value = [ option4Data.value = [
{ value: Math.abs(getYearConsumeCoin.value.todayRecharge), name: '充值金币' },
{ value: Math.abs(getYearConsumeCoin.value.todayFree), name: '免费金币' },
{ value: Math.abs(getYearConsumeCoin.value.todayTask), name: '任务金币' },
{ value: Math.abs(getYearConsumeCoin.value.yearSumRechargeCoin), name: '充值金币' },
{ value: Math.abs(getYearConsumeCoin.value.yearSumFreeCoin), name: '免费金币' },
{ value: Math.abs(getYearConsumeCoin.value.yearSumTaskCoin), name: '任务金币' },
]; ];
console.log('option4Data', option4Data.value); console.log('option4Data', option4Data.value);
@ -596,10 +596,6 @@ onMounted(async function () {
// domecharts // domecharts
var yearRechargePie = echarts.init(document.getElementById('yearRecharge')); var yearRechargePie = echarts.init(document.getElementById('yearRecharge'));
const option3 = { const option3 = {
title: {
text: '全年累计金币数(个)\n',
subtext: statistics.value.totalSumCoin
},
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
@ -610,6 +606,7 @@ onMounted(async function () {
}, },
series: [ series: [
{ {
name: '全年累计金币数(个)\n' + statistics.value.totalSumCoin,
type: 'pie', type: 'pie',
radius: ['80%', '60%'], radius: ['80%', '60%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
@ -829,7 +826,7 @@ onMounted(async function () {
</span> </span>
</p> </p>
<template #footer>昨日充值人数 {{ formatNum(Math.abs(statistics.rechargeCountYesterday)) }} <template #footer>昨日充值人数 {{ formatNum(Math.abs(statistics.rechargeCountYesterday)) }}
其中首充</template>
其中首充 {{ formatNum(Math.abs(statistics.firstRechargeCountYesterday)) }} </template>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>

Loading…
Cancel
Save