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

Loading…
Cancel
Save