From a91bcd9cf7c25dec5bc4582016ec1f04a91df5a3 Mon Sep 17 00:00:00 2001 From: dongsilove Date: Fri, 13 Feb 2026 20:21:06 +0900 Subject: [PATCH] =?UTF-8?q?wr:=20=EC=8B=9C=EA=B5=B0=EA=B5=AC=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/(with-layout)/matMng/coMat/coMatRvw/page.tsx | 9 +++++++-- .../(with-layout)/matMng/coMat/ruseCaseMng/page.tsx | 10 ++++++++-- .../(with-layout)/matMng/coMat/ruseRvwHstry/page.tsx | 7 ++++++- apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx | 5 ++++- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx b/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx index c3fa4f409..d48c24960 100644 --- a/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx +++ b/apps/wr/app/(with-layout)/matMng/coMat/coMatRvw/page.tsx @@ -149,9 +149,12 @@ export default function CoMatRvw() { const getSelCity = (val: string | number) => { const cityValue = String(val); // Ensure val is treated as a string - const data = getCity(cityValue, code.sggCd); + const data = + cityValue === "0" + ? [{ val: "0", text: "전체" }] + : getCity(cityValue, code.sggCd); setSelectSgg(data); - setObjSearch({ city: cityValue, sgg: "" }); + setObjSearch({ city: cityValue, sgg: "0" }); }; const getSgg = (val: string | number) => { @@ -192,6 +195,7 @@ export default function CoMatRvw() { selectClass={""} selectArray={code.cityCd || []} onSelectValue={getSelCity} + value={objSearch.city} />
diff --git a/apps/wr/app/(with-layout)/matMng/coMat/ruseCaseMng/page.tsx b/apps/wr/app/(with-layout)/matMng/coMat/ruseCaseMng/page.tsx index d7f8ec429..dfb2b11e3 100644 --- a/apps/wr/app/(with-layout)/matMng/coMat/ruseCaseMng/page.tsx +++ b/apps/wr/app/(with-layout)/matMng/coMat/ruseCaseMng/page.tsx @@ -61,9 +61,13 @@ export default function RuseCaseMng() { (item: { val: string; text: string }) => item.val === cityValue )?.text; setSidoCd(cityText || ""); - const data = getCity(cityValue, code.sggCd); + const data = + cityValue === "0" + ? [{ val: "0", text: "전체" }] + : getCity(cityValue, code.sggCd); setSelectSgg(data); - setObjSearch({ city: cityValue, sgg: "" }); + setSigunguCd(""); + setObjSearch({ city: cityValue, sgg: "0" }); }; // 시군구 선택 @@ -199,6 +203,7 @@ export default function RuseCaseMng() { selectClass={""} selectArray={code.cityCd || []} onSelectValue={getSelCity} + value={objSearch.city} /> { const cityValue = String(val); // Ensure val is treated as a string - const data = getCity(cityValue, code.sggCd); + const data = + cityValue === "0" + ? [{ val: "0", text: "전체" }] + : getCity(cityValue, code.sggCd); setSelectSgg(data); setObjSearch({ city: cityValue, sgg: "0" }); }; @@ -240,6 +243,7 @@ export default function RuseRvwHstry() { selectClass={""} selectArray={code.cityCd || []} onSelectValue={getSelCity} + value={objSearch.city} > {""} @@ -249,6 +253,7 @@ export default function RuseRvwHstry() { selectClass={""} selectArray={selectSgg || []} onSelectValue={getSgg} + value={objSearch.sgg} > {""} diff --git a/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx b/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx index 629654126..fc4deea13 100644 --- a/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx +++ b/apps/wr/app/(with-layout)/matMng/coMng/coSttn/page.tsx @@ -69,7 +69,10 @@ export default function CoSttn() { const getSelCity = useCallback( (val: string | number) => { const cityValue = String(val); - const data = getCity(cityValue, code.sggCd); + const data = + cityValue === "0" + ? [{ val: "0", text: "전체" }] + : getCity(cityValue, code.sggCd); setSelectSgg(data); // 시/도를 변경하면 시/군/구는 '전체'("0")로 초기화합니다. setObjSearch({ city: cityValue, sgg: "0" });