diff --git a/src/api/accountApi.js b/src/api/accountApi.js index 5801779..35c872b 100644 --- a/src/api/accountApi.js +++ b/src/api/accountApi.js @@ -65,11 +65,11 @@ export const accountApi = { budgetPeriod({ unit, year, month }) { return http.get('/account/budgets/period', { params: { unit, year, month } }) }, - expectedIncome() { - return http.get('/account/budgets/income') + expectedIncome({ year, month }) { + return http.get('/account/budgets/income', { params: { year, month } }) }, - setExpectedIncome(expectedIncome) { - return http.put('/account/budgets/income', { expectedIncome }) + setExpectedIncome({ year, month, expectedIncome }) { + return http.put('/account/budgets/income', { expectedIncome }, { params: { year, month } }) }, createBudget(payload) { return http.post('/account/budgets', payload) @@ -89,6 +89,9 @@ export const accountApi = { removeWallet(id) { return http.delete(`/account/wallets/${id}`) }, + reorderWallets(type, ids) { + return http.put('/account/wallets/reorder', { type, ids }) + }, walletEntries(id) { return http.get(`/account/wallets/${id}/entries`) }, diff --git a/src/views/account/AccountWalletView.vue b/src/views/account/AccountWalletView.vue index 62121d1..2562c4d 100644 --- a/src/views/account/AccountWalletView.vue +++ b/src/views/account/AccountWalletView.vue @@ -1,6 +1,7 @@