diff --git a/apps/st/src/components/module/CompactDataGrid.tsx b/apps/st/src/components/module/CompactDataGrid.tsx index 36a17b225..4378182cf 100644 --- a/apps/st/src/components/module/CompactDataGrid.tsx +++ b/apps/st/src/components/module/CompactDataGrid.tsx @@ -67,7 +67,7 @@ const CompactDataGrid = ({ fixedColumns, showHeaderCheckbox = false, rowData, - setRowData, + // setRowData, getGridDataRef, cellStyleCallback, onRowClick, diff --git a/apps/st/src/components/statistics/input/SewagePipeInp.tsx b/apps/st/src/components/statistics/input/SewagePipeInp.tsx index 20bed7f23..bdd404b0e 100644 --- a/apps/st/src/components/statistics/input/SewagePipeInp.tsx +++ b/apps/st/src/components/statistics/input/SewagePipeInp.tsx @@ -17,9 +17,9 @@ import { useAdminStore } from "@/store/admin-store"; const SewagePipeInp = () => { const [rowDataMap, setRowDataMap] = useState[]>>(new Map()); const { setMessage: alert } = useAlertStore((state) => state); - const [isLoading, setIsLoading] = useState(false); + const [_isLoading, setIsLoading] = useState(false); const [activeTab, setActiveTab] = useState(SewagePipeInpColumnInfoList[0]?.tabKey ?? "ST00020001"); - const [isEnterable, setIsEnterable] = useState(true); + const [isEnterable, _setIsEnterable] = useState(true); const { isAdminInfo } = useAdminStore(); const columnInfo = useMemo(() => { @@ -46,42 +46,42 @@ const SewagePipeInp = () => { }); }, [isEnterable, isAdminInfo]); - const handleSearch = async (values: SearchFormValues) => { - if (!values.sido || values.sido === 'ALL') { - alert('시도를 선택해주세요.'); - return; - } + // const handleSearch = async (values: SearchFormValues) => { + // if (!values.sido || values.sido === 'ALL') { + // alert('시도를 선택해주세요.'); + // return; + // } - setActiveTab('ST00020001'); + // setActiveTab('ST00020001'); - setRowDataMap(new Map()); + // setRowDataMap(new Map()); - try { - setIsLoading(true); + // try { + // setIsLoading(true); - // const searchParam: SewagePipeReviewRequestParams = { - // statsYr: values.year, - // sewerBzmnCd: values.bsnmCd, - // ctpvNm: values.sido, - // sggNm: values.gugun === 'ALL' ? '' : values.gugun - // }; + // // const searchParam: SewagePipeReviewRequestParams = { + // // statsYr: values.year, + // // sewerBzmnCd: values.bsnmCd, + // // ctpvNm: values.sido, + // // sggNm: values.gugun === 'ALL' ? '' : values.gugun + // // }; - // searchParamRef.current = searchParam; - // const response = await statisticsManagementApi.getSewagePipeReviewRegionalList(searchParam); + // // searchParamRef.current = searchParam; + // // const response = await statisticsManagementApi.getSewagePipeReviewRegionalList(searchParam); - // if (response?.status === 'success' && response.data) { - // const newRowDataMap = new Map[]>(); - // newRowDataMap.set('ST00020001', toGridRows(response.data as object[])); - // setRowDataMap(newRowDataMap); - // } else { - // alert(response?.message || "데이터가 없습니다."); - // } - } catch { - alert('데이터 조회 중 오류가 발생했습니다.'); - } finally { - setIsLoading(false); - } - }; + // // if (response?.status === 'success' && response.data) { + // // const newRowDataMap = new Map[]>(); + // // newRowDataMap.set('ST00020001', toGridRows(response.data as object[])); + // // setRowDataMap(newRowDataMap); + // // } else { + // // alert(response?.message || "데이터가 없습니다."); + // // } + // } catch { + // alert('데이터 조회 중 오류가 발생했습니다.'); + // } finally { + // setIsLoading(false); + // } + // }; const SubmitExceptionFunc = () => { console.log('submit exception'); diff --git a/apps/st/src/components/statistics/management/LogHistory.tsx b/apps/st/src/components/statistics/management/LogHistory.tsx index 0b45ce9fd..2938343f8 100644 --- a/apps/st/src/components/statistics/management/LogHistory.tsx +++ b/apps/st/src/components/statistics/management/LogHistory.tsx @@ -18,7 +18,6 @@ import DataGrid from '@/components/module/DataGrid'; import { CodeSelect } from '@/entities/code'; import { LogHistoryColumn } from '@/components/util/column/management/LogHistoryColumn'; -import { useAlertStore } from "@/shared/lib"; // import { LwpoCodeApi } from "@/entities/code"; // const getStateCdListFetcher = async () => { diff --git a/apps/st/src/components/statistics/verification/generalVerification/DetailComponent.tsx b/apps/st/src/components/statistics/verification/generalVerification/DetailComponent.tsx index 34409059b..752c6ff6b 100644 --- a/apps/st/src/components/statistics/verification/generalVerification/DetailComponent.tsx +++ b/apps/st/src/components/statistics/verification/generalVerification/DetailComponent.tsx @@ -16,8 +16,8 @@ import { } from "@common/components"; import { FormItem, FormControl, FormField, Form } from "@/shared/ui/form"; -import { useForm, Controller, type UseFormReturn } from "react-hook-form"; -import { zodResolver } from "@hookform/resolvers/zod"; +import { type UseFormReturn } from "react-hook-form"; + import type { GeneralverificationList } from '@/entities/statistics/model/general-verification-interface'; import { type GeneralVerificationMasterSubmitFormData } from '@/entities/statistics/model/general-verification-master-submit-schema'; diff --git a/apps/st/src/components/statistics/verification/generalVerification/RegistDialog.tsx b/apps/st/src/components/statistics/verification/generalVerification/RegistDialog.tsx index 561bcaadf..3a5bbc01e 100644 --- a/apps/st/src/components/statistics/verification/generalVerification/RegistDialog.tsx +++ b/apps/st/src/components/statistics/verification/generalVerification/RegistDialog.tsx @@ -1,7 +1,7 @@ "use client"; import { useEffect, memo, useRef, useState } from "react"; -import { useForm, Controller } from "react-hook-form"; +import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { useQuery } from "@tanstack/react-query"; @@ -95,7 +95,6 @@ const RegistDialog = memo( const mdfrId = form.watch('mdfrId'); const trgtStatsCd = form.watch('trgtStatsCd'); const vrfcNm = form.watch('vrfcNm'); - const vrfcClsfCd = form.watch('vrfcClsfCd'); const { data: registrarUser } = useQuery({ queryKey: ['user', 'rgtr', rgtrId], @@ -610,4 +609,6 @@ const RegistDialog = memo( ); }) +RegistDialog.displayName = 'RegistDialog'; + export default RegistDialog; \ No newline at end of file diff --git a/apps/st/src/entities/statistics/model/verification-article-mock.ts b/apps/st/src/entities/statistics/model/verification-article-mock.ts index 272efeb16..f4986656c 100644 --- a/apps/st/src/entities/statistics/model/verification-article-mock.ts +++ b/apps/st/src/entities/statistics/model/verification-article-mock.ts @@ -93,7 +93,7 @@ function formatDateTime(date: Date): string { /** H-B 탭 목데이터 생성 */ export function createHBArticleMock(count = 10): HBArticleItem[] { faker.seed(100); - return Array.from({ length: count }, (_, index) => ({ + return Array.from({ length: count }, (_, _index) => ({ statsItmNm: faker.helpers.arrayElement(HB_STATS_ITEMS), vrfcItmNm: faker.helpers.arrayElement(HB_VERIFICATION_ITEMS), tblNm: faker.helpers.arrayElement(TABLE_NAMES), @@ -113,7 +113,7 @@ export function createHBArticleMock(count = 10): HBArticleItem[] { /** I-MR 탭 목데이터 생성 */ export function createIMRArticleMock(count = 10): IMRArticleItem[] { faker.seed(200); - return Array.from({ length: count }, (_, index) => ({ + return Array.from({ length: count }, (_, _index) => ({ statsItmNm: faker.helpers.arrayElement(IMR_STATS_ITEMS), vrfcNm: faker.helpers.arrayElement(VERIFICATION_NAMES), tblNm: faker.helpers.arrayElement(TABLE_NAMES),