From c5503681f03aaf2118c522755295d8a4ac010d1b Mon Sep 17 00:00:00 2001 From: YangJinSoo94 Date: Wed, 18 Jun 2025 14:32:52 +0900 Subject: [PATCH] =?UTF-8?q?return=20res=20=EC=B6=94=EA=B0=80,=20type?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/store/stats/rainStat/headList.tsx | 70 +++++++++++++++++++ apps/wr/app/store/stats/rainStat/index.tsx | 4 +- 2 files changed, 72 insertions(+), 2 deletions(-) diff --git a/apps/wr/app/store/stats/rainStat/headList.tsx b/apps/wr/app/store/stats/rainStat/headList.tsx index e1c427fdf..412b79178 100644 --- a/apps/wr/app/store/stats/rainStat/headList.tsx +++ b/apps/wr/app/store/stats/rainStat/headList.tsx @@ -73,3 +73,73 @@ export const rainStatHeadListExport: TableUpperProps[] = [ rowSpan:2 }, ]; + +export const rainStatDetailHeadListExport: TableUpperProps[] = [ + { + id: "ctpvCd", + title: "시도", + row:0, + }, + { + id: "sggCd", + title: "시군구", + row:0, + }, + { + id: "areaNm", + title: "행정구역명", + row:0, + }, + { + id: "", + title: "시설명", + row:0, + }, + { + id: "이용용도", + title: "이용용도", + row:0, + colSpan:7 + }, + { + id: "조경용수", + title: "조경용수", + row:1, + }, + { + id: "청소화장실용수", + title: "청소화장실용수", + row:1, + }, + { + id:"세척살수용수", + title:"세척살수용수", + row:1, + }, + { + id: "농업용수", + title: "농업용수", + row:1, + }, + { + id: "공업용수", + title: "공업용수", + row:1, + }, + { + id: "친수용수", + title: "친수용수", + row:1, + }, + { + id: "기타", + title: "기타", + row:1, + }, + { + id: "연간운영비", + title: "연간운영비(백만원/년)", + row:0, + rowSpan:2 + }, +]; \ No newline at end of file diff --git a/apps/wr/app/store/stats/rainStat/index.tsx b/apps/wr/app/store/stats/rainStat/index.tsx index 2a1a5bc5a..a2c9f45a7 100644 --- a/apps/wr/app/store/stats/rainStat/index.tsx +++ b/apps/wr/app/store/stats/rainStat/index.tsx @@ -6,6 +6,7 @@ export type RainStatProps = { ctpvCd : string //시도 sggCd : string //시군구 areaNm : string //행정구역명 + bdstNm : string //시설명 instlCst : number //설치비용 archArea : number //건축연면적 dtfcltCpct : number //처리용량(저류조용량) @@ -25,8 +26,7 @@ export type RainStatProps = { const fetchRainStatList = async (year:string) => { const res = await getFetch(fetchType.WR,`/reuseChk/rainy/stat/${year}`) - console.log(res); - return []; + return res; } type rainStatActions = {