전체코드갑 넣기

This commit is contained in:
leedj312
2025-04-02 18:15:36 +09:00
parent b1833d4aa5
commit 0528abb25b
3 changed files with 7 additions and 8 deletions
@@ -127,8 +127,7 @@ export default function Home() {
<div className="grid grid-cols-6 gap-4 ">
<div className="col-span-4 max-h-full ovreflow-y-scroll">
<ListDiv>
<ScrollArea>
<UiTable
<UiTable
tableData={bdstTable || []}
headlist={rain.upHeadList}
pageSize={100}
@@ -138,7 +137,6 @@ export default function Home() {
>
{nodeList}
</UiTable>
</ScrollArea>
</ListDiv>
</div>
<div className="col-span-2 max-h-full ovreflow-y-scroll">
+1
View File
@@ -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,
@@ -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}
>
{" "}
{""}
</SelectBox>
<SelectBox
className="col-span-3"