공지사항 검색, 페이징 추가.
This commit is contained in:
@@ -5,11 +5,19 @@
|
||||
* @param {string} sort
|
||||
*/
|
||||
function goPageable(page, size, sort) {
|
||||
let uri = new Uri(location.href);
|
||||
uri.replaceQueryParam('page', page).replaceQueryParam('size', size)
|
||||
.replaceQueryParam('sort', convertToPageableSortValue(sort));
|
||||
if (typeof formControl === 'object' && typeof formControl.init === 'function') {
|
||||
setTimeout(() => {
|
||||
formControl.goPageable(page, size, sort);
|
||||
}, 200)
|
||||
} else {
|
||||
|
||||
let uri = new Uri(location.href);
|
||||
uri.replaceQueryParam('page', page).replaceQueryParam('size', size)
|
||||
.replaceQueryParam('sort', convertToPageableSortValue(sort));
|
||||
|
||||
location.href = uri.toString();
|
||||
}
|
||||
|
||||
location.href = uri.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user