st: fix: eslint error 수정

This commit is contained in:
2026-03-17 10:47:51 +09:00
parent 4c86f7f3a5
commit 1bc03d99c6
6 changed files with 40 additions and 40 deletions
@@ -67,7 +67,7 @@ const CompactDataGrid = ({
fixedColumns,
showHeaderCheckbox = false,
rowData,
setRowData,
// setRowData,
getGridDataRef,
cellStyleCallback,
onRowClick,
@@ -17,9 +17,9 @@ import { useAdminStore } from "@/store/admin-store";
const SewagePipeInp = () => {
const [rowDataMap, setRowDataMap] = useState<Map<string, Record<string, string | number>[]>>(new Map());
const { setMessage: alert } = useAlertStore((state) => state);
const [isLoading, setIsLoading] = useState<boolean>(false);
const [_isLoading, setIsLoading] = useState<boolean>(false);
const [activeTab, setActiveTab] = useState<string>(SewagePipeInpColumnInfoList[0]?.tabKey ?? "ST00020001");
const [isEnterable, setIsEnterable] = useState<boolean>(true);
const [isEnterable, _setIsEnterable] = useState<boolean>(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<string, Record<string, string | number>[]>();
// 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<string, Record<string, string | number>[]>();
// // 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');
@@ -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 () => {
@@ -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';
@@ -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;
@@ -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),