사업 등록 수정
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user