빌드 오류 해결.
iipbs_wr / build (push) Waiting to run

This commit is contained in:
truthwing
2025-07-14 15:59:23 +09:00
parent 9b000fa376
commit ec3077b41c
6 changed files with 20 additions and 97 deletions
-74
View File
@@ -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>(
String(new Date().getFullYear())
);
return (
<>
<ContentsDiv>
<div className="grid grid-cols-4 gap-4">
<div className="col-span-4">
<Title title={"재이용 통계"} />
<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>
</>
)
}
+1 -1
View File
@@ -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,
@@ -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;
};
@@ -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}`;
@@ -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>
@@ -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} />