mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
modify method name
This commit is contained in:
+2
-2
@@ -104,7 +104,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
initTransactionListFilter,
|
initTransactionListFilter,
|
||||||
updateTransactionListFilter,
|
updateTransactionListFilter,
|
||||||
getTransactions,
|
loadTransactions,
|
||||||
getTransaction,
|
getTransaction,
|
||||||
saveTransaction,
|
saveTransaction,
|
||||||
deleteTransaction,
|
deleteTransaction,
|
||||||
@@ -771,7 +771,7 @@ const stores = {
|
|||||||
// transaction
|
// transaction
|
||||||
initTransactionListFilter,
|
initTransactionListFilter,
|
||||||
updateTransactionListFilter,
|
updateTransactionListFilter,
|
||||||
getTransactions,
|
loadTransactions,
|
||||||
getTransaction,
|
getTransaction,
|
||||||
saveTransaction,
|
saveTransaction,
|
||||||
deleteTransaction,
|
deleteTransaction,
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export function updateTransactionListFilter(context, filter) {
|
|||||||
context.commit(UPDATE_TRANSACTION_LIST_FILTER, filter);
|
context.commit(UPDATE_TRANSACTION_LIST_FILTER, filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getTransactions(context, { reload, autoExpand, defaultCurrency }) {
|
export function loadTransactions(context, { reload, autoExpand, defaultCurrency }) {
|
||||||
let actualMaxTime = context.state.transactionsNextTimeId;
|
let actualMaxTime = context.state.transactionsNextTimeId;
|
||||||
|
|
||||||
if (reload && context.state.transactionsFilter.maxTime > 0) {
|
if (reload && context.state.transactionsFilter.maxTime > 0) {
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ export default {
|
|||||||
self.$store.dispatch('loadAllAccounts', { force: false }),
|
self.$store.dispatch('loadAllAccounts', { force: false }),
|
||||||
self.$store.dispatch('loadAllCategories', { force: false })
|
self.$store.dispatch('loadAllCategories', { force: false })
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
return self.$store.dispatch('getTransactions', {
|
return self.$store.dispatch('loadTransactions', {
|
||||||
reload: true,
|
reload: true,
|
||||||
autoExpand: true,
|
autoExpand: true,
|
||||||
defaultCurrency: self.defaultCurrency
|
defaultCurrency: self.defaultCurrency
|
||||||
@@ -493,7 +493,7 @@ export default {
|
|||||||
|
|
||||||
self.loadingMore = true;
|
self.loadingMore = true;
|
||||||
|
|
||||||
self.$store.dispatch('getTransactions', {
|
self.$store.dispatch('loadTransactions', {
|
||||||
reload: false,
|
reload: false,
|
||||||
autoExpand: autoExpand,
|
autoExpand: autoExpand,
|
||||||
defaultCurrency: self.defaultCurrency
|
defaultCurrency: self.defaultCurrency
|
||||||
|
|||||||
Reference in New Issue
Block a user