From 5cb0719297bb84a4762095513ed55e9e9a001ce9 Mon Sep 17 00:00:00 2001 From: dongsilove Date: Sat, 4 Apr 2026 20:30:45 +0900 Subject: [PATCH] =?UTF-8?q?wr:=20store=20toast=20=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../matMng/coMat/ruseRvwHstry/page.tsx | 3 +- .../ruseFcltMng/fcltReg/pbnstReg/page.tsx | 5 +- .../ruseFcltMng/prfmncReg/chkgdnReg/page.tsx | 16 +++-- .../app/store/matDmd/ruseRvwHstry/index.tsx | 23 ++++--- .../prfmncReg/chkgdnReg/rainChkgdn/excel.tsx | 18 +++-- .../prfmncReg/chkgdnReg/rainChkgdn/index.tsx | 66 +++++++++---------- .../prfmncReg/chkgdnReg/rswrtChkgdn/index.tsx | 59 ++++++++++------- .../ruseFcltMng/fcltReg/htdflReg/index.tsx | 36 +++++----- .../ruseFcltMng/fcltReg/pbnstReg/index.tsx | 18 ++--- .../ruseFcltMng/fcltReg/rainReg/index.tsx | 50 +++++++------- .../ruseFcltMng/fcltReg/rswtReg/index.tsx | 50 +++++++------- .../ui/form/coMat/conCostForm/conCostForm.tsx | 3 +- .../ui/form/fcltReg/htdflReg/htdflRegForm.tsx | 16 +++-- .../ui/form/fcltReg/rainReg/rainRegForm.tsx | 16 +++-- .../ui/form/fcltReg/rswtrReg/rswtrRegForm.tsx | 16 +++-- .../ui/modal/chkgd/chkgdExcel/chkgdExcel.tsx | 22 ++++--- .../ui/modal/chkgd/chkgdModal/chkgdModal.tsx | 10 ++- 17 files changed, 246 insertions(+), 181 deletions(-) diff --git a/apps/wr/app/(with-layout)/matMng/coMat/ruseRvwHstry/page.tsx b/apps/wr/app/(with-layout)/matMng/coMat/ruseRvwHstry/page.tsx index a8800273b..b142bff16 100644 --- a/apps/wr/app/(with-layout)/matMng/coMat/ruseRvwHstry/page.tsx +++ b/apps/wr/app/(with-layout)/matMng/coMat/ruseRvwHstry/page.tsx @@ -157,7 +157,8 @@ export default function RuseRvwHstry() { if (completeData && completeData?.length > 0) { if (await confirm(t("isMatchFinishMsg"))) { - await ruseRvwComplete(completeData as number[]); + const message = await ruseRvwComplete(completeData as number[]); + alert(message); } // const handleConfirm = async () => { diff --git a/apps/wr/app/(with-layout)/ruseFcltMng/fcltReg/pbnstReg/page.tsx b/apps/wr/app/(with-layout)/ruseFcltMng/fcltReg/pbnstReg/page.tsx index 102414c37..0a243a41f 100644 --- a/apps/wr/app/(with-layout)/ruseFcltMng/fcltReg/pbnstReg/page.tsx +++ b/apps/wr/app/(with-layout)/ruseFcltMng/fcltReg/pbnstReg/page.tsx @@ -450,7 +450,10 @@ export default function PublicReuseFaciltyInsert() { form={form} // form prop 전달 setPbnstInsert={(data) => { if (data) { - pbnstInsert(data); // pbnstInsert 함수 호출 + void (async () => { + const message = await pbnstInsert(data); + alert(message); + })(); setIsRuseReg({ isModal: false }); } }} diff --git a/apps/wr/app/(with-layout)/ruseFcltMng/prfmncReg/chkgdnReg/page.tsx b/apps/wr/app/(with-layout)/ruseFcltMng/prfmncReg/chkgdnReg/page.tsx index 8e7ff98cb..363f07e82 100644 --- a/apps/wr/app/(with-layout)/ruseFcltMng/prfmncReg/chkgdnReg/page.tsx +++ b/apps/wr/app/(with-layout)/ruseFcltMng/prfmncReg/chkgdnReg/page.tsx @@ -242,14 +242,16 @@ export default function Page() { if (data.length > 0) { if (selFcltDiv === "RNB") { const handleConfirm = async () => { - rainChkDelete(data, searchYear); + const message = await rainChkDelete(data, searchYear); + alert(message); }; if (await confirm(t("isDeleteMsg"))) { await handleConfirm(); } } else { const handleConfirm = async () => { - rswtChkDelete(data, searchYear); + const message = await rswtChkDelete(data, searchYear); + alert(message); }; if (await confirm(t("isDeleteMsg"))) { await handleConfirm(); @@ -257,16 +259,18 @@ export default function Page() { } } }; - const chkUpdateTable = (selFcltDiv: string) => { + const chkUpdateTable = async (selFcltDiv: string) => { if (selFcltDiv === "RNB") { if (updateRainDetail && updateRainDetail.length > 0) { - rainChkDetilUpdate(updateRainDetail, searchYear); + const message = await rainChkDetilUpdate(updateRainDetail, searchYear); + alert(message); } else { alert("수정을 원하는 행을 선택하고 저장버튼을 눌러주세요 "); } } else { if (updateRswtDetail && updateRswtDetail.length > 0) { - rswtChkDetilsUpdate(updateRswtDetail, searchYear); + const message = await rswtChkDetilsUpdate(updateRswtDetail, searchYear); + alert(message); } else { alert("수정을 원하는 행을 선택하고 저장버튼을 눌러주세요 "); } @@ -349,7 +353,7 @@ export default function Page() {