mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
code refactor
This commit is contained in:
@@ -98,8 +98,8 @@ const router = createRouter({
|
|||||||
initMaxTime: route.query.maxTime,
|
initMaxTime: route.query.maxTime,
|
||||||
initMinTime: route.query.minTime,
|
initMinTime: route.query.minTime,
|
||||||
initType: route.query.type,
|
initType: route.query.type,
|
||||||
initCategoryId: route.query.categoryId,
|
initCategoryIds: route.query.categoryIds,
|
||||||
initAccountId: route.query.accountId,
|
initAccountIds: route.query.accountIds,
|
||||||
initAmountFilter: route.query.amountFilter,
|
initAmountFilter: route.query.amountFilter,
|
||||||
initKeyword: route.query.keyword
|
initKeyword: route.query.keyword
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -467,11 +467,11 @@ export const useTransactionsStore = defineStore('transactions', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.transactionsFilter.accountId && this.transactionsFilter.accountId !== '0') {
|
if (this.transactionsFilter.accountId && this.transactionsFilter.accountId !== '0') {
|
||||||
querys.push('accountId=' + this.transactionsFilter.accountId);
|
querys.push('accountIds=' + this.transactionsFilter.accountId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.transactionsFilter.categoryId && this.transactionsFilter.categoryId !== '0') {
|
if (this.transactionsFilter.categoryId && this.transactionsFilter.categoryId !== '0') {
|
||||||
querys.push('categoryId=' + this.transactionsFilter.categoryId);
|
querys.push('categoryIds=' + this.transactionsFilter.categoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
querys.push('dateType=' + this.transactionsFilter.dateType);
|
querys.push('dateType=' + this.transactionsFilter.dateType);
|
||||||
|
|||||||
@@ -455,8 +455,8 @@ export default {
|
|||||||
'initMaxTime',
|
'initMaxTime',
|
||||||
'initMinTime',
|
'initMinTime',
|
||||||
'initType',
|
'initType',
|
||||||
'initCategoryId',
|
'initCategoryIds',
|
||||||
'initAccountId',
|
'initAccountIds',
|
||||||
'initAmountFilter',
|
'initAmountFilter',
|
||||||
'initKeyword'
|
'initKeyword'
|
||||||
],
|
],
|
||||||
@@ -714,8 +714,8 @@ export default {
|
|||||||
minTime: this.initMinTime,
|
minTime: this.initMinTime,
|
||||||
maxTime: this.initMaxTime,
|
maxTime: this.initMaxTime,
|
||||||
type: this.initType,
|
type: this.initType,
|
||||||
categoryId: this.initCategoryId,
|
categoryIds: this.initCategoryIds,
|
||||||
accountId: this.initAccountId,
|
accountIds: this.initAccountIds,
|
||||||
amountFilter: this.initAmountFilter,
|
amountFilter: this.initAmountFilter,
|
||||||
keyword: this.initKeyword
|
keyword: this.initKeyword
|
||||||
});
|
});
|
||||||
@@ -743,8 +743,8 @@ export default {
|
|||||||
minTime: to.query.minTime,
|
minTime: to.query.minTime,
|
||||||
maxTime: to.query.maxTime,
|
maxTime: to.query.maxTime,
|
||||||
type: to.query.type,
|
type: to.query.type,
|
||||||
categoryId: to.query.categoryId,
|
categoryIds: to.query.categoryIds,
|
||||||
accountId: to.query.accountId,
|
accountIds: to.query.accountIds,
|
||||||
amountFilter: to.query.amountFilter,
|
amountFilter: to.query.amountFilter,
|
||||||
keyword: to.query.keyword
|
keyword: to.query.keyword
|
||||||
});
|
});
|
||||||
@@ -769,8 +769,8 @@ export default {
|
|||||||
maxTime: dateRange ? dateRange.maxTime : undefined,
|
maxTime: dateRange ? dateRange.maxTime : undefined,
|
||||||
minTime: dateRange ? dateRange.minTime : undefined,
|
minTime: dateRange ? dateRange.minTime : undefined,
|
||||||
type: parseInt(query.type) > 0 ? parseInt(query.type) : undefined,
|
type: parseInt(query.type) > 0 ? parseInt(query.type) : undefined,
|
||||||
categoryId: query.categoryId,
|
categoryId: query.categoryIds,
|
||||||
accountId: query.accountId,
|
accountId: query.accountIds,
|
||||||
amountFilter: query.amountFilter || '',
|
amountFilter: query.amountFilter || '',
|
||||||
keyword: query.keyword || ''
|
keyword: query.keyword || ''
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user