From 0528abb25b066d116863d145d7124435125b0dec Mon Sep 17 00:00:00 2001 From: leedj312 Date: Wed, 2 Apr 2025 18:15:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=84=EC=B2=B4=EC=BD=94=EB=93=9C=EA=B0=91?= =?UTF-8?q?=20=EB=84=A3=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/ruseFcltMng/fcltReg/rainReg/page.tsx | 4 +--- apps/wr/app/store/common/code/index.ts | 1 + apps/wr/components/ui/modal/bdstReg/component.tsx | 10 +++++----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/wr/app/ruseFcltMng/fcltReg/rainReg/page.tsx b/apps/wr/app/ruseFcltMng/fcltReg/rainReg/page.tsx index d1d539506..225f37ba5 100644 --- a/apps/wr/app/ruseFcltMng/fcltReg/rainReg/page.tsx +++ b/apps/wr/app/ruseFcltMng/fcltReg/rainReg/page.tsx @@ -127,8 +127,7 @@ export default function Home() {
- - {nodeList} -
diff --git a/apps/wr/app/store/common/code/index.ts b/apps/wr/app/store/common/code/index.ts index 99a278f63..7125f5b71 100644 --- a/apps/wr/app/store/common/code/index.ts +++ b/apps/wr/app/store/common/code/index.ts @@ -128,6 +128,7 @@ export const getCityCd = async (set: any) => { val: item.mctpvCd, text: item.mctpvKornNm, })); + cityCd.unshift({val:0,text:'전체'}) set((state: comCodeState) => ({ code: { ...state.code, diff --git a/apps/wr/components/ui/modal/bdstReg/component.tsx b/apps/wr/components/ui/modal/bdstReg/component.tsx index 0d842700f..541b7e53d 100644 --- a/apps/wr/components/ui/modal/bdstReg/component.tsx +++ b/apps/wr/components/ui/modal/bdstReg/component.tsx @@ -45,11 +45,11 @@ export function BdstReg({moType}:{moType:string} ) { }; const searchBdst=(searchTxt: string | undefined)=>{ - if(objSearch.city===""){ - alert('시도조건은 필수 입니다.') - return + let data =objSearch.city; + if(objSearch.city==="" ){ + + data = String(code.cityCd[0]?.val) } - let data =objSearch.city; if(objSearch.sgg !=="" ){ data = objSearch.sgg } @@ -94,7 +94,7 @@ export function BdstReg({moType}:{moType:string} ) { selectArray={code.cityCd} onSelectValue={getSelCity} > - {" "} + {""}