From 453a9ff61cc8d09d6fa1a04b9b779c0d7aa41178 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 16 Jul 2024 00:18:43 +0800 Subject: [PATCH] code refactor --- .../desktop/statistics/TransactionPage.vue | 4 +- .../mobile/statistics/TransactionPage.vue | 132 ++++++++++++------ 2 files changed, 88 insertions(+), 48 deletions(-) diff --git a/src/views/desktop/statistics/TransactionPage.vue b/src/views/desktop/statistics/TransactionPage.vue index 22be9820..1c126d01 100644 --- a/src/views/desktop/statistics/TransactionPage.vue +++ b/src/views/desktop/statistics/TransactionPage.vue @@ -448,7 +448,7 @@ export default { } else if (this.queryAnalysisType === statisticsConstants.allAnalysisTypes.TrendAnalysis) { return this.$locale.formatUnixTimeToLongYearMonth(this.userStore, getYearMonthFirstUnixTime(this.query.trendChartStartYearMonth)); } else { - return []; + return ''; } }, queryEndTime() { @@ -457,7 +457,7 @@ export default { } else if (this.queryAnalysisType === statisticsConstants.allAnalysisTypes.TrendAnalysis) { return this.$locale.formatUnixTimeToLongYearMonth(this.userStore, getYearMonthLastUnixTime(this.query.trendChartEndYearMonth)); } else { - return []; + return ''; } }, allAnalysisTypes() { diff --git a/src/views/mobile/statistics/TransactionPage.vue b/src/views/mobile/statistics/TransactionPage.vue index 95f2f3e4..90c648e4 100644 --- a/src/views/mobile/statistics/TransactionPage.vue +++ b/src/views/mobile/statistics/TransactionPage.vue @@ -134,7 +134,7 @@ - + - {{ dateRangeName(query) }} + {{ dateRangeName() }} - +