포트 변경 3001

This commit is contained in:
leedj312
2025-03-27 11:25:39 +09:00
parent 94a05453f8
commit 44b836f3a2
2 changed files with 12 additions and 11 deletions
@@ -34,14 +34,16 @@ export default function PublicReuseFaciltyInsert() {
const onSelectValue = (val: string) => {
console.log(val);
};
const cellClick=(val:number)=>{
let data
if(publicReuseFacilityData[val]) {
data =ruseFclt.filter((item)=> item.swtrmtFcltFk===publicReuseFacilityData[val]?.swtrmtFcltFk)
setFcltMng(data);
}
}
const cellClick = (val: number | undefined) => {
if (val === undefined) return;
let data;
if (publicReuseFacilityData[val]) {
data = ruseFclt.filter(
(item) => item.swtrmtFcltFk === publicReuseFacilityData[val]?.swtrmtFcltFk
);
setFcltMng(data);
}
};
const resetContents = () => {
setFcltMng([]); // 빈 배열로 설정하여 신규 모드로 전환
};
@@ -79,8 +81,7 @@ const resetContents = () => {
pageSize={100}
total={10}
headName={headName()}
children={undefined} cellClick={cellClick
} />
children={undefined} cellClick={cellClick} />
</div>
<div className="col-span-1 pr-6 max-h-full overflow-y-scroll">
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev -p 3001",
"build": "next build",
"start": "next start",
"lint": "next lint"