From 4cbf956b910bb2a3983848f19cb3f87c6d40f777 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 31 Jan 2021 21:53:29 +0800 Subject: [PATCH] modify pie chart text when no data --- src/locales/en.js | 1 + src/locales/zh_Hans.js | 1 + src/views/mobile/statistics/Transaction.vue | 27 +++++++++++++++------ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/locales/en.js b/src/locales/en.js index 89d8787f..5a6db655 100644 --- a/src/locales/en.js +++ b/src/locales/en.js @@ -514,6 +514,7 @@ export default { 'Settings': 'Settings', 'Back': 'Back', 'Load More': 'Load More', + 'No data': 'No data', 'Change Language': 'Change Language', 'Date is too early': 'Date is too early', 'Unlock': 'Unlock', diff --git a/src/locales/zh_Hans.js b/src/locales/zh_Hans.js index aaa2ae07..1f4cf781 100644 --- a/src/locales/zh_Hans.js +++ b/src/locales/zh_Hans.js @@ -514,6 +514,7 @@ export default { 'Settings': '设置', 'Back': '返回', 'Load More': '加载更多', + 'No data': '没有数据', 'Change Language': '修改语言', 'Date is too early': '日期过早', 'Unlock': '解锁', diff --git a/src/views/mobile/statistics/Transaction.vue b/src/views/mobile/statistics/Transaction.vue index 20e1ce4f..6c63f80a 100644 --- a/src/views/mobile/statistics/Transaction.vue +++ b/src/views/mobile/statistics/Transaction.vue @@ -26,6 +26,7 @@ - {{ $t('Total Expense') }} - {{ $t('Total Income') }} - + {{ $t('Total Expense') }} + {{ $t('Total Income') }} + {{ statisticsData.totalAmount | currency(defaultCurrency) }} + + {{ $t('No data') }} + @@ -609,9 +614,12 @@ export default {