diff --git a/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx b/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx index dbb0fb7ca..2af9cfc19 100644 --- a/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx +++ b/apps/sn/app/(with-base-layout)/ii/rdiiResult/page.tsx @@ -2,7 +2,7 @@ import { deleteData, getData } from '@/components/lib/api' import { UiTable, downloadExcelWithKoreanHeaders } from '@common/business_components/ui' import { zodResolver } from '@hookform/resolvers/zod' -import { useState } from 'react' +import { useState, useEffect } from 'react' import { useForm } from 'react-hook-form' import { z } from 'zod' import BaseLayout from '../BaseLayout' @@ -84,6 +84,11 @@ const Result = () => { const [selectedRowIndex, setSelectedRowIndex] = useState(undefined); const [resetSelection, setResetSelection] = useState(false); + useEffect(() => { + // setCurPage(1); + handleSearchButtonClick(); + }, []) + const handleSearchButtonClick = async (customFormValues?: Partial) => { setIsLoadingResult(true); diff --git a/apps/sn/app/(with-base-layout)/ii/result/page.tsx b/apps/sn/app/(with-base-layout)/ii/result/page.tsx index 3bdc35c8c..ab8d397e0 100644 --- a/apps/sn/app/(with-base-layout)/ii/result/page.tsx +++ b/apps/sn/app/(with-base-layout)/ii/result/page.tsx @@ -2,7 +2,7 @@ import { deleteData, getData } from '@/components/lib/api' import { UiTable, downloadExcel, downloadExcelWithKoreanHeaders } from '@common/business_components/ui' import { zodResolver } from '@hookform/resolvers/zod' -import { useState } from 'react' +import { useState, useEffect } from 'react' import { useForm } from 'react-hook-form' import { z } from 'zod' import BaseLayout from '../BaseLayout' @@ -82,6 +82,10 @@ const Result = () => { const [selectedRowIndex, setSelectedRowIndex] = useState(undefined); const [resetSelection, setResetSelection] = useState(false); + useEffect(() => { + // setCurPage(1); + handleSearchButtonClick(); + }, []) const handleSearchButtonClick = async (customFormValues?: Partial) => { setIsLoadingResult(true); @@ -278,6 +282,8 @@ const Result = () => { } }; + + return ( { noFooterYn="Y" body={ { await registFile(file, year, quater, cd, id) }} diff --git a/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx b/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx index 2b360ba98..fb1725f55 100644 --- a/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx +++ b/apps/sn/app/(with-base-layout)/oper/oldPp/page.tsx @@ -14,8 +14,6 @@ import OperFileUploadForm from '../../../components/ui/operFileUploadForm' const Page = () => { const [fromDate, setFromDate] = useState(() => { const date = new Date(); date.setDate(date.getDate() - 7); return date }); const [toDate, setToDate] = useState(new Date()); - const [manageYear, setManageYear] = useState(yearOptions[0]?.val || ''); - const [mngQu, setMngQu] = useState(yearOptions[0]?.val || ''); const [usr, setUsr] = useState('') const [pjNm, setpjNm] = useState('') const [fileNm, setFileNm] = useState('') @@ -195,7 +193,7 @@ const Page = () => { noFooterYn="Y" body={ { await registFile(file, year, quater, cd, id) }}