From 0df29c1e500fbcf54b21faefde35df04a6521e8b Mon Sep 17 00:00:00 2001 From: Kurt92 Date: Tue, 25 Nov 2025 15:30:21 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=ED=81=B4=EB=9D=BC=EC=9D=B4=EC=96=B8?= =?UTF-8?q?=ED=8A=B8=20=ED=8E=98=EC=9D=B4=EC=A7=95=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/views/biz/minwon/init/init.jsp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/biz/minwon/init/init.jsp b/src/main/webapp/WEB-INF/views/biz/minwon/init/init.jsp index 664b29e..2138483 100644 --- a/src/main/webapp/WEB-INF/views/biz/minwon/init/init.jsp +++ b/src/main/webapp/WEB-INF/views/biz/minwon/init/init.jsp @@ -151,11 +151,13 @@ // perPage 변경 이벤트 추가 $('#perPageSelect').on('change', () => { const pagination = TuiGrid.instance.getPagination(); - if (!pagination) return; + GRID.setPerPage($('#perPageSelect').val()); pagination.setItemsPerPage($('#perPageSelect').val()); pagination.reset(TuiGrid.instance.getRowCount()); pagination.movePageTo(1); + TuiGrid.instance.readData(1); + }); } @@ -163,7 +165,7 @@ /** tui-grid Set */ - const initGrid = () => { + let initGrid = () => { const gridColumns = [ {header: '등록구분', name: 'mmDlgb', sortable: true, width: 50,}, {header: '목록번호', name: 'asBbsNo', sortable: true, width: 70,}, @@ -180,7 +182,7 @@ {header: '차량번호', name: 'mmCarno', sortable: true, width: 150,}, {header: 'mmCode', name: 'mmCode', sortable: true, width: 150, align: 'center', hidden: true} ]; - const gridDatasource = { + let gridDatasource = { api: { readData: { url: '', @@ -198,7 +200,7 @@ } } - const gridOptions = { + let gridOptions = { el: 'grid', rowHeaders: ['checkbox'], columns: gridColumns,