포트 변경 3001
This commit is contained in:
@@ -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">
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user