This commit is contained in:
MaysWind
2023-06-04 01:24:08 +08:00
parent 95ec005894
commit f9a14581e1
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -657,7 +657,7 @@ export default {
if ((!query.type || query.type === '0') && query.categoryId && query.categoryId !== '0' && self.allCategoriesMap[query.categoryId]) {
const category = self.allCategoriesMap[query.categoryId];
const type = self.$utilities.categroyTypeToTransactionType(category.type);
const type = self.$utilities.categoryTypeToTransactionType(category.type);
if (self.$utilities.isNumber(type)) {
self.transaction.type = type;
+3 -3
View File
@@ -318,9 +318,9 @@
class="no-margin-vertical"
:key="categoryType"
v-for="(categories, categoryType) in allPrimaryCategories"
v-show="!query.type || $utilities.categroyTypeToTransactionType(parseInt(categoryType)) === query.type"
v-show="!query.type || $utilities.categoryTypeToTransactionType(parseInt(categoryType)) === query.type"
>
<f7-list-item divider :title="getTransactionTypeName($utilities.categroyTypeToTransactionType(parseInt(categoryType)), 'Type')"></f7-list-item>
<f7-list-item divider :title="getTransactionTypeName($utilities.categoryTypeToTransactionType(parseInt(categoryType)), 'Type')"></f7-list-item>
<f7-list-item accordion-item
:title="category.name"
:class="getCategoryListItemCheckedClass(category, query.categoryId)"
@@ -672,7 +672,7 @@ export default {
if (type && this.query.categoryId) {
const category = this.allCategories[this.query.categoryId];
if (category && category.type !== this.$utilities.transactionTypeToCategroyType(type)) {
if (category && category.type !== this.$utilities.transactionTypeToCategoryType(type)) {
removeCategoryFilter = true;
}
}