사업 등록 수정

This commit is contained in:
leedj312
2025-05-26 16:19:00 +09:00
parent 2b18aa2c4b
commit eab7893c4f
2 changed files with 3 additions and 8 deletions
@@ -28,7 +28,7 @@ export default function PublicReuseFaciltyInsert() {
const [searchTxt, setSearchTxt] = useState<string>();
const [bdstTable, setbdstTable] = useState<customPbnst[]>();
const [selectBdst, setSelectBdst] = useState<customPbnst>();
const [selectBdst, setSelectBdst] = useState<customPbnst | null>(null);
useEffect(() => {
if (!pbnst.isInit ) {
@@ -47,18 +47,13 @@ useEffect(() => {
}
}, [code, pbnstHasuRes]);
useEffect(() => {
console.log("/pbnstRes ", pbnstRes)
}, [pbnstRes]);
const onSelectValue = (val: string) => {
console.log(val);
};
const cellClick = (val: number | undefined) => {
if (val === undefined) return;
console.log("pbnstRes", pbnstRes);
setSelectBdst(pbnstRes);
setPbnstBiz(pbnstRes?.fcBizs)
};
const resetContents = () => {
setFcltMng([]); // 빈 배열로 설정하여 신규 모드로 전환
@@ -35,7 +35,7 @@ export default function RuseMngTable({
) : (
<TableRow key={"table-row-test"}>
{headList.map((head) => (
<TableHead className={`border border-gray-600 px-2 py-1 `}>
<TableHead key={"table-head-row " + head.id} className={`border border-gray-600 px-2 py-1 `}>
{head.title}
</TableHead>
))}