Add not hide grid when paging

This commit is contained in:
Michael
2025-08-21 15:49:38 +09:00
parent af3a7c78f2
commit ee1bd87817
5 changed files with 41 additions and 35 deletions

View File

@ -144,17 +144,17 @@ export default {
chkIsFind(val) {
if (val) {
this.page = 1;
this.search();
this.search(false);
}
},
chkTagId(val) {
if (this.initFlag && val != null) {
this.search();
this.search(false);
}
},
chkTagNm() {
if (this.initFlag) {
this.search();
this.search(false);
}
},
chkReadPlcId() {
@ -193,13 +193,13 @@ export default {
postApiReturn: 'modules/list/postApiReturn',
chkOpenTabList: 'chkOpenTabList',
}),
async search() {
async search(isPaging) {
// this.gridInit();
if (this.initFlag) {
if (this.pageData.tagId == '' || this.pageData.tagId == null) {
alert('TAG를 선택해 주세요');
} else {
this.getRowGridData();
this.getRowGridData(isPaging);
}
}
this.setPageData({
@ -289,9 +289,10 @@ export default {
this.loadGrid = true;
},
async getRowGridData() {
this.loadGrid = false;
async getRowGridData(isPaging) {
if(!isPaging) {
this.loadGrid = false;
}
let res = [];
let res2 = [];
let yearQuarterData = [];
@ -476,7 +477,7 @@ export default {
this.page = pageNum;
this.limit = limit;
this.search();
this.search(true);
},
},
};

View File

@ -198,7 +198,7 @@ export default {
chkIsFind(val) {
if (val) {
this.page = 1;
this.search();
this.search(false);
}
},
chkBlocId() {
@ -265,12 +265,13 @@ export default {
value: myColumns,
});
},
async search() {
await this.getRowGridData();
async search(isPaging) {
await this.getRowGridData(isPaging);
},
async getRowGridData() {
this.loadGrid = false;
async getRowGridData(isPaging) {
if(!isPaging) {
this.loadGrid = false;
}
if (
this.pageData.blocMstrList.length > 0 &&
this.pageData.commCdList.length > 0 &&
@ -356,7 +357,7 @@ export default {
this.page = pageNum;
this.limit = limit;
this.search();
this.search(true);
},
},
};