Browse Source

更新了最下行饼图可能出现复数的问题

Hongxilin
hongxilin 5 months ago
parent
commit
95d2e47286
  1. 12
      vue/gold-system/src/views/workspace/index.vue

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

@ -341,6 +341,7 @@ const handleClick = function () {
goldTypePay.value = '全部类型';
goldTypeConsume.value = '全部类型';
}
//
const changePlatform = function () {
console.log('changePlatform', platform.value);
@ -445,7 +446,7 @@ const changePlatform = function () {
//
//
const formatNum = function (val) {
console.log(val);
// console.log(val);
if (val === undefined) {
return ''; // toString
} else {
@ -599,6 +600,7 @@ onMounted(async function () {
// 使
consumeBar.setOption(option2);
// domecharts
var yearRechargePie = echarts.init(document.getElementById('yearRecharge'));
const option3 = {
@ -612,7 +614,7 @@ onMounted(async function () {
},
series: [
{
name: '全年累计金币数(个)\n' + statistics.value.totalSumCoin,
name: '全年累计金币数(个)\n' + Math.abs(statistics.value.totalSumCoin),
type: 'pie',
radius: ['60%', '80%'],
avoidLabelOverlap: false,
@ -650,7 +652,7 @@ onMounted(async function () {
},
series: [
{
name: '全年累计消耗金币数(个)\n' + getYearConsumeCoin.value.yearsumCoin,
name: '全年累计消耗金币数(个)\n' + Math.abs(getYearConsumeCoin.value.yearsumCoin),
type: 'pie',
radius: ['60%', '80%'],
avoidLabelOverlap: false,
@ -688,7 +690,7 @@ onMounted(async function () {
},
series: [
{
name: '当前金币余量(个)\n' + getSumCoin.value.todayTotalCoin,
name: '当前金币余量(个)\n' + Math.abs(getSumCoin.value.todayTotalCoin),
type: 'pie',
radius: ['60%', '80%'],
avoidLabelOverlap: false,
@ -841,7 +843,7 @@ onMounted(async function () {
<el-row :gutter="20">
<el-col>
<el-card>
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" @tab-change="handleChange">
<el-tab-pane label="金币充值" name="recharge">
<div>
合计充值金币

Loading…
Cancel
Save