map을 제외한 빌딩 오류 해결.
iipbs_wr / build (push) Waiting to run

This commit is contained in:
truthwing
2025-07-14 15:13:39 +09:00
parent dc264024d2
commit 2ad4bd208b
6 changed files with 16 additions and 27 deletions
@@ -100,7 +100,7 @@ export default function LdrmntCoSttn() {
isModal: boolean;
}>({ isModal: false });
const cellClick = (index: number | undefined, headId: string) => {
const cellClick = (index: number | undefined) => {
if (index !== undefined) {
setDetailModal({ isOpen: true, data: ldrmntRes[index] });
}
@@ -206,7 +206,7 @@ export default function LdrmntCoSttn() {
<div className="flex flex-row space-x-2 items-center">
<Button
size={"sm"}
onClick={(e) => {
onClick={() => {
ldrmntSearch(false, pageNation, '20', computeCityNm(), searchTxt || "");
isResetPage(true)
}}
@@ -251,7 +251,7 @@ export default function LdrmntCoSttn() {
headlist={ldrmntHeadListExport}
pageSize={20}
total={ldrmntResCount || 0}
cellClick={(index: number | undefined, headId: string) => { cellClick(index ?? undefined, headId) }}
cellClick={(index: number | undefined) => { cellClick(index ?? undefined) }}
onPageChange={setPageNation}
resetPageNo={resetPage}
/>
@@ -200,7 +200,7 @@ export const rswtChkgdnActionsExport: (set: any) => rswtChkgdnActions = (
},
}));
} catch (error) {
// console.log(error);
console.error(error);
// set((state: rswtChkgdnType) => ({
// rswtChkgdn: { ...state.rswtChkgdn, isInit: true },
// }));
@@ -311,6 +311,7 @@ export const rswtChkgdnActionsExport: (set: any) => rswtChkgdnActions = (
}));
} catch (error) {
toast.error("삭제 오류입니다.")
console.error(error);
}
},
rswtChkPolAndGuide: async (chkGdnPk: number) => {
@@ -328,9 +329,7 @@ export const rswtChkgdnActionsExport: (set: any) => rswtChkgdnActions = (
},
}));
} catch (error) {
console.error(error);
}
},
rswtChkPolInit: () => {
@@ -342,7 +341,9 @@ export const rswtChkgdnActionsExport: (set: any) => rswtChkgdnActions = (
rswtChkPolGuide: undefined,
},
}));
} catch (error) {}
} catch (error) {
console.error(error);
}
},
rwstPolAndGuideUpdate: async (rswtChk: rswtChkZodType[]) => {
try {
@@ -388,7 +389,9 @@ export const rswtChkgdnActionsExport: (set: any) => rswtChkgdnActions = (
rswtDetailHeadList: rswtDetailHeadList,
},
}));
} catch (e) {}
} catch (e) {
console.error(e);
}
},
};
};
@@ -1,21 +1,7 @@
import type { rainChkZodType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn";
type rainSttnExcelType = {
bdstInfoPk: number;
ctpvCd: 1;
sggCd: 1001;
daddr: "string3";
bdstNm: "string";
frstArchPrmsnDt: "2025-03-25";
archArea: 0;
regDt: "2025-04-16";
rgtr: null;
mdfcnDt: "2025-04-16";
mdfr: null;
};
export const buildingExcelRainSttn = (excelList: any[]) => {
const excelData: string[][] = [];
excelList.forEach((item, index) => {
excelList.forEach((item) => {
excelData.push([
String(item.cityText) ?? "",
String(item.sggText) ?? "",
@@ -1,7 +1,7 @@
export const buildingExcelRswtSttn = (excelList: any[]) => {
const excelData: string[][] = [];
excelList.forEach((item, index) => {
excelList.forEach((item) => {
excelData.push([
String(item.cityText) ?? "",
String(item.sggText) ?? "",
@@ -2,7 +2,7 @@ import type { TableUpperProps } from "@/app/store/common/type/header";
import type { chHeadType } from "@/app/store/prfmncReg/chkgdnReg/rainChkgdn/headList";
import type { rswtChkZodType } from "@/app/store/prfmncReg/chkgdnReg/rswrtChkgdn";
import { rswtHeadNmExport } from "@/app/store/prfmncReg/chkgdnReg/rswrtChkgdn/headList";
import { getFetch, getFetchWithCount } from "@/components/lib/api";
import { getFetchWithCount } from "@/components/lib/api";
import { buildingExcelRswtSttn } from "./excel";
import { rswtChkSttnHeadListExport, rswtDetailSttnHeadListExport } from "./headList";
@@ -173,7 +173,7 @@ export const rswtFacActionsExport: (set: any) => rswtFacSActions = (
}
} catch (errorUpdate) {
toast.error("중수도 건축물 수정 오류입니다. ");
console.error(errorUpdate);
} finally {
}
},