mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
code refactor
This commit is contained in:
@@ -164,7 +164,7 @@
|
||||
>
|
||||
<template #title>
|
||||
<div class="no-padding no-margin">
|
||||
<span>{{ $t(`currency.${account.currency}`) }} </span>
|
||||
<span>{{ getCurrencyName(account.currency) }} </span>
|
||||
<small class="smaller">{{ account.currency }}</small>
|
||||
</div>
|
||||
</template>
|
||||
@@ -357,7 +357,7 @@
|
||||
>
|
||||
<template #title>
|
||||
<div class="no-padding no-margin">
|
||||
<span>{{ $t(`currency.${subAccount.currency}`) }} </span>
|
||||
<span>{{ getCurrencyName(subAccount.currency) }} </span>
|
||||
<small class="smaller">{{ subAccount.currency }}</small>
|
||||
</div>
|
||||
</template>
|
||||
@@ -712,6 +712,9 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
getCurrencyName(currencyCode) {
|
||||
return this.$locale.getCurrencyName(currencyCode);
|
||||
},
|
||||
getAccountTypeName(accountType) {
|
||||
const typeName = getNameByKeyValue(this.allAccountTypesArray, accountType, 'id', 'name');
|
||||
return this.$t(typeName);
|
||||
|
||||
Reference in New Issue
Block a user