Add not hide grid when paging
This commit is contained in:
@ -143,7 +143,7 @@ export default {
|
|||||||
chkIsFind(val) {
|
chkIsFind(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.search();
|
this.search(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chkExecRsltCd() {
|
chkExecRsltCd() {
|
||||||
@ -249,14 +249,16 @@ export default {
|
|||||||
|
|
||||||
this.loadGrid = true;
|
this.loadGrid = true;
|
||||||
},
|
},
|
||||||
async search() {
|
async search(isPaging) {
|
||||||
await this.getRowGridData();
|
await this.getRowGridData(isPaging);
|
||||||
await this.setPageData({
|
await this.setPageData({
|
||||||
isFind: false,
|
isFind: false,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async getRowGridData() {
|
async getRowGridData(isPaging) {
|
||||||
|
if(!isPaging) {
|
||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
|
}
|
||||||
// this.setGridData({
|
// this.setGridData({
|
||||||
// gridKey: this.gridName,
|
// gridKey: this.gridName,
|
||||||
// value: [],
|
// value: [],
|
||||||
@ -369,7 +371,7 @@ export default {
|
|||||||
this.page = pageNum;
|
this.page = pageNum;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|
||||||
this.search();
|
this.search(true);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -426,7 +426,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
search() {
|
search() {
|
||||||
this.getGridData();
|
this.getGridData(false);
|
||||||
},
|
},
|
||||||
gridInit() {
|
gridInit() {
|
||||||
const gridHeight = this.$refs.contents.offsetHeight - 120;
|
const gridHeight = this.$refs.contents.offsetHeight - 120;
|
||||||
@ -498,16 +498,16 @@ export default {
|
|||||||
});
|
});
|
||||||
this.getGridData();
|
this.getGridData();
|
||||||
},
|
},
|
||||||
async getGridData() {
|
async getGridData(isPaging) {
|
||||||
var params = {
|
var params = {
|
||||||
bordNo: 'BORD0001',
|
bordNo: 'BORD0001',
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
page: this.page,
|
page: this.page,
|
||||||
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
|
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
|
||||||
};
|
};
|
||||||
|
if(!isPaging) {
|
||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
|
}
|
||||||
const res = await this.postApiReturn({
|
const res = await this.postApiReturn({
|
||||||
apiKey: 'selectPostPage',
|
apiKey: 'selectPostPage',
|
||||||
resKey: 'postPage',
|
resKey: 'postPage',
|
||||||
@ -1059,7 +1059,8 @@ export default {
|
|||||||
this.page = pageNum;
|
this.page = pageNum;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|
||||||
this.search();
|
// this.search();
|
||||||
|
this.getGridData(true);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -144,17 +144,17 @@ export default {
|
|||||||
chkIsFind(val) {
|
chkIsFind(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.search();
|
this.search(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chkTagId(val) {
|
chkTagId(val) {
|
||||||
if (this.initFlag && val != null) {
|
if (this.initFlag && val != null) {
|
||||||
this.search();
|
this.search(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chkTagNm() {
|
chkTagNm() {
|
||||||
if (this.initFlag) {
|
if (this.initFlag) {
|
||||||
this.search();
|
this.search(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chkReadPlcId() {
|
chkReadPlcId() {
|
||||||
@ -193,13 +193,13 @@ export default {
|
|||||||
postApiReturn: 'modules/list/postApiReturn',
|
postApiReturn: 'modules/list/postApiReturn',
|
||||||
chkOpenTabList: 'chkOpenTabList',
|
chkOpenTabList: 'chkOpenTabList',
|
||||||
}),
|
}),
|
||||||
async search() {
|
async search(isPaging) {
|
||||||
// this.gridInit();
|
// this.gridInit();
|
||||||
if (this.initFlag) {
|
if (this.initFlag) {
|
||||||
if (this.pageData.tagId == '' || this.pageData.tagId == null) {
|
if (this.pageData.tagId == '' || this.pageData.tagId == null) {
|
||||||
alert('TAG를 선택해 주세요');
|
alert('TAG를 선택해 주세요');
|
||||||
} else {
|
} else {
|
||||||
this.getRowGridData();
|
this.getRowGridData(isPaging);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.setPageData({
|
this.setPageData({
|
||||||
@ -289,9 +289,10 @@ export default {
|
|||||||
|
|
||||||
this.loadGrid = true;
|
this.loadGrid = true;
|
||||||
},
|
},
|
||||||
async getRowGridData() {
|
async getRowGridData(isPaging) {
|
||||||
|
if(!isPaging) {
|
||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
|
}
|
||||||
let res = [];
|
let res = [];
|
||||||
let res2 = [];
|
let res2 = [];
|
||||||
let yearQuarterData = [];
|
let yearQuarterData = [];
|
||||||
@ -476,7 +477,7 @@ export default {
|
|||||||
this.page = pageNum;
|
this.page = pageNum;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|
||||||
this.search();
|
this.search(true);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -198,7 +198,7 @@ export default {
|
|||||||
chkIsFind(val) {
|
chkIsFind(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.search();
|
this.search(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chkBlocId() {
|
chkBlocId() {
|
||||||
@ -265,12 +265,13 @@ export default {
|
|||||||
value: myColumns,
|
value: myColumns,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async search() {
|
async search(isPaging) {
|
||||||
await this.getRowGridData();
|
await this.getRowGridData(isPaging);
|
||||||
},
|
},
|
||||||
async getRowGridData() {
|
async getRowGridData(isPaging) {
|
||||||
|
if(!isPaging) {
|
||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
this.pageData.blocMstrList.length > 0 &&
|
this.pageData.blocMstrList.length > 0 &&
|
||||||
this.pageData.commCdList.length > 0 &&
|
this.pageData.commCdList.length > 0 &&
|
||||||
@ -356,7 +357,7 @@ export default {
|
|||||||
this.page = pageNum;
|
this.page = pageNum;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|
||||||
this.search();
|
this.search(true);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -211,7 +211,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
chkIsFind(val) {
|
chkIsFind(val) {
|
||||||
if (val) this.search();
|
if (val) this.search(false);
|
||||||
},
|
},
|
||||||
fabId(val) { },
|
fabId(val) { },
|
||||||
fabNm(val) { },
|
fabNm(val) { },
|
||||||
@ -371,8 +371,8 @@ export default {
|
|||||||
}
|
}
|
||||||
await this.gridInit();
|
await this.gridInit();
|
||||||
},
|
},
|
||||||
async search() {
|
async search(isPaging) {
|
||||||
await this.getRowGridData();
|
await this.getRowGridData(isPaging);
|
||||||
this.setPageData({
|
this.setPageData({
|
||||||
isFind: false,
|
isFind: false,
|
||||||
});
|
});
|
||||||
@ -725,9 +725,10 @@ export default {
|
|||||||
|
|
||||||
this.getRowGridData();
|
this.getRowGridData();
|
||||||
},
|
},
|
||||||
async getRowGridData() {
|
async getRowGridData(isPaging) {
|
||||||
|
if(!isPaging) {
|
||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
|
}
|
||||||
var res = await this.postApiReturn({
|
var res = await this.postApiReturn({
|
||||||
apiKey: 'selectEnrgEffcEqpmDetlMntr',
|
apiKey: 'selectEnrgEffcEqpmDetlMntr',
|
||||||
resKey: 'eqpmDetlData',
|
resKey: 'eqpmDetlData',
|
||||||
@ -806,7 +807,7 @@ export default {
|
|||||||
this.page = pageNum;
|
this.page = pageNum;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|
||||||
this.search();
|
this.search(true);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user