From 483cf755ed8a6e15300f90b0c2ec0ff7cd0d6856 Mon Sep 17 00:00:00 2001 From: ByungCheol Date: Mon, 1 Jun 2026 22:54:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=98=88=EC=82=B0=20=EC=98=88=EC=83=81?= =?UTF-8?q?=EC=88=98=EC=9E=85=20=EC=9B=94=EB=B3=84=20+=20=EA=B3=84?= =?UTF-8?q?=EC=A2=8C=20=EA=B4=80=EB=A6=AC=20=EB=93=9C=EB=9E=98=EA=B7=B8?= =?UTF-8?q?=EC=95=A4=EB=93=9C=EB=9E=8D=20=EC=A0=95=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 예산: 예상 수입을 해당 월별로 조회/저장(월 이동 시 갱신) - 계좌 관리: SortableJS 드래그 정렬(터치 지원), 타입별 순서 저장 Co-Authored-By: Claude Opus 4.8 --- src/api/accountApi.js | 11 ++-- src/views/account/AccountWalletView.vue | 67 ++++++++++++++++++++++--- src/views/account/BudgetView.vue | 7 ++- 3 files changed, 73 insertions(+), 12 deletions(-) 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 @@