From 29f628c60679ee4c66a9bfce8e30f8b71e1e866b Mon Sep 17 00:00:00 2001 From: lihui Date: Mon, 21 Jul 2025 11:00:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=8D=A2=20?= =?UTF-8?q?=E4=B8=BA=E5=A4=96=E5=B1=82=20=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workspace/index.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/workspace/index.vue b/src/views/workspace/index.vue index ff245f5..0652dc2 100644 --- a/src/views/workspace/index.vue +++ b/src/views/workspace/index.vue @@ -408,8 +408,12 @@ const processData = (data) => { dailyRefund.value = yesterdayRefund.toFixed(2) yearlyRechargeNum.value = summary.yearlyRechargeNum - sumWow.value = (summary.sumWow / length.value).toFixed(2) - sumDaily.value = (summary.sumDaily / length.value).toFixed(2) + + // // 周同比 + // sumWow.value = (marketCards.sumWow / length.value).toFixed(2) + // // 日环比 + // sumDaily.value = (marketCards.sumDaily / length.value).toFixed(2) + rechargeNum.value = summary.rechargeNum firstRecharge.value = summary.firstRecharge } @@ -712,6 +716,11 @@ const getCardData = async () => { try { const response = await API({ url: '/workbench/getCard', data: {} }) workDataUpdateTime.value = response.updateTime + // 周同比 + sumWow.value = response.sumWow .toFixed(2) + // 日环比 + sumDaily.value = response.sumDaily.toFixed(2) + if (response && response.data) { processData(response.data) } else if (Array.isArray(response?.marketCards)) {