mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
fix the incorrect title of categories
This commit is contained in:
@@ -69,8 +69,8 @@ export function useTransactionListPageBase() {
|
|||||||
const allAccounts = computed<Account[]>(() => accountsStore.allMixedPlainAccounts);
|
const allAccounts = computed<Account[]>(() => accountsStore.allMixedPlainAccounts);
|
||||||
const allAccountsMap = computed<Record<string, Account>>(() => accountsStore.allAccountsMap);
|
const allAccountsMap = computed<Record<string, Account>>(() => accountsStore.allAccountsMap);
|
||||||
const allAvailableAccountsCount = computed<number>(() => accountsStore.allAvailableAccountsCount);
|
const allAvailableAccountsCount = computed<number>(() => accountsStore.allAvailableAccountsCount);
|
||||||
const allPrimaryCategories = computed<Record<number, TransactionCategory[]>>(() => {
|
const allPrimaryCategories = computed<Record<string, TransactionCategory[]>>(() => {
|
||||||
const primaryCategories: Record<number, TransactionCategory[]> = {};
|
const primaryCategories: Record<string, TransactionCategory[]> = {};
|
||||||
|
|
||||||
for (const categoryType in transactionCategoriesStore.allTransactionCategories) {
|
for (const categoryType in transactionCategoriesStore.allTransactionCategories) {
|
||||||
if (!Object.prototype.hasOwnProperty.call(transactionCategoriesStore.allTransactionCategories, categoryType)) {
|
if (!Object.prototype.hasOwnProperty.call(transactionCategoriesStore.allTransactionCategories, categoryType)) {
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
v-for="(categories, categoryType) in allPrimaryCategories">
|
v-for="(categories, categoryType) in allPrimaryCategories">
|
||||||
<v-list-item density="compact" v-show="categories && categories.length">
|
<v-list-item density="compact" v-show="categories && categories.length">
|
||||||
<v-list-item-title>
|
<v-list-item-title>
|
||||||
<span class="text-sm">{{ getTransactionTypeName(categoryTypeToTransactionType(categoryType), 'Type') }}</span>
|
<span class="text-sm">{{ getTransactionTypeName(categoryTypeToTransactionType(parseInt(categoryType)), 'Type') }}</span>
|
||||||
</v-list-item-title>
|
</v-list-item-title>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
|
||||||
|
|||||||
@@ -319,7 +319,7 @@
|
|||||||
v-for="(categories, categoryType) in allPrimaryCategories"
|
v-for="(categories, categoryType) in allPrimaryCategories"
|
||||||
v-show="categories && categories.length"
|
v-show="categories && categories.length"
|
||||||
>
|
>
|
||||||
<f7-list-item divider :title="getTransactionTypeName(categoryTypeToTransactionType(categoryType), 'Type')"></f7-list-item>
|
<f7-list-item divider :title="getTransactionTypeName(categoryTypeToTransactionType(parseInt(categoryType)), 'Type')"></f7-list-item>
|
||||||
<f7-list-item accordion-item
|
<f7-list-item accordion-item
|
||||||
:title="category.name"
|
:title="category.name"
|
||||||
:class="getCategoryListItemCheckedClass(category, queryAllFilterCategoryIds)"
|
:class="getCategoryListItemCheckedClass(category, queryAllFilterCategoryIds)"
|
||||||
|
|||||||
Reference in New Issue
Block a user