diff --git a/apps/wr/app/stats/matStat/page.tsx b/apps/wr/app/stats/matStat/page.tsx index a147ff597..bf3ad2b06 100644 --- a/apps/wr/app/stats/matStat/page.tsx +++ b/apps/wr/app/stats/matStat/page.tsx @@ -3,21 +3,21 @@ import { useWrStore } from "@/app/store"; import { yearOptions } from "@/components/lib/func/commom"; import { ContentsDiv, Title, SearchDiv, SearchFormLeft, SelectBox, UiTable } from "@common/business_components/ui"; import ListDiv from "@common/business_components/ui/list_div"; -import { Button } from "@common/components/ui"; +import { Button } from "@common/components/ui"; import { useState } from "react"; -export default function MatStat(){ -const { code, matStat } = useWrStore((state) => { +export default function MatStat() { + const { matStat } = useWrStore((state) => { return state; }); - const [pageNation, setPageNation] = useState(1); + // const [pageNation, setPageNation] = useState(1); const [searchYear, setSearchYear] = useState( String(new Date().getFullYear()) ); - return( - <> - + return ( + <> +
@@ -34,13 +34,13 @@ const { code, matStat } = useWrStore((state) => { } /> <div className="flex flex-row space-x-2 items-center"> - <Button className="" size={"sm"} onClick={(e) => {}}> + <Button className="" size={"sm"} onClick={() => { }}> 조회 </Button> - <Button className="" size={"sm"} onClick={(e) => {}}> + <Button className="" size={"sm"} onClick={() => { }}> 다운로드 </Button> - <Button className="" size={"sm"} onClick={(e) => {}}> + <Button className="" size={"sm"} onClick={() => { }}> 전체통계다운로드 </Button> </div> @@ -61,14 +61,14 @@ const { code, matStat } = useWrStore((state) => { pageSize={20} total={10000} headName={"건축물 목록"} - cellClick={(val, headId) => {}} - onPageChange={setPageNation} + cellClick={() => { }} + onPageChange={() => { }} ></UiTable> {/* </ScrollArea> */} </ListDiv> </div> </div> </ContentsDiv> - </> - ) + </> + ) } \ 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 d6e48a53e..c54f1542e 100644 --- a/apps/wr/app/store/stats/rainStat/index.tsx +++ b/apps/wr/app/store/stats/rainStat/index.tsx @@ -4,6 +4,7 @@ import { excelRainStat } from "./excel"; import { rainStatHeadListExport } from "./headList"; export type RainStatProps = { + cityText: string ctpvCd: string //시도 sggCd: string //시군구 areaNm: string //행정구역명 diff --git a/apps/wr/app/store/stats/rswtStat/index.tsx b/apps/wr/app/store/stats/rswtStat/index.tsx index 4e2a7ecc8..af106c3b3 100644 --- a/apps/wr/app/store/stats/rswtStat/index.tsx +++ b/apps/wr/app/store/stats/rswtStat/index.tsx @@ -4,6 +4,7 @@ import { rswtStatHeadListExport } from "./headList"; import { excelRswtStat } from "./excel"; export type RswtStatProps = { + cityText: string //시도명 ctpvCd: string //시도 sggCd : string //시군구 areaNm: string //행정구역명 @@ -72,7 +73,6 @@ export const rswtStatActionsExport: (set: any) => rswtStatActions = ( return { searchRswtStatList: async (year: string) => { const res = await getFetch(fetchType.WR, `/reuseChk/reuseWater/stat/${year}`) - const rswtStatList: RswtStatProps[] = []; const cityArr: any[] = []; res.forEach((item: RswtStatProps) => {