From feea5f35182c1ec79ad82c434a5b0a0a0f67f0d5 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 20 Aug 2023 16:17:04 +0800 Subject: [PATCH] modify style --- src/views/desktop/accounts/ListPage.vue | 62 +++++++++++++++---- .../desktop/statistics/TransactionPage.vue | 57 +++++++++++++---- 2 files changed, 95 insertions(+), 24 deletions(-) diff --git a/src/views/desktop/accounts/ListPage.vue b/src/views/desktop/accounts/ListPage.vue index bcf81ae6..8361ad0f 100644 --- a/src/views/desktop/accounts/ListPage.vue +++ b/src/views/desktop/accounts/ListPage.vue @@ -7,22 +7,22 @@
{{ $t('Net assets') }}

- {{ netAssets }} - + {{ netAssets }} +

{{ $t('Total liabilities') }}

- {{ totalLiabilities }} - + {{ totalLiabilities }} +

{{ $t('Total assets') }}

- {{ totalAssets }} - + {{ totalAssets }} +

@@ -34,7 +34,11 @@ v-for="accountCategory in allAccountCategories">
- {{ accountCategoryTotalBalance(accountCategory) }} + {{ accountCategoryTotalBalance(accountCategory) }} + + + {{ $t(accountCategory.name) }}
@@ -93,10 +97,39 @@ -
- -
+ + + + + @@ -244,12 +277,13 @@ import { mdiEyeOutline, mdiEyeOffOutline, mdiRefresh, + mdiSquareRounded, mdiMenu, mdiPencilOutline, mdiDeleteOutline, mdiListBoxOutline, mdiDrag, - mdiDotsVertical, + mdiDotsVertical } from '@mdi/js'; export default { @@ -272,6 +306,7 @@ export default { eye: mdiEyeOutline, eyeSlash: mdiEyeOffOutline, refresh: mdiRefresh, + square: mdiSquareRounded, menu: mdiMenu, edit: mdiPencilOutline, show: mdiEyeOutline, @@ -297,6 +332,9 @@ export default { categorizedAccounts() { return this.accountsStore.allCategorizedAccounts; }, + allAccountCount() { + return this.accountsStore.allAvailableAccountsCount; + }, netAssets() { const netAssets = this.accountsStore.getNetAssets(this.showAccountBalance); return this.getDisplayCurrency(netAssets, this.defaultCurrency); diff --git a/src/views/desktop/statistics/TransactionPage.vue b/src/views/desktop/statistics/TransactionPage.vue index c1eafc35..970982a6 100644 --- a/src/views/desktop/statistics/TransactionPage.vue +++ b/src/views/desktop/statistics/TransactionPage.vue @@ -112,17 +112,17 @@
-
- -
- + v-if="initing || (statisticsData && statisticsData.items && statisticsData.items.length)"> {{ totalAmountName }} - + {{ getDisplayAmount(statisticsData.totalAmount, defaultCurrency) }} + {{ $t('No transaction data') }} - + + - - + + + + +