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