diff --git a/apps/wr/app/stats/matStat/page.tsx b/apps/wr/app/stats/matStat/page.tsx deleted file mode 100644 index bf3ad2b06..000000000 --- a/apps/wr/app/stats/matStat/page.tsx +++ /dev/null @@ -1,74 +0,0 @@ -'use client' -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 { useState } from "react"; - -export default function MatStat() { - const { matStat } = useWrStore((state) => { - return state; - }); - // const [pageNation, setPageNation] = useState(1); - const [searchYear, setSearchYear] = useState( - String(new Date().getFullYear()) - ); - - return ( - <> - -
-
- - <SearchDiv> - <SearchFormLeft> - <SelectBox - className="w-full h-full text-2xl" - label="통계년도" - selectClass={""} - selectArray={yearOptions} - value={searchYear} - onSelectValue={(val: string | number) => - setSearchYear(String(val)) - } - /> - <div className="flex flex-row space-x-2 items-center"> - <Button className="" size={"sm"} onClick={() => { }}> - 조회 - </Button> - <Button className="" size={"sm"} onClick={() => { }}> - 다운로드 - </Button> - <Button className="" size={"sm"} onClick={() => { }}> - 전체통계다운로드 - </Button> - </div> - </SearchFormLeft> - {/* <SearchFormRight> - - </SearchFormRight> */} - </SearchDiv> - </div> - </div> - <div className="grid grid-cols-6 gap-4"> - <div className="col-span-6 h-full min-h-0"> - <ListDiv className="min-h-0"> - {/* <ScrollArea className="h-[60vh]"> */} - <UiTable - tableData={[]} - headlist={matStat.matStatHeadList} - pageSize={20} - total={10000} - headName={"건축물 목록"} - cellClick={() => { }} - onPageChange={() => { }} - ></UiTable> - {/* </ScrollArea> */} - </ListDiv> - </div> - </div> - </ContentsDiv> - </> - ) -} \ No newline at end of file diff --git a/apps/wr/app/store/matDmd/drgtSttn/index.tsx b/apps/wr/app/store/matDmd/drgtSttn/index.tsx index f6742ec15..ba71f8a7d 100644 --- a/apps/wr/app/store/matDmd/drgtSttn/index.tsx +++ b/apps/wr/app/store/matDmd/drgtSttn/index.tsx @@ -134,7 +134,7 @@ export const drgtActionsExport: (set: any) => drgtActions = ( console.log(e) } }, - drgtModalSearch: async (fromDate: string, toDate: string, sgg: string) => { + drgtModalSearch: async (fromDate: string, toDate: string, sgg?: string) => { try { const drgtMoData = await getFetch( fetchType.WR, diff --git a/apps/wr/app/store/prfmncReg/chkgdnReg/rainChkgdn/excel.tsx b/apps/wr/app/store/prfmncReg/chkgdnReg/rainChkgdn/excel.tsx index 4fa6970b4..39e879fd7 100644 --- a/apps/wr/app/store/prfmncReg/chkgdnReg/rainChkgdn/excel.tsx +++ b/apps/wr/app/store/prfmncReg/chkgdnReg/rainChkgdn/excel.tsx @@ -1,6 +1,6 @@ +import { TEST_UUID } from "@/app/store/ruseFcltMng/fcltReg/rainReg"; import type { SelectDataType } from "@common/business_components"; import type { rainChkZodType } from "."; -import { TEST_UUID } from "@/app/store/ruseFcltMng/fcltReg/rainReg"; export const useTypes = [ "조경용수", "청소화장실용수", @@ -193,7 +193,7 @@ export const excelToRainChkData = (excelData: any, year: string) => { // return { rainChkgdData, errors: [] }; - return rainChkgdData; + // return rainChkgdData; }; diff --git a/apps/wr/components/ui/modal/chkgd/chkgdExcel/chkgdExcel.tsx b/apps/wr/components/ui/modal/chkgd/chkgdExcel/chkgdExcel.tsx index 71d9dea00..db1797352 100644 --- a/apps/wr/components/ui/modal/chkgd/chkgdExcel/chkgdExcel.tsx +++ b/apps/wr/components/ui/modal/chkgd/chkgdExcel/chkgdExcel.tsx @@ -97,10 +97,7 @@ export default function ChkgdExcel({ type,setIsRegExcel ,setYearChange }: { type res[0], form.getValues("chckYr") ); - const polutionData = excelToRswtPolution( - res[1], - form.getValues("chckYr") - ); + const polutionData = excelToRswtPolution(res[1]); const keyGenerator = (item: rswtChkZodType) => `${item.bdstRuseFcltFk}|${item.chckYmd}|${item.utztnUsgCd}`; diff --git a/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx b/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx index c087096f3..d1de75ba1 100644 --- a/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx +++ b/apps/wr/components/ui/modal/fcltReg/bdstRegModal/bdstRegModal.tsx @@ -1,9 +1,15 @@ "use client"; import { useWrStore } from "@/app/store"; +import type { customHtdflBdst } from "@/app/store/ruseFcltMng/fcltReg/htdflReg"; import { selectClass, type customRainBdst, } from "@/app/store/ruseFcltMng/fcltReg/rainReg"; +import type { customRswtBdst } from "@/app/store/ruseFcltMng/fcltReg/rswtReg"; +import { tableData } from "@/components/lib/func/commom"; +import HtdflRegForm from "@/components/ui/form/fcltReg/htdflReg/htdflRegForm"; +import RainRegForm from "@/components/ui/form/fcltReg/rainReg/rainRegForm"; +import RswtrRegForm from "@/components/ui/form/fcltReg/rswtrReg/rswtrRegForm"; import { ScrollArea, SelectBox, @@ -12,12 +18,6 @@ import { } from "@common/business_components"; import { Button, Input, Label } from "@common/components"; import { useEffect, useState } from "react"; -import { tableData } from "@/components/lib/func/commom"; -import type { customRswtBdst } from "@/app/store/ruseFcltMng/fcltReg/rswtReg"; -import type { customHtdflBdst } from "@/app/store/ruseFcltMng/fcltReg/htdflReg"; -import RainRegForm from "@/components/ui/form/fcltReg/rainReg/rainRegForm"; -import RswtrRegForm from "@/components/ui/form/fcltReg/rswtrReg/rswtrRegForm"; -import HtdflRegForm from "@/components/ui/form/fcltReg/htdflReg/htdflRegForm"; export type objSearchType = { sgg: string | number; @@ -189,8 +189,8 @@ export function BdstReg<T extends MoType>({ headName={undefined} cellClick={(idx, headId) => tableClick(idx, headId || "")} onPageChange={function (page: number): void { - throw new Error("Function not implemented."); console.log("page ", page); + throw new Error("Function not implemented."); }} ></UiTable> </div> diff --git a/apps/wr/components/ui/modal/sttn/sttnDetailModal/sttnDetailModal.tsx b/apps/wr/components/ui/modal/sttn/sttnDetailModal/sttnDetailModal.tsx index a45f69cc2..cfaf78c67 100644 --- a/apps/wr/components/ui/modal/sttn/sttnDetailModal/sttnDetailModal.tsx +++ b/apps/wr/components/ui/modal/sttn/sttnDetailModal/sttnDetailModal.tsx @@ -1,16 +1,16 @@ "use client"; -import { ScrollArea, Title, UiTable } from "@common/business_components/ui"; -import RainRegForm from "../../../form/fcltReg/rainReg/rainRegForm"; -import RswtrRegForm from "../../../form/fcltReg/rswtrReg/rswtrRegForm"; -import HtdflRegForm from "../../../form/fcltReg/htdflReg/htdflRegForm"; +import { useWrStore } from "@/app/store"; +import type { CommonTableProps } from "@/app/store/common/type/header"; +import type { customHtdflBdst } from "@/app/store/ruseFcltMng/fcltReg/htdflReg"; import type { customRainBdst } from "@/app/store/ruseFcltMng/fcltReg/rainReg"; import type { customRswtBdst } from "@/app/store/ruseFcltMng/fcltReg/rswtReg"; -import type { customHtdflBdst } from "@/app/store/ruseFcltMng/fcltReg/htdflReg"; -import { useWrStore } from "@/app/store"; -import { useEffect, useState } from "react"; -import type { CommonTableProps } from "@/app/store/common/type/header"; import { rainChkTableData } from "@/components/lib/func/TableData"; +import { ScrollArea, Title, UiTable } from "@common/business_components/ui"; import { HeadMakeColSpan } from "@common/business_components/ui/table/HeadMakeColSpan"; +import { useEffect, useState } from "react"; +import HtdflRegForm from "../../../form/fcltReg/htdflReg/htdflRegForm"; +import RainRegForm from "../../../form/fcltReg/rainReg/rainRegForm"; +import RswtrRegForm from "../../../form/fcltReg/rswtrReg/rswtrRegForm"; export default function SttnDetailModal({ type, @@ -107,8 +107,8 @@ export default function SttnDetailModal({ total={0} cellClick={undefined} onPageChange={function (page: number): void { - throw new Error("Function not implemented."); console.log('page ', page) + throw new Error("Function not implemented."); }} > <HeadMakeColSpan upHeadList={detailData.node} />