From e5a8b1db3c1bffc1fc14a780168b81dbe8a07854 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 20 Feb 2026 02:42:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invest/accountBigScreen/index.vue | 76 ++++++--------------- 1 file changed, 22 insertions(+), 54 deletions(-) diff --git a/src/views/invest/accountBigScreen/index.vue b/src/views/invest/accountBigScreen/index.vue index c4350ec..1f9ae75 100644 --- a/src/views/invest/accountBigScreen/index.vue +++ b/src/views/invest/accountBigScreen/index.vue @@ -259,47 +259,15 @@
- - 近一周日常支出趋势 - - - 近一月日常支出趋势 - + 近一周日常支出趋势 + 近一月日常支出趋势
- - 近一周投资收益趋势 - - - 近一月投资收益趋势 - + 近一周投资收益趋势 + 近一月投资收益趋势
@@ -309,24 +277,8 @@
- - 近一周账户收支统计 - - - 近一月账户收支统计 - + 近一周账户收支统计 + 近一月账户收支统计
@@ -528,6 +480,22 @@ let openCardChart = null let netAssetTrendChart = null let posCardChart = null +// 切换Tab的方法 +const switchExpenseTab = (tab) => { + expenseActiveTab.value = tab + initWeeklyExpenseChart() +} + +const switchInvestIncomeTab = (tab) => { + investIncomeActiveTab.value = tab + initWeeklyInvestIncomeChart() +} + +const switchBalanceTab = (tab) => { + balanceActiveTab.value = tab + initBalanceChart() +} + const initAssetStructureChart = () => { const el = document.getElementById('assetStructureChart') if (!el) return