|
|
|
|
@ -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: '<c:url value="/minwon/init/list.ajax"/>',
|
|
|
|
|
@ -198,7 +200,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const gridOptions = {
|
|
|
|
|
let gridOptions = {
|
|
|
|
|
el: 'grid',
|
|
|
|
|
rowHeaders: ['checkbox'],
|
|
|
|
|
columns: gridColumns,
|
|
|
|
|
|