Compare commits
12 Commits
dev-dungtv
...
dev-trungv
Author | SHA1 | Date | |
---|---|---|---|
f35924aac8 | |||
8d613e14d3 | |||
50fee505fe | |||
9459291a8e | |||
f633eb413a | |||
ee1bd87817 | |||
8bfcebdd10 | |||
af3a7c78f2 | |||
60b7cfa7e9 | |||
4074f0cfca | |||
b20bf33b28 | |||
3b16421518 |
@ -173,8 +173,9 @@ export default {
|
||||
this.gridScrollTop = e.target.scrollTop;
|
||||
this.gridScrollLeft = e.target.scrollLeft;
|
||||
});
|
||||
|
||||
if (!(this.scrollBody.scrollHeight > this.scrollBody.clientHeight)) {
|
||||
if (this.scrollBody.scrollHeight > this.scrollBody.clientHeight) {
|
||||
this.gridInstance.$el.getElementsByClassName('tui-grid-content-area')[0].classList.remove('tui-grid-no-scroll-y');
|
||||
} else {
|
||||
this.gridInstance.$el.getElementsByClassName('tui-grid-content-area')[0].classList.add('tui-grid-no-scroll-y');
|
||||
}
|
||||
}
|
||||
|
@ -112,10 +112,10 @@ export default {
|
||||
bodyHeight: gridHeight,
|
||||
minBodyHeight: gridHeight,
|
||||
header: {
|
||||
height: 28,
|
||||
height: 37,
|
||||
},
|
||||
rowHeight: 29,
|
||||
minRowHeight: 29,
|
||||
rowHeight: 37,
|
||||
minRowHeight: 37,
|
||||
selectionUnit: 'row',
|
||||
editingEvent: 'click',
|
||||
};
|
||||
|
@ -505,3 +505,10 @@ const myDetail = [
|
||||
},
|
||||
];
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep{
|
||||
.tui-grid-layer-state{
|
||||
top: 40px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1085,4 +1085,11 @@ function sha512(str) {
|
||||
.update(str)
|
||||
.digest('hex');
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep{
|
||||
.tui-grid-layer-state{
|
||||
top: 40px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -143,7 +143,7 @@ export default {
|
||||
chkIsFind(val) {
|
||||
if (val) {
|
||||
this.page = 1;
|
||||
this.search();
|
||||
this.search(false);
|
||||
}
|
||||
},
|
||||
chkExecRsltCd() {
|
||||
@ -249,14 +249,16 @@ export default {
|
||||
|
||||
this.loadGrid = true;
|
||||
},
|
||||
async search() {
|
||||
await this.getRowGridData();
|
||||
async search(isPaging) {
|
||||
await this.getRowGridData(isPaging);
|
||||
await this.setPageData({
|
||||
isFind: false,
|
||||
});
|
||||
},
|
||||
async getRowGridData() {
|
||||
this.loadGrid = false;
|
||||
async getRowGridData(isPaging) {
|
||||
if(!isPaging) {
|
||||
this.loadGrid = false;
|
||||
}
|
||||
// this.setGridData({
|
||||
// gridKey: this.gridName,
|
||||
// value: [],
|
||||
@ -369,7 +371,7 @@ export default {
|
||||
this.page = pageNum;
|
||||
this.limit = limit;
|
||||
|
||||
this.search();
|
||||
this.search(true);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -426,7 +426,7 @@ export default {
|
||||
}
|
||||
},
|
||||
search() {
|
||||
this.getGridData();
|
||||
this.getGridData(false);
|
||||
},
|
||||
gridInit() {
|
||||
const gridHeight = this.$refs.contents.offsetHeight - 120;
|
||||
@ -498,18 +498,18 @@ 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',
|
||||
apiKey: 'selectPostData',
|
||||
resKey: 'postPage',
|
||||
sendParam: params,
|
||||
});
|
||||
@ -1059,7 +1059,8 @@ export default {
|
||||
this.page = pageNum;
|
||||
this.limit = limit;
|
||||
|
||||
this.search();
|
||||
// this.search();
|
||||
this.getGridData(true);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -522,3 +522,10 @@ const myDetail = [
|
||||
},
|
||||
];
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep{
|
||||
.tui-grid-layer-state{
|
||||
top: 40px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -1029,3 +1029,10 @@ const myDetail = [
|
||||
},
|
||||
];
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep{
|
||||
.tui-grid-layer-state{
|
||||
top: 40px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -63,7 +63,7 @@
|
||||
<v-tabs-items v-model="tab" style="height: calc(100% - 65px);" class="pt-6 py-2">
|
||||
<v-tab-item v-for="(item, idx) in items" :key="item.id">
|
||||
<component v-if="item.id == 'readPlcBaseInfoTab'" :is="'Form'" :parentPrgmId="myPrgmId"
|
||||
:detailList="f" :bindingData="gridName"
|
||||
:detailList="detailList" :bindingData="gridName"
|
||||
@gridEditingFinish="gridEditingFinish" />
|
||||
<ReadPlcAddInfoTab v-if="item.id == 'readPlcAddInfoTab'" :parentPrgmId="myPrgmId"
|
||||
:innerTabGridInfo="{ tab, idx }" />
|
||||
@ -923,51 +923,6 @@ const defaultData = {
|
||||
},
|
||||
};
|
||||
|
||||
const sampleData = [
|
||||
{
|
||||
readPlcNm: '서울 본사',
|
||||
plcKind: '본사',
|
||||
useFg: '사용',
|
||||
_children: [
|
||||
{
|
||||
readPlcNm: '서울 본사 - 1층',
|
||||
plcKind: '층',
|
||||
useFg: '사용',
|
||||
},
|
||||
{
|
||||
readPlcNm: '서울 본사 - 2층',
|
||||
plcKind: '층',
|
||||
useFg: '미사용',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
readPlcNm: '부산 지사',
|
||||
plcKind: '지사',
|
||||
useFg: '사용',
|
||||
_children: [
|
||||
{
|
||||
readPlcNm: '부산 지사 - A동',
|
||||
plcKind: '건물',
|
||||
useFg: '사용',
|
||||
_children: [
|
||||
{
|
||||
readPlcNm: '부산 지사 - A동 1층',
|
||||
plcKind: '층',
|
||||
useFg: '사용',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
readPlcNm: '대전 창고',
|
||||
plcKind: '창고',
|
||||
useFg: '미사용',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
const myDetail = [
|
||||
{
|
||||
type: 'InputText',
|
||||
|
@ -1005,3 +1005,10 @@ const dataPathDataExample = getPathDataExample({
|
||||
field2: '2222',
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep{
|
||||
.tui-grid-layer-state{
|
||||
top: 40px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -12,7 +12,7 @@
|
||||
</v-col>
|
||||
<v-col :cols="3">
|
||||
<component :is="'EvtObjPop'" :parentPrgmId="myPrgmId" :item="evtObjPopItem"
|
||||
class="no-gutters" customClass="select-large" />
|
||||
class="no-gutters" customClass="select-large pa-0" />
|
||||
</v-col>
|
||||
<v-col :cols="3">
|
||||
<!-- 대상일 -->
|
||||
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -465,3 +466,10 @@ const myColumns = [
|
||||
},
|
||||
];
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep{
|
||||
.tui-grid-layer-state{
|
||||
top: 40px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -211,7 +211,7 @@ export default {
|
||||
}
|
||||
},
|
||||
chkIsFind(val) {
|
||||
if (val) this.search();
|
||||
if (val) this.search(false);
|
||||
},
|
||||
fabId(val) { },
|
||||
fabNm(val) { },
|
||||
@ -371,8 +371,8 @@ export default {
|
||||
}
|
||||
await this.gridInit();
|
||||
},
|
||||
async search() {
|
||||
await this.getRowGridData();
|
||||
async search(isPaging) {
|
||||
await this.getRowGridData(isPaging);
|
||||
this.setPageData({
|
||||
isFind: false,
|
||||
});
|
||||
@ -725,9 +725,10 @@ export default {
|
||||
|
||||
this.getRowGridData();
|
||||
},
|
||||
async getRowGridData() {
|
||||
this.loadGrid = false;
|
||||
|
||||
async getRowGridData(isPaging) {
|
||||
if(!isPaging) {
|
||||
this.loadGrid = false;
|
||||
}
|
||||
var res = await this.postApiReturn({
|
||||
apiKey: 'selectEnrgEffcEqpmDetlMntr',
|
||||
resKey: 'eqpmDetlData',
|
||||
@ -806,7 +807,7 @@ export default {
|
||||
this.page = pageNum;
|
||||
this.limit = limit;
|
||||
|
||||
this.search();
|
||||
this.search(true);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -514,7 +514,7 @@ const INIT_URL_STATE = {
|
||||
|
||||
// prgmId: "PRG0003" 공지사항
|
||||
selectPostList: 'comm/base/NoticeMngCtr/selectPostList',
|
||||
selectPostPage: 'comm/base/NoticeMngCtr/selectPostPage',
|
||||
selectPostData: 'comm/base/NoticeMngCtr/selectPostData',
|
||||
selectPostPageTotal: 'comm/base/NoticeMngCtr/selectPostPageTotal',
|
||||
deletePostList: 'comm/base/NoticeMngCtr/deletePost',
|
||||
|
||||
|
Reference in New Issue
Block a user