Compare commits

..

9 Commits

5 changed files with 273 additions and 83 deletions

View File

@ -89,9 +89,57 @@
} }
.tui-grid-cell { .tui-grid-cell {
&:last-child {
input[type=checkbox] { input[type=checkbox] {
margin-top: 8px; margin-top: 8px;
appearance: none;
-webkit-appearance: none;
width: 16px;
height: 16px;
border: 1px solid;
border-radius: 2px;
cursor: pointer;
position: relative;
&:checked {
&::after {
content: "";
position: absolute;
left: 5px;
top: 1px;
width: 5px;
height: 9px;
border: solid;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
}
}
}
}
.tui-grid-layer-editing {
input[type=checkbox] {
margin-top: 8px;
appearance: none;
-webkit-appearance: none;
width: 16px;
height: 16px;
border: 1px solid;
border-radius: 2px;
cursor: pointer;
position: relative;
&:checked {
&::after {
content: "";
position: absolute;
left: 5px;
top: 1px;
width: 5px;
height: 9px;
border: solid;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
} }
} }
} }
@ -118,6 +166,44 @@
@include theme($theme); @include theme($theme);
.v-application.#{$theme}-mode { .v-application.#{$theme}-mode {
.enrg-effc {
.tui-grid-rside-area {
.tui-grid-table {
tr {
td:nth-child(4),
td:nth-child(10) {
.tui-grid-cell-content {
color: map-deep-get($config,
#{$theme},
"router-tab-item-active-color"
);
}
}
}
.tui-grid {
&-row-odd,
&-row-even {
&:hover {
>td:nth-child(4),
td:nth-child(10) {
.tui-grid-cell-content {
color: map-deep-get($config,
#{$theme},
"router-tab-item-active-color"
);
}
}
}
}
}
}
}
}
.tui-grid-content-area { .tui-grid-content-area {
.tui-grid-header-area { .tui-grid-header-area {
height: auto !important; height: auto !important;
@ -161,6 +247,35 @@
#{$theme}, #{$theme},
"tui-grid-cell-borderStyle-darkmode" "tui-grid-cell-borderStyle-darkmode"
); );
input[type=checkbox] {
border-color: map-deep-get($config,
#{$theme},
"ant-checkbox-border"
);
background: map-deep-get($config,
#{$theme},
"ant-checkbox-bg"
);
&:checked {
background-color: map-deep-get($config,
#{$theme},
"ant-btn-primary-bg"
);
border-color: map-deep-get($config,
#{$theme},
"ant-btn-primary-bg"
);
&::after {
border-color: map-deep-get($config,
#{$theme},
"ant-checkbox-bg"
);
}
}
}
} }
} }
@ -367,6 +482,15 @@
// "tui-grid-cell-insert-color" // "tui-grid-cell-insert-color"
// ); // );
} }
span {
&.custom-link {
color: map-deep-get($config,
#{$theme},
"router-tab-item-active-color"
);
}
}
} }
} }
@ -602,6 +726,37 @@
&-frozen-border { &-frozen-border {
background-color: transparent; background-color: transparent;
} }
&-layer-editing {
input[type=checkbox] {
border-color: map-deep-get($config,
#{$theme},
"ant-checkbox-border"
);
background: map-deep-get($config,
#{$theme},
"ant-checkbox-bg"
);
&:checked {
background-color: map-deep-get($config,
#{$theme},
"ant-btn-primary-bg"
);
border-color: map-deep-get($config,
#{$theme},
"ant-btn-primary-bg"
);
&::after {
border-color: map-deep-get($config,
#{$theme},
"ant-checkbox-bg"
);
}
}
}
}
} }
[class*="tui-grid-tree-wrapper"] { [class*="tui-grid-tree-wrapper"] {

View File

@ -68,18 +68,6 @@ export default {
loadGrid: false, loadGrid: false,
gridName: 'rowDataSetTagRelGrid', gridName: 'rowDataSetTagRelGrid',
detailDataSetTagList: myDataSetTagDetail, detailDataSetTagList: myDataSetTagDetail,
dataPathMock: {
"rowDataSetTagRelGrid": {
column: [
{ header: 'TAG ID', name: 'id', headerAlign: 'left' },
{ header: 'TAG 명', name: 'name', headerAlign: 'left' },
{ header: '모델 Data 구분', name: 'type', headerAlign: 'left' }
],
data: dataPathDataExample,
defaultRow: dataPathDataExample,
option: {}
}
},
}; };
}, },
computed: { computed: {

View File

@ -470,6 +470,7 @@ const defaultData = {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep {
.selectbox:focus { .selectbox:focus {
outline: none; outline: none;
} }
@ -509,6 +510,10 @@ select.selectbox {
/* 네이티브 외형 감추기 */ /* 네이티브 외형 감추기 */
-moz-appearance: auto; -moz-appearance: auto;
appearance: auto; appearance: auto;
background: #fff;
border: 1px solid #d9d9d9;
border-radius: 6px;
color: rgba(0,0,0,0.87843);
} }
.tui-grid-layer-editing { .tui-grid-layer-editing {
@ -534,7 +539,7 @@ select.selectbox {
// box-sizing: border-box; // box-sizing: border-box;
} }
::v-deep {
.custom-vc-calender { .custom-vc-calender {
.vc-header { .vc-header {
display: none; display: none;

View File

@ -60,17 +60,23 @@
</v-col> </v-col>
</v-row> </v-row>
<v-row ref="contents" class="pt-3"> <v-row ref="contents" class="pt-3">
<v-col :cols="12" style="height: 100%"> <v-col :cols="12" >
<v-card class="pb-5"> <v-card class="pb-5">
<div class="d-flex align-center justify-space-between pa-4"> <div class="d-flex align-center justify-space-between pa-4">
<v-card-title class="pa-0">설비별 현황 리스트</v-card-title> <v-card-title class="pa-0">설비별 현황 리스트</v-card-title>
</div> </div>
<div class="px-4" style="height:calc(100% - 76px)"> <div class="px-4" >
<div ref="gridParent" class="w100 h100"> <div ref="gridParent" class="w100 h100 enrg-effc">
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" <component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName"
:parentPrgmId="myPrgmId" :columnClickEventFlag="true" @columnClick="columnClick" /> :parentPrgmId="myPrgmId" :columnClickEventFlag="true" @columnClick="columnClick" />
<div class="d-flex align-center justify-center pa-5 pb-0" v-if="loadGrid && totalCount > 0">
<pagination id="pagination" :total-count="totalCount" :page-num="page" :limit="limit"
@loadData="changeGrid" />
</div> </div>
</div> </div>
</div>
</v-card> </v-card>
</v-col> </v-col>
</v-row> </v-row>
@ -92,6 +98,7 @@ import Datepicker from '~/components/common/Datepicker';
import EqpmSelectPop from '~/components/common/modal/EqpmSelectPop'; import EqpmSelectPop from '~/components/common/modal/EqpmSelectPop';
import EnrgEffcEqpmDetailPop from '~/components/common/modal/EnrgEffcEqpmDetailPop'; import EnrgEffcEqpmDetailPop from '~/components/common/modal/EnrgEffcEqpmDetailPop';
import EnrgEffcGdIdxDetPop from '~/components/common/modal/EnrgEffcGdIdxDetPop'; import EnrgEffcGdIdxDetPop from '~/components/common/modal/EnrgEffcGdIdxDetPop';
import pagination from '~/components/common/Pagination';
let myTitle; let myTitle;
let myPrgmId; let myPrgmId;
@ -124,6 +131,7 @@ export default {
EnrgEffcEqpmDetailPop, EnrgEffcEqpmDetailPop,
EqpmSelectPop, EqpmSelectPop,
EnrgEffcGdIdxDetPop, EnrgEffcGdIdxDetPop,
pagination
}, },
data() { data() {
return { return {
@ -149,7 +157,12 @@ export default {
eqpmGrpFlag: false, eqpmGrpFlag: false,
eqpmGdIdxFlag: false, eqpmGdIdxFlag: false,
fabFlag: false, fabFlag: false,
itemsPerPage: 10,
itemsPerPageArray: [10, 20, 30],
limit: 20,
page: 1,
routeData: {}, routeData: {},
totalCount: 0,
}; };
}, },
computed: { computed: {
@ -377,6 +390,7 @@ export default {
resKey: 'eqpmKindCodeLists', resKey: 'eqpmKindCodeLists',
sendParam: {}, sendParam: {},
}); });
if (res.length > 0) { if (res.length > 0) {
this.selectValueList01 = await res.map(item => { this.selectValueList01 = await res.map(item => {
return { return {
@ -680,9 +694,29 @@ export default {
fabId: this.selectValue02, fabId: this.selectValue02,
eqpmKindId: this.selectValue01, eqpmKindId: this.selectValue01,
okFg: this.selectValue06, okFg: this.selectValue06,
limit: this.limit,
page: this.page,
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
}, },
}); });
const res2 = await this.postApiReturn({
apiKey: 'selectEnrgEffcEqpmDetlMntrPageTotal',
resKey: 'eqpmDetlDataPageTotal',
sendParam: {
eqpmId: this.selectValue04.eqpmId,
eqpmGrpId: this.selectValue03,
fromDt: this.pageData.fromDt,
toDt: this.pageData.toDt,
gdIdxId: this.selectValue05,
fabId: this.selectValue02,
eqpmKindId: this.selectValue01,
okFg: this.selectValue06,
},
});
this.totalCount = res2[0]?.totalcount;
this.setGridData({ this.setGridData({
gridKey: this.gridName, gridKey: this.gridName,
value: res, value: res,
@ -722,6 +756,12 @@ export default {
}); });
} }
}, },
changeGrid: async function (pageNum, limit) {
this.page = pageNum;
this.limit = limit;
this.search();
},
}, },
}; };

View File

@ -943,6 +943,8 @@ const INIT_URL_STATE = {
//prgmId : PRG0084 설비별 운전가이드 //prgmId : PRG0084 설비별 운전가이드
selectEqpmCodeList: 'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEqpmCodeList', selectEqpmCodeList: 'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEqpmCodeList',
selectEnrgEffcEqpmDetlMntr:'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEnrgEffcEqpmDetlMntr', selectEnrgEffcEqpmDetlMntr:'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEnrgEffcEqpmDetlMntr',
selectEnrgEffcEqpmDetlMntrPageTotal:
'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEnrgEffcEqpmDetlMntrPageTotal', // 일일검침정보
selectEqpmDetailPop: 'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEqpmDetailPop', selectEqpmDetailPop: 'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEqpmDetailPop',
selectEnrgEffcGdIdxDetPop : 'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEnrgEffcGdIdxDetPop', selectEnrgEffcGdIdxDetPop : 'ems/effc/EnrgEffcEqpmDetlMntrCtr/selectEnrgEffcGdIdxDetPop',