mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
fix typo
This commit is contained in:
+4
-4
@@ -754,7 +754,7 @@ function parseDeviceInfo(ua) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function transactionTypeToCategroyType(transactionType) {
|
function transactionTypeToCategoryType(transactionType) {
|
||||||
if (transactionType === transactionConstants.allTransactionTypes.Income) {
|
if (transactionType === transactionConstants.allTransactionTypes.Income) {
|
||||||
return categoryConstants.allCategoryTypes.Income;
|
return categoryConstants.allCategoryTypes.Income;
|
||||||
} else if (transactionType === transactionConstants.allTransactionTypes.Expense) {
|
} else if (transactionType === transactionConstants.allTransactionTypes.Expense) {
|
||||||
@@ -766,7 +766,7 @@ function transactionTypeToCategroyType(transactionType) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function categroyTypeToTransactionType(categoryType) {
|
function categoryTypeToTransactionType(categoryType) {
|
||||||
if (categoryType === categoryConstants.allCategoryTypes.Income) {
|
if (categoryType === categoryConstants.allCategoryTypes.Income) {
|
||||||
return transactionConstants.allTransactionTypes.Income;
|
return transactionConstants.allTransactionTypes.Income;
|
||||||
} else if (categoryType === categoryConstants.allCategoryTypes.Expense) {
|
} else if (categoryType === categoryConstants.allCategoryTypes.Expense) {
|
||||||
@@ -1067,8 +1067,8 @@ export default {
|
|||||||
generateRandomString,
|
generateRandomString,
|
||||||
parseUserAgent,
|
parseUserAgent,
|
||||||
parseDeviceInfo,
|
parseDeviceInfo,
|
||||||
transactionTypeToCategroyType,
|
transactionTypeToCategoryType,
|
||||||
categroyTypeToTransactionType,
|
categoryTypeToTransactionType,
|
||||||
allVisibleTransactionCategories,
|
allVisibleTransactionCategories,
|
||||||
getCategoryInfo,
|
getCategoryInfo,
|
||||||
getCategorizedAccounts,
|
getCategorizedAccounts,
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ export default {
|
|||||||
|
|
||||||
if ((!query.type || query.type === '0') && query.categoryId && query.categoryId !== '0' && self.allCategoriesMap[query.categoryId]) {
|
if ((!query.type || query.type === '0') && query.categoryId && query.categoryId !== '0' && self.allCategoriesMap[query.categoryId]) {
|
||||||
const category = 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)) {
|
if (self.$utilities.isNumber(type)) {
|
||||||
self.transaction.type = type;
|
self.transaction.type = type;
|
||||||
|
|||||||
@@ -318,9 +318,9 @@
|
|||||||
class="no-margin-vertical"
|
class="no-margin-vertical"
|
||||||
:key="categoryType"
|
:key="categoryType"
|
||||||
v-for="(categories, categoryType) in allPrimaryCategories"
|
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
|
<f7-list-item accordion-item
|
||||||
:title="category.name"
|
:title="category.name"
|
||||||
:class="getCategoryListItemCheckedClass(category, query.categoryId)"
|
:class="getCategoryListItemCheckedClass(category, query.categoryId)"
|
||||||
@@ -672,7 +672,7 @@ export default {
|
|||||||
if (type && this.query.categoryId) {
|
if (type && this.query.categoryId) {
|
||||||
const category = this.allCategories[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;
|
removeCategoryFilter = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user