Compare commits

...

3 Commits

9 changed files with 211 additions and 1221 deletions

View File

@ -1,19 +1,26 @@
<template>
<h1 class="h1-title">
<v-avatar size="12" :style="{ backgroundColor: 'currentColor' }"></v-avatar>
{{ text }}
{{ text ? text : menuNm}}
</h1>
</template>
<script>
import { mapState } from 'vuex';
export default {
name: "PageTitle",
props: {
text: {
type: String,
required: true,
required: false,
},
},
computed: {
...mapState({
menuNm: state => state.activeMenuInfo.menuNm,
}),
}
};
</script>

View File

@ -124,7 +124,7 @@ export default {
return {
dialog: false,
loadGrid: true,
loadGrid: false,
grid_01: 'grid_01',
myModalKey: 'evtObjPop',
modalDataKey: 'modalData2',
@ -165,35 +165,6 @@ export default {
computed: {
...mapState({
searchParam(state) {
const myOptions = {
columnOptions: {
resizable: true,
},
treeColumnOptions: {
name: 'readPlcNm', // Showing tree table
useIcon: false, // Not using icon
indentWidth: 10,
},
};
const dataPathMock = {
'grid_01': {
column: [
{ header: '검침개소명', name: 'readPlcNm', align: 'left', minWidth: 400, },
{ header: '검침개소', name: 'plcKind', minWidth: 100, align: 'center', },
// {
// header: '사용 여부', name: 'useFg', minWidth: 100, align: 'center',
// },
],
data: sampleData,
option: myOptions
}
};
return {
modalData2: {
evtObjPop: dataPathMock
}
}
// end test
return state.pageData[this.parentPrgmId];
},
myBindingData(state) {
@ -277,6 +248,9 @@ export default {
columnOptions: {
resizable: true,
},
header: {
height: 38,
},
};
this.setModalGridOption({
modalKey: this.myModalKey,
@ -300,7 +274,7 @@ export default {
});
},
async getGridData() {
// this.loadGrid = false;
this.loadGrid = false;
const res = await this.postApiReturn({
apiKey: 'selectTagBaseInfo',
@ -376,7 +350,6 @@ export default {
// this.dialog = false;
// return;
// }
console.log("this.dialog: ", this.dialog);
this.dialog = !val;
},
},
@ -389,50 +362,6 @@ var evtObjPop = {
option: {},
},
};
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: '미사용',
},
];
</script>
<style lang="scss" scoped>

View File

@ -22,7 +22,6 @@
:editorGrid="true"
:innerTabGridInfo="innerTabGridInfo"
@getRowsData="getRowData"
:dataPath="dataPathMock"
/>
</div>
</v-card-actions>
@ -51,22 +50,10 @@ export default {
},
data() {
return {
loadGrid: true,
loadGrid: false,
gridName: 'rowDetailGrid',
rowKey: null,
edtingFinishFlag: 'Y',
dataPathMock: {
"rowDetailGrid": {
column: [
{header: '추가 정보',name: 'addInfoId'},
{header: 'Data 구분',name: 'addInfoDataKind',align: 'center'},
{header: '추가 정보 값',name: 'addInfoVal',align: 'center', renderer: {type: NewCustomRenderer},editor: {type: NewCustomEditor},formatter(data) {return data.row.addInfoDataKind;},}
],
data: dataPathDataExample,
option: {
}
}
},
};
},
computed: {
@ -444,37 +431,4 @@ export default {
search() {},
},
};
const dataPathDataExample =
[
{
addInfoId:"경보 여부",
addInfoDataKind:"FG",
addInfoVal:"1"
},
{
addInfoId:"예상 피크전력 여부",
addInfoDataKind:"FG",
addInfoVal:"0"
},
{
addInfoId:"피크전력 여부",
addInfoDataKind:"FG",
addInfoVal:"1"
},
{
addInfoId:"TAG 채널",
addInfoDataKind:"숫자",
addInfoVal:"채널"
},
{
addInfoId:"PLC IP",
addInfoDataKind:"문자",
addInfoVal:"채널"
},
{
addInfoId:"PLC 포트",
addInfoDataKind:"숫자",
addInfoVal:"채널"
},
]
</script>

View File

@ -444,80 +444,71 @@ export default {
activeTree: {
deep: true,
handler(newVal, oldVal) {
var _this = this;
const nv = newVal[0];
const ov = oldVal[0];
if (nv !== ov) {
if (!nv) {
// 중복클릭 시 발생 상황 기존 값을 다시 넣어줌
this.activeTree.push(ov);
} else {
this.myPrgmId = nv;
console.log("menu:", this.menuData);
if (this.menuData[nv].url) {
const menuUrl = this.menuData[nv].url;
const menuId = this.menuData[nv].menuId;
var _this = this;
const nv = newVal[0];
const ov = oldVal[0];
if (nv !== ov) {
if (!nv) {
// 중복클릭 시 발생 상황 기존 값을 다시 넣어줌
this.activeTree.push(ov);
} else {
this.myPrgmId = nv;
if (this.menuData[nv].url) {
const menuUrl = this.menuData[nv].url;
const menuId = this.menuData[nv].menuId;
const isCommMenu = menuUrl.indexOf("comm/");
const isEmsMenu = menuUrl.indexOf("ems/");
const isCmmsMenu = menuUrl.indexOf("cmms/");
const isCommMenu = menuUrl.indexOf('comm/');
const isEmsMenu = menuUrl.indexOf('ems/');
const isCmmsMenu = menuUrl.indexOf('cmms/');
// console.log('activeTree...');
console.log(isEmsMenu);
// console.log('activeTree...');
if (isCommMenu > -1 || isEmsMenu > -1 || isCmmsMenu > -1) {
// console.log('activeTree if stmt1');
// console.log('this.isLoading : ', this.isLoading);
// if(this.isLoading == true){
// console.log('if isLoading stmt1');
// return;
// }
console.log("this:", this.menuData[nv].url);
this.$router.push({
path: `/${this.menuData[nv].url}?prgmId=${nv}`,
});
// this.$router.replace("/").then(() => {
// alert("hihi");
// this.$router.push({
// path: `${this.menuData[nv].url}?prgmId=${nv}`,
// });
// });
// this.$router.beforeEach((to, from, next) => {
// if(_this.isLoading == true){
// next(false);
// }
// if (!to.matched.length) {
// next(false);
// } else {
// next();
// }
// });
var tmp = 0;
for (var i = 0; i < this.myMenuList.length; i++) {
if (this.myMenuList[i].menuId == menuId) {
tmp = 1;
}
}
this.bookmarkBtn = tmp;
} else {
// console.log('activeTree if stmt2');
// console.log('this.isLoading : ', this.isLoading);
// if(this.isLoading == true){
// console.log('if isLoading stmt2');
// return;
// }
this.$refs.routerTab.openIframe(
encodeURI(`http://localhost:9999${this.menuData[nv].url}?prgmId=${nv}`),
this.menuData[nv].menuNm
);
}
this.$axios.get(`${this.menuData[nv].url}?$menuId=${menuId}`);
} else alert("지정된 페이지 경로가 없습니다.");
}
}
},
if (isCommMenu > -1 || isEmsMenu > -1 || isCmmsMenu > -1) {
// console.log('activeTree if stmt1');
// console.log('this.isLoading : ', this.isLoading);
// if(this.isLoading == true){
// console.log('if isLoading stmt1');
// return;
// }
this.$router.push({
path: `${this.menuData[nv].url}?prgmId=${nv}`,
});
// this.$router.beforeEach((to, from, next) => {
// if(_this.isLoading == true){
// next(false);
// }
// if (!to.matched.length) {
// next(false);
// } else {
// next();
// }
// });
var tmp = 0;
for (var i = 0; i < this.myMenuList.length; i++) {
if (this.myMenuList[i].menuId == menuId) {
tmp = 1;
}
}
this.bookmarkBtn = tmp;
} else {
// console.log('activeTree if stmt2');
// console.log('this.isLoading : ', this.isLoading);
// if(this.isLoading == true){
// console.log('if isLoading stmt2');
// return;
// }
this.$refs.routerTab.openIframe(
encodeURI(
`http://localhost:9999${this.menuData[nv].url}?prgmId=${nv}`,
),
this.menuData[nv].menuNm,
);
}
this.$axios.get(`${this.menuData[nv].url}?$menuId=${menuId}`);
} else alert('지정된 페이지 경로가 없습니다.');
}
}
},
},
menuData: {
deep: true,

View File

@ -1,19 +1,13 @@
<template>
<div ref="mainDiv" class="l-layout">
<PageTitle/>
<v-row ref="searchFilter">
<v-col :cols="12">
<v-card class="searchFilter">
<v-row align="end" no-gutters>
<v-col :cols="5">
<InputText
:parentPrgmId="myPrgmId"
label="설비종류명"
valueNm="eqpmKindNm"
:searchOption="true"
:textCols="12"
:labelCols="12"
customClass="input-large"
/>
<InputText :parentPrgmId="myPrgmId" label="설비종류명" valueNm="eqpmKindNm" :searchOption="true"
:textCols="12" :labelCols="12" customClass="input-large" />
</v-col>
<v-col :cols="7" class="text-right">
<BtnSearch @click="search" size="large" />
@ -25,41 +19,27 @@
<v-row ref="contents">
<v-col :cols="5" class="h100">
<v-card class="pb-5">
<div class="d-flex align-center justify-space-between pa-5">
<div class="d-flex align-center justify-space-between pa-4" style="padding-bottom: 30px !important;">
<v-card-title class="pa-0">설비종류</v-card-title>
<Buttons
:parentPrgmId="myPrgmId"
:bindingData="gridName"
:btnActionsFnc="btnActions"
/>
<Buttons :parentPrgmId="myPrgmId" :bindingData="gridName" :btnActionsFnc="btnActions" />
</div>
<div class="h100 px-5" style="height:calc(100% - 70px)">
<div ref="gridParent" class="w100 h100">
<component
:ref="gridName"
:is="loadGrid ? 'Grid' : null"
:gridName="gridName"
:parentPrgmId="myPrgmId"
@getRowsData="getRowData"
:preventFocusChangeEventFlag="false"
:dataPath="dataPathMock"
/>
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName"
:parentPrgmId="myPrgmId" @getRowsData="getRowData"
:preventFocusChangeEventFlag="false" />
</div>
</div>
</v-card>
</v-col>
<v-col :cols="7" class="h100">
<v-card class="pb-5">
<div class="d-flex align-center justify-space-between pa-5">
<div class="d-flex align-center justify-space-between pa-4" style="padding-bottom: 30px !important;">
<v-card-title class="pa-0">설비종류 상세</v-card-title>
</div>
<div class="px-5" style="height:calc(100% - 76px)">
<component
:is="'Form'"
:parentPrgmId="myPrgmId"
:detailList="detailList"
@gridEditingFinish="gridEditingFinish"
/>
<component :is="'Form'" :parentPrgmId="myPrgmId" :detailList="detailList"
@gridEditingFinish="gridEditingFinish" />
</div>
</v-card>
</v-col>
@ -78,6 +58,8 @@ import Form from '~/components/common/form/Form';
import Grid from '~/components/common/Grid';
import Utility from '~/plugins/utility';
import SelectBox from '@/components/common/select/SelectBox';
import PageTitle from "~/components/common/PageTitle";
let myTitle;
// const myPrgmId = "PRG0013";
let myPrgmId;
@ -108,6 +90,7 @@ export default {
Grid,
Utility,
SelectBox,
PageTitle,
},
data() {
return {
@ -118,21 +101,6 @@ export default {
detailList: myDetail,
selectValueList01: [],
selectValue01: null,
dataPathMock: {
'eqpmKindGrid': {
column: [
{ header: '설비종류ID', name: 'eqpmKindId', headerAlign: 'center' },
{ header: '설비종류명', name: 'eqpmKindNm', headerAlign: 'left' },
{ header: '등록자NO', name: 'regUserNo', hidden: true},
{ header: '등록일시', name: 'regDttm', hidden: true },
{ header: '수정자NO', name: 'procUserNo', hidden: true },
{ header: '수정일시', name: 'procDttm', hidden: true}
],
data: dataPathDataExample,
defaultRow: dataPathDataExample,
option: {}
}
},
};
},
computed: {
@ -164,7 +132,7 @@ export default {
defaultData: defaultData,
});
},
created() {},
created() { },
mounted() {
this.gridInit();
// this.init();
@ -184,6 +152,8 @@ export default {
const myOptions = {
columnOptions: {
resizable: true,
}, header: {
height: 38,
},
};
this.setGridOption({
@ -255,12 +225,12 @@ export default {
//rowKey: 0,
rowKey:
this.pageData.rowGridSelectKey == '' ||
this.pageData.rowGridSelectKey == null
this.pageData.rowGridSelectKey == null
? 0
: this.pageData.rowGridSelectKey ==
this.$refs[this.gridName].getData().length - 1
? this.pageData.rowGridSelectKey
: 0,
this.$refs[this.gridName].getData().length - 1
? this.pageData.rowGridSelectKey
: 0,
setScroll: true,
});
}
@ -398,7 +368,7 @@ const myDetail = [
textCols: 12,
},
{
type: 'InputTextReg',
type: 'InputText',
label: '설비종류명',
valueNm: 'eqpmKindNm',
disabled: false,
@ -458,14 +428,4 @@ const myDetail = [
textCols: 12,
},
];
import { getPathDataExample } from '@/const/const'
const dataPathDataExample = getPathDataExample({
eqpmKindId: 'EKIND0005',
eqpmKindNm: 'VCB',
regUserNo: '사용',
regDttm: 'EQP_HVAC_LT_CH001',
procUserNo: '사용',
procDttm: 'EQP_HVAC_LT_CH001',
});
</script>

View File

@ -1,41 +1,23 @@
<template>
<div ref="mainDiv" class="l-layout">
<PageTitle />
<v-row ref="searchFilter">
<v-col :cols="12">
<v-card class="searchFilter">
<v-row align="end" no-gutters>
<v-col :cols="3">
<component
:is="'selectCodeList'"
:parentPrgmId="myPrgmId"
:label="'사용여부'"
dataKey="useFg"
:sendParam="{ commGrpCd: 'CO_USEFG', useFg: '1' }"
:addAll="true"
customClass="select-large"
/>
<component :is="'selectCodeList'" :parentPrgmId="myPrgmId" :label="'사용여부'" dataKey="useFg"
:sendParam="{ commGrpCd: 'CO_USEFG', useFg: '1' }" :addAll="true"
customClass="select-large" />
</v-col>
<v-col :cols="3">
<component
:is="'SelectBox'"
ref="SelectBox1"
:propsValue="selectValue01"
:itemList="selectValueList01"
:label="'설비종류'"
@update:propsValue="selectValue01 = $event"
customClass="select-large"
/>
<component :is="'SelectBox'" ref="SelectBox1" :propsValue="selectValue01"
:itemList="selectValueList01" :label="'설비종류'"
@update:propsValue="selectValue01 = $event" customClass="select-large" />
</v-col>
<v-col :cols="3">
<InputText
:parentPrgmId="myPrgmId"
label="설비 그룹 명"
valueNm="eqpmGrpNm"
:searchOption="true"
:textCols="12"
:labelCols="12"
customClass="input-large"
/>
<InputText :parentPrgmId="myPrgmId" label="설비 그룹 명" valueNm="eqpmGrpNm" :searchOption="true"
:textCols="12" :labelCols="12" customClass="input-large" />
</v-col>
<v-col :cols="3" class="text-right">
<BtnSearch @click="search" size="large" />
@ -47,41 +29,28 @@
<v-row ref="contents">
<v-col :cols="5" class="h100">
<v-card class="pb-5">
<v-card-title class="d-flex justify-space-between align-end">
<span class="tit ft-size_20 ft-weight_600">설비 그룹</span>
<Buttons
:parentPrgmId="myPrgmId"
:bindingData="gridName"
:btnActionsFnc="btnActions"
/>
</v-card-title>
<div class="d-flex align-center justify-space-between pa-4"
style="padding-bottom: 30px !important;">
<v-card-title class="pa-0">설비 그룹</v-card-title>
<Buttons :parentPrgmId="myPrgmId" :bindingData="gridName" :btnActionsFnc="btnActions" />
</div>
<div class="h100 px-5" style="height:calc(100% - 70px)">
<div ref="gridParent" class="w100 h100">
<component
:ref="gridName"
:is="loadGrid ? 'Grid' : null"
:gridName="gridName"
:parentPrgmId="myPrgmId"
@getRowsData="getRowData"
:dataPath="dataPathMock"
/>
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName"
:parentPrgmId="myPrgmId" @getRowsData="getRowData" />
</div>
</div>
</v-card>
</v-col>
<v-col :cols="7" class="h100">
<v-card class="pb-5">
<div class="d-flex align-center justify-space-between pa-5">
<div class="d-flex align-center justify-space-between pa-4"
style="padding-bottom: 30px !important;">
<v-card-title class="pa-0">설비 그룹 상세</v-card-title>
</div>
<div class="px-5" style="height:calc(100% - 76px)">
<component
:is="'Form'"
:parentPrgmId="myPrgmId"
:detailList="detailList"
@gridEditingFinish="gridEditingFinish"
/>
<component :is="'Form'" :parentPrgmId="myPrgmId" :detailList="detailList"
@gridEditingFinish="gridEditingFinish" />
</div>
</v-card>
</v-col>
@ -100,6 +69,8 @@ import Form from '~/components/common/form/Form';
import Grid from '~/components/common/Grid';
import Utility from '~/plugins/utility';
import SelectBox from '@/components/common/select/SelectBox';
import PageTitle from "~/components/common/PageTitle";
let myTitle;
// const myPrgmId = "PRG0013";
let myPrgmId;
@ -130,34 +101,17 @@ export default {
Grid,
Utility,
SelectBox,
PageTitle,
},
data() {
return {
myPrgmId: myPrgmId,
gridName: 'rowGrid',
loadGrid: true,
loadGrid: false,
tab: null,
detailList: myDetail,
selectValueList01: [],
selectValue01: null,
dataPathMock: {
'rowGrid': {
column: [
{ header: '회사 ID', name: 'comId', hidden: true },
{ header: '설비 그룹 ID', name: 'eqpmGrpId'},
{ header: '설비 그룹 명', name: 'eqpmGrpNm'},
{ header: '설비종류', name: 'eqpmKindId'},
{ header: '사용여부', name: 'useFg'},
{ header: '등록자NO', name: 'regUserNo', hidden: true},
{ header: '등록일시', name: 'regDttm', hidden: true },
{ header: '수정자NO', name: 'procUserNo', hidden: true },
{ header: '수정일시', name: 'procDttm', hidden: true}
],
data: dataPathDataExample,
defaultRow: dataPathDataExample,
options:{}
}
},
};
},
computed: {
@ -203,7 +157,7 @@ export default {
defaultData: defaultData,
});
},
created() {},
created() { },
mounted() {
this.setSelectValueList01();
// if (this.loadFlag) {
@ -252,12 +206,15 @@ export default {
}
},
gridInit() {
const gridHeight = this.$refs.gridParent.offsetHeight - 70;
const gridHeight = this.$refs.gridParent.offsetHeight - 30;
const myOptions = {
columnOptions: {
resizable: true,
},
header: {
height: 38,
},
};
this.setGridOption({
gridKey: this.gridName,
@ -365,12 +322,12 @@ export default {
//rowKey: 0,
rowKey:
this.pageData.rowGridSelectKey == '' ||
this.pageData.rowGridSelectKey == null
this.pageData.rowGridSelectKey == null
? 0
: this.pageData.rowGridSelectKey ==
this.$refs[this.gridName].getData().length - 1
? this.pageData.rowGridSelectKey
: 0,
this.$refs[this.gridName].getData().length - 1
? this.pageData.rowGridSelectKey
: 0,
setScroll: true,
});
}
@ -512,7 +469,7 @@ const myDetail = [
placeholder: '시스템 자동입력',
},
{
type: 'InputTextReg',
type: 'InputText',
label: '설비 그룹 명',
valueNm: 'eqpmGrpNm',
disabled: false,
@ -600,18 +557,4 @@ const myDetail = [
textCols: 12,
},
];
import { getPathDataExample } from '@/const/const'
const dataPathDataExample = getPathDataExample({
comId: 'EKIND0005',
eqpmGrpId: 'EQG000010',
eqpmGrpNm:'냉수파이프고온',
eqpmKindId:'냉동파이프',
useFg:'1',
regUserNo: '사용',
regDttm: 'EQP_HVAC_LT_CH001',
procUserNo: '사용',
procDttm: 'EQP_HVAC_LT_CH001',
});
</script>

View File

@ -73,10 +73,8 @@
:is="loadGrid ? 'Grid' : null"
:gridName="gridName"
:parentPrgmId="myPrgmId"
:dataPath="dataPathMock"
/>
</div>
</v-card>
</v-col>
</v-row>
@ -154,53 +152,6 @@ export default {
required: false,
formFg: false,
},
dataPathMock: {
"rowGrid": {
column: [
{
header: 'TAG ID',
name: 'tagId',
minWidth: 500,
},
{
header: 'TAG명',
name: 'tagNm',
},
{
header: '대상일시',
name: 'readDttm',
align:"center",
width: 200,
},
{
header: '값',
name: 'readVal',
width: 100,
align:"center"
},
{
header: '취득일시',
name: 'regDttm',
width: 200,
align:"center"
},
{
header: '적재일시',
name: 'procDttm',
width: 200,
align:"center"
},
],
data: dataPathDataExample,
defaultRow: dataPathDataExample,
option: {
pageOptions: {
useClient: true,
perPage: 10,
},
}
}
},
};
},
computed: {
@ -316,13 +267,15 @@ export default {
columnOptions: {
resizable: true,
},
header: {
height: 38,
},
};
this.setGridOption({
gridKey: this.gridName,
value: Object.assign(Utility.defaultGridOption(gridHeight), myOptions),
});
let myColumns = [
{
header: 'TAG ID',
@ -569,13 +522,4 @@ const defaultData = {
},
},
};
import { getPathDataExample } from '@/const/const'
const dataPathDataExample = getPathDataExample({
"tagId": "ICHEON.ELEC.EQID101.VCB_111A_ACC_WH_PV",
"tagNm": "ICHEON VCB_111A 적산 전력",
"readDttm": "2023-01-10 00:00:00",
"readVal": "581.27",
"regDttm": "2023-01-09 15:03:08",
"procDttm": "2023-01-10 00:03:09",
});
</script>

View File

@ -1,80 +1,40 @@
<template>
<div class="l-layout">
<PageTitle/>
<v-row ref="searchFilter">
<v-col :cols="12">
<v-card class="searchFilter">
<v-row align="center" no-gutters>
<v-col :cols="3">
<!-- 사업장 -->
<component
:is="'SelectBlocMstr'"
ref="SelectBlocMstr"
:parentPrgmId="myPrgmId"
:textCols="12"
customClass="select-large"
/>
<component :is="'SelectBlocMstr'" ref="SelectBlocMstr" :parentPrgmId="myPrgmId"
:textCols="12" customClass="select-large" />
</v-col>
<v-col :cols="3">
<component
:is="'selectCodeList'"
:parentPrgmId="myPrgmId"
:label="'측정 Data 유형'"
dataKey="searchReadDataType"
:sendParam="{ commGrpCd: 'EM_READ_DATA_TYPE', useFg: '1' }"
:addAll="true"
:textCols="12"
customClass="select-large"
/>
<component :is="'selectCodeList'" :parentPrgmId="myPrgmId" :label="'측정 Data 유형'"
dataKey="searchReadDataType" :sendParam="{ commGrpCd: 'EM_READ_DATA_TYPE', useFg: '1' }"
:addAll="true" :textCols="12" customClass="select-large" />
</v-col>
<v-col :cols="3">
<component
:is="'SelectReadObj'"
:parentPrgmId="myPrgmId"
:label="'측정대상'"
dataKey="searchReadObj"
:sendParam="{ useFg: '1' }"
:labelCols="12"
:textCols="12"
:addAll="true"
customClass="select-large"
/>
<component :is="'SelectReadObj'" :parentPrgmId="myPrgmId" :label="'측정대상'"
dataKey="searchReadObj" :sendParam="{ useFg: '1' }" :labelCols="12" :textCols="12"
:addAll="true" customClass="select-large" />
</v-col>
</v-row>
<v-row align="end" no-gutters>
<v-col :cols="3">
<component
:is="'selectCodeList'"
:parentPrgmId="myPrgmId"
:label="'사용여부'"
dataKey="useFg"
:sendParam="{ commGrpCd: 'CO_USEFG', useFg: '1' }"
:addAll="true"
:textCols="12"
customClass="select-large"
/>
<component :is="'selectCodeList'" :parentPrgmId="myPrgmId" :label="'사용여부'" dataKey="useFg"
:sendParam="{ commGrpCd: 'CO_USEFG', useFg: '1' }" :addAll="true" :textCols="12"
customClass="select-large" />
</v-col>
<v-col :cols="3">
<InputText
:parentPrgmId="myPrgmId"
label="TAG ID"
valueNm="tagId"
:labelCols="12"
:textCols="12"
:searchOption="true"
customClass="input-large"
/>
<InputText :parentPrgmId="myPrgmId" label="TAG ID" valueNm="tagId" :labelCols="12"
:textCols="12" :searchOption="true" customClass="input-large" />
</v-col>
<v-col :cols="3">
<InputText
:parentPrgmId="myPrgmId"
label="TAG명"
valueNm="tagNm"
:labelCols="12"
:textCols="12"
:searchOption="true"
customClass="input-large"
/>
<InputText :parentPrgmId="myPrgmId" label="TAG명" valueNm="tagNm" :labelCols="12"
:textCols="12" :searchOption="true" customClass="input-large" />
</v-col>
<v-col :cols="3" class="d-flex align-end justify-end text-right">
<BtnSearch @click="search" size="large" />
@ -88,29 +48,14 @@
<v-card class="pb-5">
<v-card-title class="d-flex justify-space-between align-end">
<span class="tit ft-size_20 ft-weight_600">TAG 정보</span>
<Buttons
:parentPrgmId="myPrgmId"
:bindingData="gridName"
:detailList="detailList"
:btnActionsFnc="btnActions"
/>
<Buttons :parentPrgmId="myPrgmId" :bindingData="gridName" :detailList="detailList"
:btnActionsFnc="btnActions" />
</v-card-title>
<v-card-actions>
<div
ref="gridParent"
class="w100"
style="height: calc(100vh - 400px)"
>
<component
:ref="gridName"
:is="loadGrid ? 'Grid' : null"
:gridName="gridName"
:parentPrgmId="myPrgmId"
@getRowsData="getRowData"
@sendSelectedRowStatInfo="getSelectedRowStatInfo"
:selectedRowDataWatchFlag="true"
:dataPath="dataPathMock"
/>
<div ref="gridParent" class="w100" style="height: calc(100vh - 400px)">
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName"
:parentPrgmId="myPrgmId" @getRowsData="getRowData"
@sendSelectedRowStatInfo="getSelectedRowStatInfo" :selectedRowDataWatchFlag="true" />
</div>
</v-card-actions>
<!-- <div class="d-flex align-center justify-space-between">
@ -129,32 +74,16 @@
<v-card-title>TAG 상세</v-card-title>
<div class="px-5" style="height:calc(100% - 70px)">
<v-tabs v-model="tab">
<v-tab
v-for="item in items"
:key="item.id"
:disabled="item.disabledFlag"
>
<v-tab v-for="item in items" :key="item.id" :disabled="item.disabledFlag">
{{ item.name }}
</v-tab>
</v-tabs>
<v-tabs-items
v-model="tab"
style="height: calc(100% - 65px);"
class="py-6"
>
<v-tabs-items v-model="tab" style="height: calc(100% - 65px);" class="py-6">
<v-tab-item v-for="(item, idx) in items" :key="item.id">
<component
v-if="item.id == 'tagBaseInfoTab'"
:is="'Form'"
:parentPrgmId="myPrgmId"
:detailList="detailList"
@gridEditingFinish="gridEditingFinish"
/>
<TagAddInfoTab
v-if="item.id == 'tagAddInfoTab'"
:parentPrgmId="myPrgmId"
:innerTabGridInfo="{ tab, idx }"
/>
<component v-if="item.id == 'tagBaseInfoTab'" :is="'Form'" :parentPrgmId="myPrgmId"
:detailList="detailList" @gridEditingFinish="gridEditingFinish" />
<TagAddInfoTab v-if="item.id == 'tagAddInfoTab'" :parentPrgmId="myPrgmId"
:innerTabGridInfo="{ tab, idx }" />
</v-tab-item>
</v-tabs-items>
</div>
@ -166,7 +95,7 @@
<script>
import { mapState, mapMutations, mapActions } from 'vuex';
import mixinGlobal from '@/mixin/global.js';
import { resize } from '@/mixin/resize.js';
import { resize } from '@/mixin/resize.js';
import BtnSearch from '~/components/common/button/BtnSearch';
import Buttons from '~/components/common/button/Buttons';
import SelectBlocMstr from '@/components/common/select/SelectBlocMstr';
@ -178,12 +107,13 @@ import TagAddInfoTab from '@/components/pages/ems/TagInfo/TagAddInfoTab';
import Grid from '~/components/common/Grid';
import Utility from '~/plugins/utility';
import pagination from '~/components/Pagination';
import PageTitle from "~/components/common/PageTitle";
let myTitle;
// const myPrgmId = "PRG0051";
let myPrgmId;
export default {
mixins: [mixinGlobal,resize],
mixins: [mixinGlobal, resize],
async asyncData(context) {
const myState = context.store.state;
// context.store.commit("setActiveMenuInfo", myState.menuData[myPrgmId]);
@ -210,6 +140,7 @@ export default {
TagAddInfoTab,
Grid,
pagination,
PageTitle
},
data() {
return {
@ -223,123 +154,11 @@ export default {
],
detailList: myDetail,
alrmFg: null,
dataPathMock: {
"rowGrid": {
column: [
{ header: '회사 ID', name: 'comId', hidden: true },
{
header: 'TAG ID',
name: 'tagId',
width: 'auto',
minWidth: 340,
align: 'left',
},
{
header: 'TAG 명',
name: 'tagNm',
width: 'auto',
minWidth: 220,
align: 'left',
},
{
header: '측정 값 유형',
name: 'readDataTypeCd',
width: 90,
align: 'left',
},
{
header: '측정대상',
name: 'readObjId',
width: 100,
align: 'left',
},
{ header: '배율', name: 'mgnf', width: 80, align: 'right' },
{
header: '단위',
name: 'unitCd',
width: 80,
align: 'left',
},
{
header: '최소값',
name: 'rangMin',
width: 100,
align: 'right',
hidden: true,
},
{
header: '최대값',
name: 'rangMax',
width: 100,
align: 'right',
hidden: true,
},
{
header: '경고 상상',
name: 'alrmHihi',
width: 100,
align: 'right',
hidden: true,
},
{
header: '경고 상',
name: 'alrmHi',
width: 100,
align: 'right',
hidden: true,
},
{
header: '경고 하',
name: 'alrmLo',
width: 100,
align: 'right',
hidden: true,
},
{
header: '경고 하하',
name: 'alrmLolo',
width: 100,
align: 'right',
hidden: true,
},
{
header: '사업장',
name: 'blocId',
width: 100,
align: 'center',
hidden: true,
},
{
header: '집계 여부',
name: 'totFg',
width: 80,
align: 'center',
hidden: true,
},
{
header: '사용 여부',
name: 'useFg',
width: 80,
align: 'center',
hidden: true,
},
],
data: dataPathDataExample,
defaultRow: dataPathDataExample,
option: {
pageOptions: {
useClient: true,
perPage: 10,
},
scrollX: true
}
}
},
// itemsPerPage: 10,
// itemsPerPageArray: [10, 20, 30],
// limit: 20,
// page: 1,
// totalCount: 0,
itemsPerPage: 10,
itemsPerPageArray: [10, 20, 30],
limit: 20,
page: 1,
totalCount: 0,
};
},
computed: {
@ -456,12 +275,20 @@ export default {
this.gridInit();
},
gridInit() {
const gridHeight = this.$refs.gridParent.offsetHeight - 16;
const gridHeight = this.$refs.gridParent.offsetHeight - 180;
const myOptions = {
columnOptions: {
resizable: true,
},
pageOptions: {
useClient: true,
perPage: 10,
},
scrollX: true,
header: {
height: 38,
},
};
this.setGridOption({
gridKey: this.gridName,
@ -700,16 +527,16 @@ export default {
//rowKey: 0,
rowKey:
this.pageData.rowGridSelectKey == '' ||
this.pageData.rowGridSelectKey == null
this.pageData.rowGridSelectKey == null
? 0
: this.pageData.rowGridSelectKey ==
this.$refs[this.gridName].getData().length - 1
? this.pageData.rowGridSelectKey
: 0,
this.$refs[this.gridName].getData().length - 1
? this.pageData.rowGridSelectKey
: 0,
columnName: 'tagId',
setScroll: true,
});
} catch (error) {}
} catch (error) { }
// this.$refs[this.gridName].focus({
// rowKey: 0,
// columnName: "tagId",
@ -946,7 +773,7 @@ export default {
gridEditingFinish(data) {
this.$refs[this.gridName].editingFinish(data);
},
changeGrid: async function(pageNum, limit) {
changeGrid: async function (pageNum, limit) {
this.page = pageNum;
this.limit = limit;
@ -990,9 +817,9 @@ function isValidAlrmVal(obj) {
if (Number(obj[keyList[i]]) >= Number(obj[keyList[j]])) {
alert(
nameList[j] +
'값은 ' +
nameList[i] +
'값보다 큰 숫자를 입력해야 합니다.',
'값은 ' +
nameList[i] +
'값보다 큰 숫자를 입력해야 합니다.',
);
return false;
}
@ -1094,7 +921,7 @@ const myDetail = [
label: 'TAG ID',
valueNm: 'tagId',
disabled: false,
iconShow:true,
iconShow: true,
cols: 6,
class: 'py-2 pr-4',
required: false,
@ -1106,7 +933,7 @@ const myDetail = [
label: 'TAG 명',
valueNm: 'tagNm',
disabled: false,
iconShow:true,
iconShow: true,
cols: 6,
class: 'py-2 pl-4',
required: false,
@ -1118,7 +945,7 @@ const myDetail = [
label: '측정 값 유형',
valueNm: 'readDataTypeCd',
disabled: false,
iconShow:true,
iconShow: true,
cols: 6,
class: 'py-2 pr-4 pt-5',
list: 'readDataTypeCdList',
@ -1139,7 +966,7 @@ const myDetail = [
itemText: 'readObjNm',
itemValue: 'readObjId',
required: true,
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1151,7 +978,7 @@ const myDetail = [
cols: 6,
class: 'py-2 pr-4 pt-5',
required: true,
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1165,7 +992,7 @@ const myDetail = [
list: 'unitCdList',
itemText: 'commCdNm',
itemValue: 'commCd',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1176,7 +1003,7 @@ const myDetail = [
disabled: false,
cols: 6,
class: 'py-2 pr-4 pt-5',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1187,7 +1014,7 @@ const myDetail = [
disabled: false,
cols: 6,
class: 'py-2 pl-4 pt-5',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1198,7 +1025,7 @@ const myDetail = [
disabled: false,
cols: 6,
class: 'py-2 pr-4 pt-5',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1209,7 +1036,7 @@ const myDetail = [
disabled: false,
cols: 6,
class: 'py-2 pl-4 pt-5',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1220,7 +1047,7 @@ const myDetail = [
disabled: false,
cols: 6,
class: 'py-2 pr-4 pt-5',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1231,7 +1058,7 @@ const myDetail = [
disabled: false,
cols: 6,
class: 'py-2 pl-4 pt-5',
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1243,7 +1070,7 @@ const myDetail = [
cols: 6,
class: 'py-2 pr-4 pt-5',
value: { '1': true, '0': false },
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1256,7 +1083,7 @@ const myDetail = [
class: 'py-2 pl-4 pt-5',
value: { '1': true, '0': false },
required: false,
iconShow:true,
iconShow: true,
labelCols: 12,
textCols: 12,
},
@ -1285,25 +1112,4 @@ const myDetail = [
class: 'py-2',
},
];
import { getPathDataExample } from '@/const/const'
const dataPathDataExample = getPathDataExample({
"comId": "",
"tagId": "INCHEON.ELEC.EQID.VCB_111A_ACCWH_PV",
"tagNm": "ICHEON VCB_111A - 적산 전력",
"readDataTypeCd": "적산",
"readObjId": "적산",
"mgnf": "적산",
"unitCd":"적산",
"rangMin":"1",
"rangMax":"10",
"alrmHihi":"1",
"alrmHi":"10",
"alrmLo":"1",
"alrmLolo":"10",
"blocId":"1",
"totFg":"1",
"useFg":"1",
});
</script>

View File

@ -48,555 +48,10 @@ export const actions = {
// params
// );
// console.log(res);
// const list = res.data.dataset.menuList;
const list = [
{
comId: 'd12',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'dashboardfirst', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'menu', // UP_MENU_ID (상위메뉴ID)
menuNm: '모니터링',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
},
{
comId: 'd34',
sysDivCd: 'abc', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0001', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '1. Dashboard',// MENU_NM (메뉴명)
sortSeq: 888, // SORT_SEQ (정렬순서)
useFg: 'abc',// USE_FG (사용여부)
rmrk: 'abc',
url: 'ems/base/DashboardPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu2', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '에너지 사용량',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1
},
{
comId: 'd44',
sysDivCd: 'enrguplan', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0002', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '2. Establish energy consumption plans',// MENU_NM (메뉴명)
sortSeq: 888, // SORT_SEQ (정렬순서)
useFg: 'enrguplan',// USE_FG (사용여부)
rmrk: 'enrguplan',
url: 'ems/effc/EnrgUsePlanPage',
lvl: 1
},
{
comId: 'd35',
sysDivCd: 'energyusage', //시스템구분
menuId: 'children2', // MENU_ID (메뉴ID)
prgmId: 'PRG0080', // PRGM_ID (프로그램ID)
upMenuId: 'menu2', // UP_MENU_ID (상위메뉴ID)
menuNm: '3. Energy usage',// MENU_NM (메뉴명)
sortSeq: 5555, // SORT_SEQ (정렬순서)
useFg: 'energyusage',// USE_FG (사용여부)
rmrk: 'energyusage',
url: 'ems/effc/EnrgUseTotSummPage',
lvl: 1
},
{
comId: 'd60',
sysDivCd: 'energyperformance', //시스템구분
menuId: 'children2', // MENU_ID (메뉴ID)
prgmId: 'PRG0081', // PRGM_ID (프로그램ID)
upMenuId: 'menu2', // UP_MENU_ID (상위메뉴ID)
menuNm: '4. 에너지 사용량 실적',// MENU_NM (메뉴명)
sortSeq: 5555, // SORT_SEQ (정렬순서)
useFg: 'energyperformance',// USE_FG (사용여부)
rmrk: 'energyperformance',
url: 'ems/effc/EqpmIndMntrPage',
lvl: 1
},
{
comId: 'd69',
sysDivCd: 'MNU0104', //시스템구분
menuId: 'MNU0091', // MENU_ID (메뉴ID)
prgmId: 'PRG0082', // PRGM_ID (프로그램ID)
upMenuId: 'menu2', // UP_MENU_ID (상위메뉴ID)
menuNm: '5. Energy Use Equipment',// MENU_NM (메뉴명)
sortSeq: 5562, // SORT_SEQ (정렬순서)
useFg: 'enrgUseEqpm',// USE_FG (사용여부)
rmrk: 'enrgUseEqpm',
url: 'ems/effc/EnrgUseEqpmDetlMntrPage',
lvl: 1
},
{
comId: 'd351',
sysDivCd: 'energy effc', //시스템구분
menuId: 'MNU0116', // MENU_ID (메뉴ID)
prgmId: 'PRG0083', // PRGM_ID (프로그램ID)
upMenuId: 'menu2', // UP_MENU_ID (상위메뉴ID)
menuNm: '6. Today efficiency status',// MENU_NM (메뉴명)
sortSeq: 5554, // SORT_SEQ (정렬순서)
useFg: 'energy effc',// USE_FG (사용여부)
rmrk: 'energy effc',
url: 'ems/effc/EnrgEffcTotSummPage',
lvl: 1
},
{
comId: 'd48',
sysDivCd: 'energyeffc', //시스템구분
menuId: 'MNU0097', // MENU_ID (메뉴ID)
prgmId: 'PRG0084', // PRGM_ID (프로그램ID)
upMenuId: 'menu2', // UP_MENU_ID (상위메뉴ID)
menuNm: '7. Energy Efficiency Equipment',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'energyeffc',// USE_FG (사용여부)
rmrk: 'energyeffc',
url: 'ems/effc/EnrgEffcEqpmDetlMntrPage',
lvl: 1
},
{
comId: 'd336',
sysDivCd: 'engrepmng', //시스템구분
menuId: 'MNU0106', // MENU_ID (메뉴ID)
prgmId: 'PRG0908', // PRGM_ID (프로그램ID)
upMenuId: 'menu2', // UP_MENU_ID (상위메뉴ID)
menuNm: '8. 효율성 지표 보고서',// MENU_NM (메뉴명)
sortSeq: 5558, // SORT_SEQ (정렬순서)
useFg: 'engrepmng',// USE_FG (사용여부)
rmrk: 'engrepmng',
url: 'ems/effc/EnrgReptMngPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu3', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '에너지 효율운전',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1
},
{
comId: 'd337',
sysDivCd: 'datasetmng', //시스템구분
menuId: 'MNU0104', // MENU_ID (메뉴ID)
prgmId: 'PRG0909', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '9. 전기에너지 MAP',// MENU_NM (메뉴명)
sortSeq: 5556, // SORT_SEQ (정렬순서)
useFg: 'datasetmng',// USE_FG (사용여부)
rmrk: 'datasetmng',
url: 'ems/effc/EnrgMapPage',
lvl: 1
},
{
comId: 'd36',
sysDivCd: 'datasetmng', //시스템구분
menuId: 'MNU0104', // MENU_ID (메뉴ID)
prgmId: 'PRG0910', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '10. Dataset management',// MENU_NM (메뉴명)
sortSeq: 5557, // SORT_SEQ (정렬순서)
useFg: 'datasetmng',// USE_FG (사용여부)
rmrk: 'datasetmng',
url: 'ems/effc/DataSetMngPage',
lvl: 1
},
{
comId: 'd49',
sysDivCd: 'tagTrend', //시스템구분
menuId: 'MNU0104', // MENU_ID (메뉴ID)
prgmId: 'PRG0036', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '11. Tag Trend',// MENU_NM (메뉴명)
sortSeq: 5562, // SORT_SEQ (정렬순서)
useFg: 'tagTrend',// USE_FG (사용여부)
rmrk: 'tagTrend',
url: 'ems/effc/TagTrndPage',
lvl: 1
},
{
comId: 'd49',
sysDivCd: 'noticemng', //시스템구분
menuId: 'MNU0105', // MENU_ID (메뉴ID)
prgmId: 'PRG0037', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '12. Notices Management',// MENU_NM (메뉴명)
sortSeq: 5562, // SORT_SEQ (정렬순서)
useFg: 'noticemng',// USE_FG (사용여부)
rmrk: 'noticemng',
url: 'comm/base/NoticeMngPage',
lvl: 1
},
{
comId: 'd49',
sysDivCd: 'caalendarmng', //시스템구분
menuId: 'MNU0007', // MENU_ID (메뉴ID)
prgmId: 'PRG0033', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '13. Calendar Manager',// MENU_NM (메뉴명)
sortSeq: 5562, // SORT_SEQ (정렬순서)
useFg: 'caalendarmng',// USE_FG (사용여부)
rmrk: 'caalendarmng',
url: 'comm/base/CalendarMngPage',
lvl: 1
},
{
comId: 'd57',
sysDivCd: 'energyResource', //시스템구분
menuId: 'MNU0104', // MENU_ID (메뉴ID)
prgmId: 'PRG0039', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '14. Energy Resource',// MENU_NM (메뉴명)
sortSeq: 5567, // SORT_SEQ (정렬순서)
useFg: 'energyResource',// USE_FG (사용여부)
rmrk: 'energyResource',
url: 'ems/base/EnrgResourceCenterMngPage',
lvl: 1
},
{
comId: 'd38',
sysDivCd: 'readobj', //시스템구분
menuId: 'readobj', // MENU_ID (메뉴ID)
prgmId: 'PRG0007', // PRGM_ID (프로그램ID)
upMenuId: 'menu3', // UP_MENU_ID (상위메뉴ID)
menuNm: '15. Read Object Management',// MENU_NM (메뉴명)
sortSeq: 5558, // SORT_SEQ (정렬순서)
useFg: 'readobj',// USE_FG (사용여부)
rmrk: 'readobj',
url: 'ems/base/ReadObjectMngPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu4', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '에너지 보고서',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1
},
{
comId: 'd48',
sysDivCd: 'energyread', //시스템구분
menuId: 'MNU0007', // MENU_ID (메뉴ID)
prgmId: 'PRG0011', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '16. Meter Reading',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'energyread',// USE_FG (사용여부)
rmrk: 'energyread',
url: 'ems/base/EnrgReadPlaceMngPage',
lvl: 1
},
{
comId: 'd39',
sysDivCd: 'energycost', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0008', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '17. Process',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'energycost',// USE_FG (사용여부)
rmrk: 'energycost',
url: 'ems/base/EnrgCostCenterMngPage',
lvl: 1
},
{
comId: 'd39',
sysDivCd: 'equipmenttype', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0013', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '18. Type of Equipment',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'equipmenttype',// USE_FG (사용여부)
rmrk: 'equipmenttype',
url: 'ems/base/EqpmKindPage',
lvl: 1
},
{
comId: 'd39',
sysDivCd: 'equipmentgroup', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0014', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '19. Facility Group',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'equipmentgroup',// USE_FG (사용여부)
rmrk: 'equipmentgroup',
url: 'ems/base/EquipmentGroupMngPage',
lvl: 1
},
{
comId: 'd46',
sysDivCd: 'equipmentmaster', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0920', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '20. Equipment Master Management',// MENU_NM (메뉴명)
sortSeq: 5557, // SORT_SEQ (정렬순서)
useFg: 'equipmentmaster',// USE_FG (사용여부)
rmrk: 'equipmentmaster',
url: 'ems/base/EquipmentMasterMngPage',
lvl: 1
},
{
comId: 'd46',
sysDivCd: 'tags', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0921', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '21. Tags',// MENU_NM (메뉴명)
sortSeq: 5557, // SORT_SEQ (정렬순서)
useFg: 'tags',// USE_FG (사용여부)
rmrk: 'tags',
url: 'ems/base/TagMngPage_Pagination',
lvl: 1
},
{
comId: 'd48',
sysDivCd: 'pysclqty', //시스템구분
menuId: 'MNU0007', // MENU_ID (메뉴ID)
prgmId: 'PRG0075', // PRGM_ID (프로그램ID)
upMenuId: 'menu4', // UP_MENU_ID (상위메뉴ID)
menuNm: '22. Physical quantity information',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'pysclqty',// USE_FG (사용여부)
rmrk: 'pysclqty',
url: 'ems/base/EqpmGrpPysclQtyMngPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu5', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '에너지 FLOW',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1
},
{
comId: 'd48',
sysDivCd: 'gdidxmng', //시스템구분
menuId: 'MNU0007', // MENU_ID (메뉴ID)
prgmId: 'PRG0076', // PRGM_ID (프로그램ID)
upMenuId: 'menu5', // UP_MENU_ID (상위메뉴ID)
menuNm: '23. Guided Indicators',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'gdidxmng',// USE_FG (사용여부)
rmrk: 'gdidxmng',
url: 'ems/base/GdIdxMngPage',
lvl: 1
},
{
comId: 'd48',
sysDivCd: 'gdstndmng', //시스템구분
menuId: 'MNU0007', // MENU_ID (메뉴ID)
prgmId: 'PRG0077', // PRGM_ID (프로그램ID)
upMenuId: 'menu5', // UP_MENU_ID (상위메뉴ID)
menuNm: '24. Guidelines',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'gdigdstndmngdxmng',// USE_FG (사용여부)
rmrk: 'gdstndmng',
url: 'ems/base/GdStndMngPage',
lvl: 1
},
{
comId: 'd48',
sysDivCd: 'effcidxmng', //시스템구분
menuId: 'MNU0007', // MENU_ID (메뉴ID)
prgmId: 'PRG0012', // PRGM_ID (프로그램ID)
upMenuId: 'menu5', // UP_MENU_ID (상위메뉴ID)
menuNm: '25. Efficiency Indicators',// MENU_NM (메뉴명)
sortSeq: 5559, // SORT_SEQ (정렬순서)
useFg: 'effcidxmng',// USE_FG (사용여부)
rmrk: 'effcidxmng',
url: 'ems/base/EffcIdxMngPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu6', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '데이터 분석',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1
},
{
comId: 'd40',
sysDivCd: 'MNU0006', //시스템구분
menuId: 'addInfoMg', // MENU_ID (메뉴ID)
prgmId: 'PRG0009', // PRGM_ID (프로그램ID)
upMenuId: 'menu6', // UP_MENU_ID (상위메뉴ID)
menuNm: '26. Management of Additional Information',// MENU_NM (메뉴명)
sortSeq: 5560, // SORT_SEQ (정렬순서)
useFg: 'addInfoMg',// USE_FG (사용여부)
rmrk: 'addInfoMg',
url: 'ems/base/AddInfoMngPage',
lvl: 1
},
{
comId: 'd47',
sysDivCd: 'readresultclosemng', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0927', // PRGM_ID (프로그램ID)
upMenuId: 'menu6', // UP_MENU_ID (상위메뉴ID)
menuNm: '27. 계량 데이터 마감 관리',// MENU_NM (메뉴명)
sortSeq: 5657, // SORT_SEQ (정렬순서)
useFg: 'readresultclosemng',// USE_FG (사용여부)
rmrk: 'readresultclosemng',
url: 'ems/base/ReadResultCloseMngPage',
lvl: 1
},
{
comId: 'd47',
sysDivCd: 'pastrsltdataread', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0928', // PRGM_ID (프로그램ID)
upMenuId: 'menu6', // UP_MENU_ID (상위메뉴ID)
menuNm: '28. Metering location Data Inquiry',// MENU_NM (메뉴명)
sortSeq: 5657, // SORT_SEQ (정렬순서)
useFg: 'pastrsltdataread',// USE_FG (사용여부)
rmrk: 'pastrsltdataread',
url: 'ems/base/PastRsltDataReadPage',
lvl: 1
},
{
comId: 'd47',
sysDivCd: 'menumng', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0064', // PRGM_ID (프로그램ID)
upMenuId: 'menu6', // UP_MENU_ID (상위메뉴ID)
menuNm: '30. Menu Management',// MENU_NM (메뉴명)
sortSeq: 5657, // SORT_SEQ (정렬순서)
useFg: 'menumng',// USE_FG (사용여부)
rmrk: 'menumng',
url: 'comm/auth/MenuMngPage',
lvl: 1
},
{
comId: 'd41',
sysDivCd: 'roleMg', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG00030', // PRGM_ID (프로그램ID)
upMenuId: 'menu6', // UP_MENU_ID (상위메뉴ID)
menuNm: '31. Role',// MENU_NM (메뉴명)
sortSeq: 5560, // SORT_SEQ (정렬순서)
useFg: 'roleMg',// USE_FG (사용여부)
rmrk: 'roleMg',
url: 'comm/auth/RoleMngPage',
lvl: 1
},
{
comId: 'd47',
sysDivCd: 'prgmmng', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0119', // PRGM_ID (프로그램ID)
upMenuId: 'menu6', // UP_MENU_ID (상위메뉴ID)
menuNm: '34. 프로그램',// MENU_NM (메뉴명)
sortSeq: 5657, // SORT_SEQ (정렬순서)
useFg: 'prgmmng',// USE_FG (사용여부)
rmrk: 'prgmmng',
url: 'comm/base/PrgmMngPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu7', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '데이터 조회',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1
},
{
comId: 'd47',
sysDivCd: 'batchmng', //시스템구분
menuId: 'MNU0006', // MENU_ID (메뉴ID)
prgmId: 'PRG0019', // PRGM_ID (프로그램ID)
upMenuId: 'menu7', // UP_MENU_ID (상위메뉴ID)
menuNm: '35. Batch Management',// MENU_NM (메뉴명)
sortSeq: 5657, // SORT_SEQ (정렬순서)
useFg: 'batchmng',// USE_FG (사용여부)
rmrk: 'batchmng',
url: 'comm/base/BatchMngPage',
lvl: 1
},
{
comId: 'd100',
sysDivCd: 'sysDivCd', //시스템구분
menuId: 'menu8', // MENU_ID (메뉴ID)
prgmId: 'PRG0000', // PRGM_ID (프로그램ID)
upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
menuNm: '데이터 조회',// MENU_NM (메뉴명)
sortSeq: 9999, // SORT_SEQ (정렬순서)
useFg: 'useFg',// USE_FG (사용여부)
rmrk: 'rmrk',
lvl: 1,
icon: "mdi-chevron-down",
},
{
comId: 'd42',
sysDivCd: 'MNU0006', //시스템구분
menuId: 'batchLg', // MENU_ID (메뉴ID)
prgmId: 'PRG00010', // PRGM_ID (프로그램ID)
upMenuId: 'menu8', // UP_MENU_ID (상위메뉴ID)
menuNm: '36. Batch log',// MENU_NM (메뉴명)
sortSeq: 5561, // SORT_SEQ (정렬순서)
useFg: 'batchLg',// USE_FG (사용여부)
rmrk: 'batchLg',
url: 'comm/base/BatchLogMngPage',
lvl: 1,
},
// {
// comId: 'd37',
// sysDivCd: 'energyeffc', //시스템구분
// menuId: 'energyeffc', // MENU_ID (메뉴ID)
// prgmId: 'PRG0006', // PRGM_ID (프로그램ID)
// upMenuId: 'dashboardfirst', // UP_MENU_ID (상위메뉴ID)
// menuNm: 'Energy Efficiency Equipment',// MENU_NM (메뉴명)
// sortSeq: 5557, // SORT_SEQ (정렬순서)
// useFg: 'energyeffc',// USE_FG (사용여부)
// rmrk: 'energyeffc',
// url: 'ems/effc/EnrgEffcEqpmDetlMntrPage'
// },
]
const list = res.data.dataset.menuList;
let myMenu = [];
if (list.length > 0) {
myMenu = list
// .filter(ele => {
// return ele.useFg === "1";
@ -606,13 +61,14 @@ export const actions = {
id: item.prgmId || i,
upMenuId: item.upMenuId || item.menuNm,
// title: item.menuNm
icon: 'mdi-chevron-down', // 아이콘은,. 값을 받아오지 않는 이상 별도로 상수화해서 prgmId 값을 키로 꺼내써야 할듯,
// icon: '', // 아이콘은,. 값을 받아오지 않는 이상 별도로 상수화해서 prgmId 값을 키로 꺼내써야 할듯,
to: state[item.prgmId],
// to: '' // 경로는,. 값을 받아오지 않는 이상 아이콘과 마찬가지로 짝지어 상수화 하거나 sysDivCd, prgmId 값 등을 이용해 조합해서 route를 구성해야 할듯,
}));
// console.log("myMenu::", myMenu);
}
dispatch('setMenuTree', myMenu);
commit(
'setMenuItems',
@ -647,7 +103,7 @@ export const actions = {
);
Object.getOwnPropertyNames(tmpLsit)
.reverse()
.forEach(function (val, idx, array) {
.forEach(function(val, idx, array) {
array.map(obj => {
tmpLsit[obj].filter(v => {
if (val === v.menuId) {
@ -662,7 +118,7 @@ export const actions = {
});
});
}
console.log('menu test:', tmpLsit["0"]);
commit('setTreevieItems', tmpLsit.menu['0'], { root: true });
// console.log(tmpLsit["0"]);
commit('setTreevieItems', tmpLsit['0'], { root: true });
},
};