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" });