From dad3f1041ee0a36939ecb7f699d8a3499ebccfb8 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 7 Jul 2024 14:08:53 +0800 Subject: [PATCH] fix the bug that the filter does not take effect when navigating from the account or statistics page to the transaction list page --- src/stores/statistics.js | 4 ++-- src/views/desktop/accounts/ListPage.vue | 2 +- src/views/mobile/accounts/ListPage.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/stores/statistics.js b/src/stores/statistics.js index 4bd394b9..ec069b35 100644 --- a/src/stores/statistics.js +++ b/src/stores/statistics.js @@ -754,12 +754,12 @@ export const useStatisticsStore = defineStore('statistics', { || this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.ExpenseByAccount.type || this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.AccountTotalAssets.type || this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.AccountTotalLiabilities.type) { - querys.push('accountId=' + item.id); + querys.push('accountIds=' + item.id); } else if (this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.IncomeByPrimaryCategory.type || this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.IncomeBySecondaryCategory.type || this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.ExpenseByPrimaryCategory.type || this.transactionStatisticsFilter.chartDataType === statisticsConstants.allChartDataTypes.ExpenseBySecondaryCategory.type) { - querys.push('categoryId=' + item.id); + querys.push('categoryIds=' + item.id); } if (analysisType === statisticsConstants.allAnalysisTypes.CategoricalAnalysis diff --git a/src/views/desktop/accounts/ListPage.vue b/src/views/desktop/accounts/ListPage.vue index 7dbb802e..2d9201f5 100644 --- a/src/views/desktop/accounts/ListPage.vue +++ b/src/views/desktop/accounts/ListPage.vue @@ -204,7 +204,7 @@
+ :to="`/transaction/list?accountIds=${accountOrSubAccountId(element)}`"> {{ $t('Transaction List') }}