diff --git a/vue/gold-system/src/views/workspace/index.vue b/vue/gold-system/src/views/workspace/index.vue
index ee2fd33..c72894a 100644
--- a/vue/gold-system/src/views/workspace/index.vue
+++ b/vue/gold-system/src/views/workspace/index.vue
@@ -7,6 +7,7 @@ import axios, { all } from "axios";
import API from "../../api/index";
import moment from "moment";
import * as math from 'mathjs';
+import { getTime } from "element-plus/es/components/countdown/src/utils.mjs";
// 变量
// 加载对象
@@ -93,7 +94,7 @@ const get = async function () {
{}
);
const result2 = await API.post(
- "http://192.168.8.93:10010/statistics/a",
+ "http://192.168.8.174:10010/statistics/a",
{}
);
const result3 = await API.post(
@@ -953,9 +954,12 @@ onMounted(async function () {
tooltip: {
trigger: "item",
position: ["15%", "-3%"],
+ formatter: function (params) {
+ return params.seriesName + '
' + params.name;
+ }
},
legend: {
- bottom: "-2%",
+ bottom: "-1%",
left: "center",
orient: "vertical",
},
@@ -989,9 +993,12 @@ onMounted(async function () {
tooltip: {
trigger: "item",
position: ["15%", "-3%"],
+ formatter: function (params) {
+ return params.seriesName + '
' + params.name;
+ }
},
legend: {
- bottom: "-2%",
+ bottom: "-1%",
left: "center",
orient: "vertical",
},
@@ -1030,9 +1037,12 @@ onMounted(async function () {
tooltip: {
trigger: "item",
position: ["15%", "-3%"],
+ formatter: function (params) {
+ return params.seriesName + '
' + params.name + (params.value == getSumCoin.value.todayFree ? '6月到期 | ' + statistics.value.free6SumCoin + ' ; 12月到期 | ' + statistics.value.free12SumCoin : '');
+ }
},
legend: {
- bottom: "-2%",
+ bottom: "-1%",
left: "center",
orient: "vertical",
},
@@ -1088,7 +1098,7 @@ onMounted(async function () {
当前金币余量
{{ formatNum(getSumCoin.todayTotalCoin) }} @@ -1113,14 +1123,17 @@ onMounted(async function () {
免费金币:6月到期 | {{ formatNum(statistics.free6SumCoin) }} ; 12月到期 |{{ formatNum(statistics.free12SumCoin) }}
+全年累计金币数
{{ formatNum(Math.abs(statistics.totalSumCoin)) }} @@ -1137,7 +1150,7 @@ onMounted(async function () {
全年累计消耗金币数
{{ formatNum(Math.abs(getYearConsumeCoin.yearsumCoin)) }} @@ -1153,7 +1166,7 @@ onMounted(async function () {
全年累计充值人数
{{ formatNum(Math.abs(statistics.rechargeCount)) }} @@ -1345,9 +1358,9 @@ onMounted(async function () {