sort 및 페이징
This commit is contained in:
@@ -59,9 +59,7 @@ export const FaqListPage = () => {
|
||||
category: selectedCategory,
|
||||
searchCl: (!!searchValue)? SearchCl.HEAD: null,
|
||||
searchValue: searchValue,
|
||||
...{
|
||||
page: pageParam
|
||||
}
|
||||
page: pageParam
|
||||
};
|
||||
if(type !== 'page' && listParams.page){
|
||||
listParams.page.cursor = null;
|
||||
|
||||
@@ -54,13 +54,12 @@ export const NoticeListPage = () => {
|
||||
});
|
||||
|
||||
const callList = (type?: string) => {
|
||||
setOnActionIntersect(false);
|
||||
let listParams: NoticeListParams = {
|
||||
informCl: informCl,
|
||||
searchCl: (!!searchKeyword)? SearchCl.HEAD: null,
|
||||
searchKeyword: searchKeyword,
|
||||
...{
|
||||
page: pageParam
|
||||
}
|
||||
page: pageParam
|
||||
};
|
||||
if(type !== 'page' && listParams.page){
|
||||
listParams.page.cursor = null;
|
||||
@@ -86,7 +85,7 @@ export const NoticeListPage = () => {
|
||||
else{
|
||||
setPageParam({
|
||||
...pageParam,
|
||||
...{ cursor: rs.nextCursor }
|
||||
...{ cursor: null }
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -59,9 +59,7 @@ export const QnaListPage = () => {
|
||||
let listParams: QnaListParams = {
|
||||
mid: mid,
|
||||
statusCode: statusCode,
|
||||
...{
|
||||
page: pageParam
|
||||
}
|
||||
page: pageParam
|
||||
};
|
||||
if(type !== 'page'){
|
||||
if(listParams.page){
|
||||
|
||||
@@ -98,15 +98,13 @@ export const AllTransactionListPage = () => {
|
||||
let listParams: AllTransactionListParams = {
|
||||
...listSummaryParams,
|
||||
...{
|
||||
page: pageParam
|
||||
page: {
|
||||
...pageParam,
|
||||
...{ sortType: sortType }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if(listParams.page){
|
||||
listParams.page.sortType = option?.sortType || sortType;
|
||||
setPageParam(listParams.page);
|
||||
}
|
||||
|
||||
|
||||
allTransactionList(listParams).then((rs: AllTransactionListResponse) => {
|
||||
console.log(rs.content)
|
||||
setListItems(rs.content);
|
||||
|
||||
Reference in New Issue
Block a user