로그 제거

This commit is contained in:
focp212@naver.com
2025-10-28 11:08:50 +09:00
parent 5bbef971e1
commit feaaac73f7
22 changed files with 22 additions and 100 deletions

View File

@@ -81,31 +81,24 @@ export const ListWrap = ({
const { mutateAsync: settlementsTransactionSummary } = useSettlementsTransactionSummaryMutation();
const { mutateAsync: downloadExcel } = useDownloadExcelMutation();
const callList = (option?: {
type?: string
}) => {
const callList = (type?: string) => {
setOnActionIntersect(false);
if(periodType === SettlementPeriodType.SETTLEMENT_DATE){
callSettlementList(option);
callSettlementList(type);
}
else if(periodType === SettlementPeriodType.TRANSACTION_DATE){
callTransactionList(option);
callTransactionList(type);
}
};
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
entries.forEach((entry: IntersectionObserverEntry) => {
if(entry.isIntersecting){
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
if(onActionIntersect && !!pageParam.cursor){
callList({
type: 'page'
});
setOnActionIntersect(false);
callList('page');
}
}
else{
console.log('Element is no longer intersecting with the root.');
}
});
};
@@ -114,9 +107,7 @@ export const ListWrap = ({
onIntersect
});
const callSettlementList = (option?: {
type?: string
}) => {
const callSettlementList = (type?: string) => {
let listSummaryParams: SettlementsHistorySummaryParams = {
mid: mid,
periodType: periodType,
@@ -133,12 +124,12 @@ export const ListWrap = ({
}
}
};
if(option?.type !== 'page' && listParams.page){
if(type !== 'page' && listParams.page){
listParams.page.cursor = null;
}
settlementsHistory(listParams).then((rs: SettlementsHistoryResponse) => {
if(option?.type === 'page'){
if(type === 'page'){
setSettlementDateListItems([
...settlementDateListItems,
...rs.content
@@ -177,9 +168,7 @@ export const ListWrap = ({
setOffsetAmount(rs.offsetAmount || 0);
});
};
const callTransactionList = (option?: {
type?: string
}) => {
const callTransactionList = (type?: string) => {
let listSummaryParams: SettlementsTransactionSummaryParams = {
mid: mid,
periodType: periodType,
@@ -200,11 +189,11 @@ export const ListWrap = ({
};
delete listParams.transactionIds;
if(option?.type !== 'page' && listParams.page){
if(type !== 'page' && listParams.page){
listParams.page.cursor = null;
}
settlementsTransactionList(listParams).then((rs) => {
if(option?.type === 'page'){
if(type === 'page'){
setTransactionDateListItems([
...transactionDatelistItems,
...rs.content