From 35b1c8cd705e4aec65b0462002b2a8aace897d29 Mon Sep 17 00:00:00 2001 From: lilyyang0077 Date: Thu, 18 Jun 2026 19:07:54 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=EC=9E=90=EB=8F=99=20=EB=B3=B4?= =?UTF-8?q?=EC=A6=9D=EA=B8=88=20=EC=9E=AC=EB=A1=9C=EB=94=A9=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/pirocheck/students/StudentDetail.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/src/pages/pirocheck/students/StudentDetail.js b/frontend/src/pages/pirocheck/students/StudentDetail.js index 13afcff..b74d597 100644 --- a/frontend/src/pages/pirocheck/students/StudentDetail.js +++ b/frontend/src/pages/pirocheck/students/StudentDetail.js @@ -120,6 +120,19 @@ function StudentDetail() { const [data, setData] = useState(null); const [defence, setDefence] = useState(''); + // 보증금 정보 새로고침 함수 + const refreshDeposit = async () => { + const depositRes = await authFetch(`/api/deposit/${userId}/deposit/view`); + const depositData = await depositRes.json(); + + setDefence(depositData.ascentDefence.toString()); + + setData(prev => ({ + ...prev, + deposit: depositData, + })); + }; + useEffect(() => { const fetchData = async () => { @@ -166,6 +179,9 @@ function StudentDetail() { method: 'PATCH', body: JSON.stringify({ ascentDefence: Number(defence) }), }); + + await refreshDeposit(); + alert('저장됐습니다!'); }; @@ -214,6 +230,7 @@ function StudentDetail() { submitted: a.submitted, })), }; + return authFetch(`/api/admin/users/${userId}/weeks/${w.week}`, { method: 'PATCH', body: JSON.stringify(body), @@ -222,6 +239,9 @@ function StudentDetail() { ) ) ); + + await refreshDeposit(); + alert('저장됐습니다!'); }; From c85bce305bb67307330b25fbfad0a732eb977626 Mon Sep 17 00:00:00 2001 From: lilyyang0077 Date: Thu, 18 Jun 2026 19:09:19 +0900 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=EC=9A=94=EC=9D=BC=EB=B3=84=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EB=B2=84=ED=8A=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/pirocheck/students/StudentDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/pirocheck/students/StudentDetail.js b/frontend/src/pages/pirocheck/students/StudentDetail.js index b74d597..ac275f8 100644 --- a/frontend/src/pages/pirocheck/students/StudentDetail.js +++ b/frontend/src/pages/pirocheck/students/StudentDetail.js @@ -99,7 +99,7 @@ function WeekBlock({ weekData, onChange }) { )} - + {/* */} )} From 0c6b3947164be3bfb73a80137b2ba0d015ecaa78 Mon Sep 17 00:00:00 2001 From: lilyyang0077 Date: Thu, 18 Jun 2026 19:15:39 +0900 Subject: [PATCH 3/3] =?UTF-8?q?style:=20=EC=B6=9C=EC=84=9D=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=EB=9D=BC=EB=B2=A8=20=ED=91=9C=EC=8B=9C=20=ED=98=95?= =?UTF-8?q?=EC=8B=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/pirocheck/students/StudentDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/pirocheck/students/StudentDetail.js b/frontend/src/pages/pirocheck/students/StudentDetail.js index ac275f8..c6b2685 100644 --- a/frontend/src/pages/pirocheck/students/StudentDetail.js +++ b/frontend/src/pages/pirocheck/students/StudentDetail.js @@ -62,7 +62,7 @@ function WeekBlock({ weekData, onChange }) {
{day.attendances.map((att, j) => (
- {att.attendanceOrder} + {att.attendanceOrder}차