Compare commits

...

7 Commits

12 changed files with 108 additions and 57 deletions

View File

@ -448,8 +448,8 @@
.router-tab {
.router-tab__header {
background-color: map-deep-get($config, #{$theme}, "router-header");
border-color: map-deep-get($config, #{$theme}, "router-header");
// background-color: map-deep-get($config, #{$theme}, "router-header");
// border-color: map-deep-get($config, #{$theme}, "router-header");
height: 46px;
z-index: 7;
max-width: calc(100vw - 290px);

View File

@ -58,6 +58,11 @@ export default {
require: false,
default: false,
},
required: {
type: Boolean,
require: false,
default: false,
},
labelCols: {
type: Number,
require: false,

View File

@ -400,7 +400,6 @@ export default {
header: {
height: 'auto',
},
// rowHeaders:[{ type: 'checkbox' }],
rowHeight: 'auto',
};
if (this.isMulti) {
@ -408,8 +407,6 @@ export default {
myOptions['rowHeight'] = 'auto';
}
this.setModalGridOption({
modalKey: this.myModalKey,
gridKey: this.gridName,
@ -463,8 +460,6 @@ export default {
modalDataKey: this.modalDataKey,
value: myColumns,
});
// this.getRowGridData();
},
async getRowGridData() {
@ -588,6 +583,18 @@ var eqpmSelectPop = {
overflow-y: hidden;
}
.tui-grid-lside-area {
.tui-grid-table {
.tui-grid-cell-header {
&.tui-grid-cell {
input[type=checkbox] {
margin-top: 0px;
}
}
}
}
}
}
</style>

View File

@ -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',
};

View File

@ -104,7 +104,9 @@
:items="treevieItems" activatable hoverable color="#3896ff" open-on-click @update:open="openNode">
<template slot="label" slot-scope="{ item }">
<button :class="{ 'justify-center': miniVariant }" @mouseover="doMouseOver">
<!-- <span v-if="['MNU0065', 'MNU0027'].includes(item.menuId)" >
{{ item }}
</span> -->
<v-icon
v-if="item.lvl === 1 && menuIconKeys.includes(item.menuId)"
:class="{ 'mr-2': !miniVariant }"
@ -142,8 +144,12 @@
</v-navigation-drawer>
</div>
<v-col>
<router-tab ref="routerTab" :tabs="treevieItems" :keep-last-tab="false" :contextmenu="false">
<v-col :class="`${isDarkMode ? 'dark' : 'light'}`">
<router-tab ref="routerTab"
:tabs="treevieItems"
:keep-last-tab="false"
:contextmenu="false"
>
<template slot-scope="{ title, closable, to, base }">
<span>{{ title }}</span>
<v-icon size="20" class="ml-2" v-if="closable" @click.stop="onCloseTab(to)">mdi-close</v-icon>
@ -700,4 +706,17 @@ export default {
<style lang="scss" scoped>
@import '@/assets/scss/layout.scss';
</style>
<style lang="scss">
.light .router-tab .router-tab__header {
background-color: #fff;
border-color: #fff;
}
.dark .router-tab .router-tab__header {
background-color: #212224;
border-color: #212224;
}
</style>

View File

@ -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);
},
},
};

View File

@ -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);
},
},
};

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

@ -129,10 +129,20 @@ let myPrgmId;
export default {
mixins: [mixinGlobal, resize],
async asyncData(context) {
const myState = context.store.state;
myPrgmId = context.route.query.prgmId;
await context.store.commit("setActiveMenuInfo", myState.menuData[myPrgmId]);
myTitle = await myState.activeMenuInfo.menuNm;
// console.log('----DEBUG-----ReadResultCloseMngPage--asyncData:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
try{
myPrgmId = context.route.query.prgmId;
const myState = context.store.state;
const activeMenuInfo = myState.menuData[myPrgmId];
myTitle = activeMenuInfo.menuNm;
// console.log('-----DEBUG----store.commit----setActiveMenuInfo:', activeMenuInfo);
await context.store.commit("setActiveMenuInfo", activeMenuInfo);
myTitle = await myState.activeMenuInfo.menuNm;
// console.log('-----DEBUG----store.commit----setActiveMenuInfo---Compeleted:', myState.activeMenuInfo);
}catch(err){
// console.log('-----DEBUG----err', err);
}
},
meta: {
title: () => {
@ -188,7 +198,7 @@ export default {
chkIsFind(val) {
if (val) {
this.page = 1;
this.search();
this.search(false);
}
},
chkBlocId() {
@ -206,18 +216,21 @@ export default {
this.setPageData({ isFind: true });
},
},
async beforeCreate() {
beforeCreate() {
// console.log('----DEBUG-----ReadResultCloseMngPage--beforeCreate:', Utility.setFormatDate(new Date(), "YYYYMMDD"));
myPrgmId = this.$route.query.prgmId;
await this.$store.dispatch("chkOpenTabList", {
const context = {
key: "create",
prgmId: myPrgmId,
defaultData: defaultData,
});
};
this.$store.dispatch("chkOpenTabList", context);
},
mounted() {
this.init();
},
created() {},
created() {
},
methods: {
...mapMutations({
setPageData: "setPageData",
@ -252,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 &&
@ -343,7 +357,7 @@ export default {
this.page = pageNum;
this.limit = limit;
this.search();
this.search(true);
},
},
};

View File

@ -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);
},
},
};

View File

@ -239,7 +239,7 @@ export default {
try{
await this.getChartData();
}catch(err){
this.initTestChart();
// this.initTestChart();
}
this.setPageData({
isFind: false,

View File

@ -513,6 +513,7 @@ export const actions = {
//commit("pageInit", {});
break;
case 'create':
// console.log("---------DEBUGmyPrgmId:", myPrgmId);
if (!list.some(it => it === myPrgmId)) {
// console.log("클릭 한 메뉴가 기존 목록에 없다 => 새로 push"); // & 초기화 세팅
localStorage.setItem('pageData', JSON.stringify(state.pageData));