From bb7c6e36a1cdcb983e23cfcb2fa0d572f1e415ef Mon Sep 17 00:00:00 2001 From: MaysWind Date: Thu, 28 Jan 2021 23:26:29 +0800 Subject: [PATCH] add time and type parameter to link in statistics page --- src/views/mobile/statistics/Transaction.vue | 23 ++++++++++++++++++++- src/views/mobile/transactions/List.vue | 14 +++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/views/mobile/statistics/Transaction.vue b/src/views/mobile/statistics/Transaction.vue index 2eddcaa7..c0c054da 100644 --- a/src/views/mobile/statistics/Transaction.vue +++ b/src/views/mobile/statistics/Transaction.vue @@ -111,7 +111,7 @@ + :link="data | itemLinkUrl(query, $constants.statistics.allChartDataTypes)">
0 && parseInt(query.minTime) > 0) { + dateParam = { + dateType: parseInt(query.dateType), + maxTime: parseInt(query.maxTime), + minTime: parseInt(query.minTime) + }; + } this.$store.dispatch('initTransactionListFilter', { dateType: dateParam ? dateParam.dateType : undefined, maxTime: dateParam ? dateParam.maxTime : undefined, minTime: dateParam ? dateParam.minTime : undefined, - type: query.type, + type: parseInt(query.type) > 0 ? parseInt(query.type) : undefined, categoryId: query.categoryId, accountId: query.accountId });