Add not hide grid when paging
This commit is contained in:
@ -426,7 +426,7 @@ export default {
|
||||
}
|
||||
},
|
||||
search() {
|
||||
this.getGridData();
|
||||
this.getGridData(false);
|
||||
},
|
||||
gridInit() {
|
||||
const gridHeight = this.$refs.contents.offsetHeight - 120;
|
||||
@ -498,16 +498,16 @@ export default {
|
||||
});
|
||||
this.getGridData();
|
||||
},
|
||||
async getGridData() {
|
||||
async getGridData(isPaging) {
|
||||
var params = {
|
||||
bordNo: 'BORD0001',
|
||||
limit: this.limit,
|
||||
page: this.page,
|
||||
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
|
||||
};
|
||||
|
||||
this.loadGrid = false;
|
||||
|
||||
if(!isPaging) {
|
||||
this.loadGrid = false;
|
||||
}
|
||||
const res = await this.postApiReturn({
|
||||
apiKey: 'selectPostPage',
|
||||
resKey: 'postPage',
|
||||
@ -1059,7 +1059,8 @@ export default {
|
||||
this.page = pageNum;
|
||||
this.limit = limit;
|
||||
|
||||
this.search();
|
||||
// this.search();
|
||||
this.getGridData(true);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user