공지사항 검색, 페이징 추가.

This commit is contained in:
주우성
2025-06-14 16:33:13 +09:00
parent 966cca98cf
commit 485281bbb3
5 changed files with 67 additions and 20 deletions

View File

@@ -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();
}
/**