sort 구조 변경

This commit is contained in:
focp212@naver.com
2025-10-24 16:49:46 +09:00
parent c0c983be1a
commit 8e27c42a2d
6 changed files with 35 additions and 107 deletions

View File

@@ -74,17 +74,14 @@ export const AllTransactionListPage = () => {
const { mutateAsync: allTransactionListSummary } = useAllTransactionListSummaryMutation();
const { mutateAsync: downloadExcel } = useDownloadExcelMutation();
const callList = (option?: {
sortType?: SortTypeKeys,
val?: string
}) => {
const callList = () => {
let listSummaryParams: AllTransactionListSummaryParams = {
moid: moid,
tid: tid,
fromDate: fromDate,
toDate: toDate,
statusCode: statusCode,
serviceCode: option?.val || serviceCode,
serviceCode: serviceCode,
minAmount: minAmount,
maxAmount: maxAmount,
dateCl: dateCl,
@@ -133,9 +130,6 @@ export const AllTransactionListPage = () => {
};
const onClickToSort = (sort: SortTypeKeys) => {
setSortType(sort);
callList({
sortType: sort
});
};
const callServiceCodeOptions = () => {
let serviceCodes = useStore.getState().CommonStore.serviceCodes;
@@ -147,9 +141,6 @@ export const AllTransactionListPage = () => {
let val = e.target.value;
// onchagne 에서 useState가 즉시 반영 안되므로 값을 직접 바로 넘긴다.
setServiceCode(val);
callList({
val: val
});
};
const getServiceCodeOptions = () => {
@@ -173,7 +164,7 @@ export const AllTransactionListPage = () => {
useEffect(() => {
callList();
}, [
mid, moid, tid,
mid, moid, tid, sortType,
fromDate, toDate,
statusCode, serviceCode,
minAmount, maxAmount,