+
@@ -112,7 +113,7 @@ export default {
myPrgmId: myPrgmId,
initedFlag: false,
gridName: 'rowGrid',
- loadGrid: true,
+ loadGrid: false,
detailList: myDetail,
selectValue01: null,
selectValueList01: [],
@@ -125,102 +126,102 @@ export default {
// pysclQtyId3 : null,
// pysclQtyId4 : null
// }
- dataPathExample: {
- "rowGrid": {
- data: [
+ // dataPathExample: {
+ // "rowGrid": {
+ // data: [
- {
- gdIdxId: 'GD001',
- gdIdxNm: '온도 가이드',
- eqpmGrpId: 'EQ001',
- upTotMeth: 'AVG',
- careStndVal: 50,
- warnStndVal: 70,
- alrmMsg: '온도가 기준치를 초과했습니다.',
- },
- {
- gdIdxId: 'GD002',
- gdIdxNm: '습도 가이드',
- eqpmGrpId: 'EQ002',
- upTotMeth: 'MAX',
- careStndVal: 30,
- warnStndVal: 60,
- alrmMsg: '습도가 기준치를 초과했습니다.',
- },
- {
- gdIdxId: 'GD003',
- gdIdxNm: '압력 가이드',
- eqpmGrpId: 'EQ003',
- upTotMeth: 'SUM',
- careStndVal: 100,
- warnStndVal: 150,
- alrmMsg: '압력이 기준치를 초과했습니다.',
- }
+ // {
+ // gdIdxId: 'GD001',
+ // gdIdxNm: '온도 가이드',
+ // eqpmGrpId: 'EQ001',
+ // upTotMeth: 'AVG',
+ // careStndVal: 50,
+ // warnStndVal: 70,
+ // alrmMsg: '온도가 기준치를 초과했습니다.',
+ // },
+ // {
+ // gdIdxId: 'GD002',
+ // gdIdxNm: '습도 가이드',
+ // eqpmGrpId: 'EQ002',
+ // upTotMeth: 'MAX',
+ // careStndVal: 30,
+ // warnStndVal: 60,
+ // alrmMsg: '습도가 기준치를 초과했습니다.',
+ // },
+ // {
+ // gdIdxId: 'GD003',
+ // gdIdxNm: '압력 가이드',
+ // eqpmGrpId: 'EQ003',
+ // upTotMeth: 'SUM',
+ // careStndVal: 100,
+ // warnStndVal: 150,
+ // alrmMsg: '압력이 기준치를 초과했습니다.',
+ // }
- ],
- column: [
- {
- header: '가이드',
- name: 'gdIdxId',
- width: 100,
- align: 'center',
- },
- {
- header: '가이드명',
- name: 'gdIdxNm',
- width: 210,
- align: 'left',
- },
- {
- header: '설비그룹ID',
- name: 'eqpmGrpId',
- width: 100,
- align: 'center',
- // formatter({ value }) {
- // let retVal = '';
- // const newValue = _this.pageData.eqpmGrpList.filter(item => item.value == value);
- // if (newValue.length > 0) {
- // retVal = newValue[0].text;
- // }
- // return retVal;
- // },
- },
- {
- header: '상위집계방법',
- name: 'upTotMeth',
- width: 100,
- align: 'center',
- // formatter({ value }) {
- // let retVal = '';
- // const newValue = _this.pageData.upTotMethList.filter(item => item.commCd == value);
- // if (newValue.length > 0) {
- // retVal = newValue[0].commCdNm;
- // }
- // return retVal;
- // },
- },
- {
- header: '주의기준',
- name: 'careStndVal',
- width: 100,
- align: 'right',
- },
- {
- header: '경고기준',
- name: 'warnStndVal',
- width: 100,
- align: 'right',
- },
- {
- header: '알람메세지',
- name: 'alrmMsg',
- minWidth: 860,
- align: 'left',
- }
- ]
+ // ],
+ // column: [
+ // {
+ // header: '가이드',
+ // name: 'gdIdxId',
+ // width: 100,
+ // align: 'center',
+ // },
+ // {
+ // header: '가이드명',
+ // name: 'gdIdxNm',
+ // width: 210,
+ // align: 'left',
+ // },
+ // {
+ // header: '설비그룹ID',
+ // name: 'eqpmGrpId',
+ // width: 100,
+ // align: 'center',
+ // // formatter({ value }) {
+ // // let retVal = '';
+ // // const newValue = _this.pageData.eqpmGrpList.filter(item => item.value == value);
+ // // if (newValue.length > 0) {
+ // // retVal = newValue[0].text;
+ // // }
+ // // return retVal;
+ // // },
+ // },
+ // {
+ // header: '상위집계방법',
+ // name: 'upTotMeth',
+ // width: 100,
+ // align: 'center',
+ // // formatter({ value }) {
+ // // let retVal = '';
+ // // const newValue = _this.pageData.upTotMethList.filter(item => item.commCd == value);
+ // // if (newValue.length > 0) {
+ // // retVal = newValue[0].commCdNm;
+ // // }
+ // // return retVal;
+ // // },
+ // },
+ // {
+ // header: '주의기준',
+ // name: 'careStndVal',
+ // width: 100,
+ // align: 'right',
+ // },
+ // {
+ // header: '경고기준',
+ // name: 'warnStndVal',
+ // width: 100,
+ // align: 'right',
+ // },
+ // {
+ // header: '알람메세지',
+ // name: 'alrmMsg',
+ // minWidth: 860,
+ // align: 'left',
+ // }
+ // ]
- }
- }
+ // }
+ // }
};
},
computed: {
@@ -352,60 +353,46 @@ export default {
});
},
async getEqpmKind() {
- // let res = await this.postApiReturn({
- // apiKey: 'selectEqpmKindCodeList',
- // resKey: 'eqpmKindCodeLists',
- // sendParam: {},
- // });
- // if (res.length > 0) {
- // this.selectValueList01 = await res.map(item => {
- // return {
- // text: item.eqpmKindNm,
- // value: item.eqpmKindId,
- // };
- // });
- // this.selectValue01 = this.selectValueList01[0].value;
- // } else {
- // this.selectValueList01 = [];
- // this.selectValue01 = null;
- // }
-
- this.selectValueList01 = [
- { label: 'Etcher', value: 'EQK001' },
- { label: 'Deposition', value: 'EQK002' },
- { label: 'Inspection', value: 'EQK003' },
- ];
-
- this.selectValue01 = 'EQK001';
+ let res = await this.postApiReturn({
+ apiKey: 'selectEqpmKindCodeList',
+ resKey: 'eqpmKindCodeLists',
+ sendParam: {},
+ });
+ if (res.length > 0) {
+ this.selectValueList01 = await res.map(item => {
+ return {
+ text: item.eqpmKindNm,
+ value: item.eqpmKindId,
+ };
+ });
+ this.selectValue01 = this.selectValueList01[0].value;
+ } else {
+ this.selectValueList01 = [];
+ this.selectValue01 = null;
+ }
this.setPageData({
eqpmKindList: this.selectValueList01,
eqpmKindId: this.selectValue01,
});
},
async getEqpmGrp() {
- // let res = await this.postApiReturn({
- // apiKey: 'selectEqpmGrpCodeList',
- // resKey: 'eqpmGrpCodeLists',
- // sendParam: { eqpmKindId: this.selectValue01 },
- // });
- // if (res.length > 0) {
- // this.selectValueList02 = await res.map(item => {
- // return {
- // text: item.eqpmGrpNm,
- // value: item.eqpmGrpId,
- // };
- // });
- // this.selectValue02 = this.selectValueList02[0].value;
- // } else {
- // this.selectValueList02 = [];
- // this.selectValue02 = null;
- // }
- this.selectValueList02 = [
- { label: '냉동기고온', value: '냉동기고온' },
- { label: '냉동기저온', value: '냉동기저온' },
- { label: '공조기', value: '공조기' },
- { label: '보일러', value: '보일러' }
- ];
+ let res = await this.postApiReturn({
+ apiKey: 'selectEqpmGrpCodeList',
+ resKey: 'eqpmGrpCodeLists',
+ sendParam: { eqpmKindId: this.selectValue01 },
+ });
+ if (res.length > 0) {
+ this.selectValueList02 = await res.map(item => {
+ return {
+ text: item.eqpmGrpNm,
+ value: item.eqpmGrpId,
+ };
+ });
+ this.selectValue02 = this.selectValueList02[0].value;
+ } else {
+ this.selectValueList02 = [];
+ this.selectValue02 = null;
+ }
this.setPageData({
eqpmGrpList: this.selectValueList02,
@@ -419,6 +406,10 @@ export default {
columnOptions: {
resizable: true,
},
+ header: {
+ height: 37,
+ },
+ rowHeight: 'auto',
};
this.setGridOption({
gridKey: this.gridName,
@@ -636,100 +627,100 @@ export default {
async getRowGridData() {
this.loadGrid = false;
let res = [];
- const newRes = [
- {
- comId: 'COM001',
- gdIdxId: 'GD001',
- gdIdxNm: '온도 가이드',
- eqpmGrpId: 'EQ001',
- upTotMeth: 'AVG',
- sortSeq: 1,
- pysclQtyId1: 'TEMP',
- pysclQtyId2: null,
- pysclQtyId3: null,
- pysclQtyId4: null,
- ctgr1: '환경',
- ctgr2: '내부',
- careStndVal: 50,
- warnStndVal: 70,
- gdMeth: '자동',
- useFg: '1',
- alrmMsg: '온도가 기준치를 초과했습니다.',
- calcProc: 'PROC001',
- calcDesc: '평균 계산',
- calcMeth: '(A+B)/2',
- unit: 'C',
- argCnt: 2,
- rowStat: null,
- },
- {
- comId: 'COM002',
- gdIdxId: 'GD002',
- gdIdxNm: '습도 가이드',
- eqpmGrpId: 'EQ002',
- upTotMeth: 'MAX',
- sortSeq: 2,
- pysclQtyId1: 'HUMID',
- pysclQtyId2: null,
- pysclQtyId3: null,
- pysclQtyId4: null,
- ctgr1: '환경',
- ctgr2: '외부',
- careStndVal: 30,
- warnStndVal: 60,
- gdMeth: '수동',
- useFg: '0',
- alrmMsg: '습도가 기준치를 초과했습니다.',
- calcProc: 'PROC002',
- calcDesc: '최대값 계산',
- calcMeth: 'MAX(A,B)',
- unit: '%',
- argCnt: 2,
- rowStat: null,
- },
- ];
-
- // res = await this.postApiReturn({
- // apiKey: 'selectEqpmGdIdxDataList',
- // resKey: 'eqpmGdIdxDataList',
- // sendParam: {
- // eqpmGrpId: this.selectValue02,
- // gdIdxNmLike: this.pageData.gdIdxNm,
- // },
- // });
- // const newRes = res.map(item => {
- // const newObj = {
- // ...item,
+ // const newRes = [
+ // {
+ // comId: 'COM001',
+ // gdIdxId: 'GD001',
+ // gdIdxNm: '온도 가이드',
+ // eqpmGrpId: 'EQ001',
+ // upTotMeth: 'AVG',
+ // sortSeq: 1,
+ // pysclQtyId1: 'TEMP',
+ // pysclQtyId2: null,
+ // pysclQtyId3: null,
+ // pysclQtyId4: null,
+ // ctgr1: '환경',
+ // ctgr2: '내부',
+ // careStndVal: 50,
+ // warnStndVal: 70,
+ // gdMeth: '자동',
+ // useFg: '1',
+ // alrmMsg: '온도가 기준치를 초과했습니다.',
+ // calcProc: 'PROC001',
+ // calcDesc: '평균 계산',
+ // calcMeth: '(A+B)/2',
+ // unit: 'C',
+ // argCnt: 2,
// rowStat: null,
- // };
- // return newObj;
- // });
+ // },
+ // {
+ // comId: 'COM002',
+ // gdIdxId: 'GD002',
+ // gdIdxNm: '습도 가이드',
+ // eqpmGrpId: 'EQ002',
+ // upTotMeth: 'MAX',
+ // sortSeq: 2,
+ // pysclQtyId1: 'HUMID',
+ // pysclQtyId2: null,
+ // pysclQtyId3: null,
+ // pysclQtyId4: null,
+ // ctgr1: '환경',
+ // ctgr2: '외부',
+ // careStndVal: 30,
+ // warnStndVal: 60,
+ // gdMeth: '수동',
+ // useFg: '0',
+ // alrmMsg: '습도가 기준치를 초과했습니다.',
+ // calcProc: 'PROC002',
+ // calcDesc: '최대값 계산',
+ // calcMeth: 'MAX(A,B)',
+ // unit: '%',
+ // argCnt: 2,
+ // rowStat: null,
+ // },
+ // ];
+
+ res = await this.postApiReturn({
+ apiKey: 'selectEqpmGdIdxDataList',
+ resKey: 'eqpmGdIdxDataList',
+ sendParam: {
+ eqpmGrpId: this.selectValue02,
+ gdIdxNmLike: this.pageData.gdIdxNm,
+ },
+ });
+ const newRes = res.map(item => {
+ const newObj = {
+ ...item,
+ rowStat: null,
+ };
+ return newObj;
+ });
this.setGridData({
gridKey: this.gridName,
value: newRes,
});
//this.loadGrid = true;
- // this.$nextTick(() => {
- // if (newRes.length > 0) {
- // try {
- // this.$refs[this.gridName].focus({
- // //rowKey: 0,
- // rowKey:
- // this.pageData.rowGridSelectKey == '' ||
- // this.pageData.rowGridSelectKey == null
- // ? 0
- // : this.pageData.rowGridSelectKey ==
- // this.$refs[this.gridName].getData().length - 1
- // ? this.pageData.rowGridSelectKey
- // : 0,
- // columnName: 'gdIdxId',
- // setScroll: true,
- // });
- // } catch (error) { }
- // } else {
- // this.detailDataInit();
- // }
- // });
+ this.$nextTick(() => {
+ if (newRes.length > 0) {
+ try {
+ this.$refs[this.gridName].focus({
+ //rowKey: 0,
+ rowKey:
+ this.pageData.rowGridSelectKey == '' ||
+ this.pageData.rowGridSelectKey == null
+ ? 0
+ : this.pageData.rowGridSelectKey ==
+ this.$refs[this.gridName].getData().length - 1
+ ? this.pageData.rowGridSelectKey
+ : 0,
+ columnName: 'gdIdxId',
+ setScroll: true,
+ });
+ } catch (error) { }
+ } else {
+ this.detailDataInit();
+ }
+ });
this.loadGrid = true;
},
async getRowData(data) {
diff --git a/pages/ems/base/GdStndMngPage.vue b/pages/ems/base/GdStndMngPage.vue
index db727c9..9ff1f50 100644
--- a/pages/ems/base/GdStndMngPage.vue
+++ b/pages/ems/base/GdStndMngPage.vue
@@ -1,6 +1,7 @@
-
+
+
@@ -29,7 +30,7 @@
-
+
@@ -115,8 +116,8 @@
-
-
+
+
설비상세 리스트
@@ -126,12 +127,12 @@
+ />
-
+
설비가이드 기준 정보
@@ -201,7 +202,7 @@ export default {
readonlyFg: true,
initedFlag: false,
gridName: 'rowGrid',
- loadGrid: true,
+ loadGrid: false,
detailList: myDetail,
selectValue01: null,
selectValueList01: [],
@@ -209,62 +210,62 @@ export default {
selectValueList02: [],
selectValue03: null,
selectValueList03: [],
- dataPathExample: {
- "rowGrid": {
- data: [
+ // dataPathExample: {
+ // "rowGrid": {
+ // data: [
- {
- eqpmId: 'EQ001',
- originEqpmId: 'ORIG001',
- eqpmNm: '냉각기 A',
- careStndVal: 75,
- warnStndVal: 90,
- },
- {
- eqpmId: 'EQ002',
- originEqpmId: 'ORIG002',
- eqpmNm: '펌프 B',
- careStndVal: 60,
- warnStndVal: 80,
- },
- {
- eqpmId: 'EQ003',
- originEqpmId: 'ORIG003',
- eqpmNm: '모터 C',
- careStndVal: 50,
- warnStndVal: 70,
- },
- {
- eqpmId: 'EQ004',
- originEqpmId: 'ORIG004',
- eqpmNm: '밸브 D',
- careStndVal: 65,
- warnStndVal: 85,
- },
- {
- eqpmId: 'EQ005',
- originEqpmId: 'ORIG005',
- eqpmNm: '컨트롤러 E',
- careStndVal: 55,
- warnStndVal: 75,
- },
+ // {
+ // eqpmId: 'EQ001',
+ // originEqpmId: 'ORIG001',
+ // eqpmNm: '냉각기 A',
+ // careStndVal: 75,
+ // warnStndVal: 90,
+ // },
+ // {
+ // eqpmId: 'EQ002',
+ // originEqpmId: 'ORIG002',
+ // eqpmNm: '펌프 B',
+ // careStndVal: 60,
+ // warnStndVal: 80,
+ // },
+ // {
+ // eqpmId: 'EQ003',
+ // originEqpmId: 'ORIG003',
+ // eqpmNm: '모터 C',
+ // careStndVal: 50,
+ // warnStndVal: 70,
+ // },
+ // {
+ // eqpmId: 'EQ004',
+ // originEqpmId: 'ORIG004',
+ // eqpmNm: '밸브 D',
+ // careStndVal: 65,
+ // warnStndVal: 85,
+ // },
+ // {
+ // eqpmId: 'EQ005',
+ // originEqpmId: 'ORIG005',
+ // eqpmNm: '컨트롤러 E',
+ // careStndVal: 55,
+ // warnStndVal: 75,
+ // },
- ],
- column: [
- { header: '설비', name: 'eqpmId', align: 'left' },
- {
- header: 'origin설비',
- name: 'originEqpmId',
- align: 'center',
- hidden: true,
- },
- { header: '설비명', name: 'eqpmNm', align: 'left' },
- { header: '주의기준', name: 'careStndVal', align: 'right' },
- { header: '심각기준', name: 'warnStndVal', align: 'right' },
- ]
+ // ],
+ // column: [
+ // { header: '설비', name: 'eqpmId', align: 'left' },
+ // {
+ // header: 'origin설비',
+ // name: 'originEqpmId',
+ // align: 'center',
+ // hidden: true,
+ // },
+ // { header: '설비명', name: 'eqpmNm', align: 'left' },
+ // { header: '주의기준', name: 'careStndVal', align: 'right' },
+ // { header: '심각기준', name: 'warnStndVal', align: 'right' },
+ // ]
- }
- }
+ // }
+ // }
};
},
computed: {
@@ -408,6 +409,10 @@ export default {
columnOptions: {
resizable: true,
},
+ header: {
+ height: 37,
+ },
+ rowHeight: 'auto',
};
this.setGridOption({
gridKey: this.gridName,
@@ -511,69 +516,69 @@ export default {
this.loadGrid = false;
let res = [];
- // if (this.selectValue01 && this.selectValue02 && this.selectValue03) {
- // res = await this.postApiReturn({
- // apiKey: 'selectEqpmGdDetl',
- // resKey: 'eqpmGdDetlData',
- // sendParam: {
- // gdIdxId: this.selectValue03,
- // },
- // });
- // }
+ if (this.selectValue01 && this.selectValue02 && this.selectValue03) {
+ res = await this.postApiReturn({
+ apiKey: 'selectEqpmGdDetl',
+ resKey: 'eqpmGdDetlData',
+ sendParam: {
+ gdIdxId: this.selectValue03,
+ },
+ });
+ }
- // // grid에서 eqpmId를 기억해서 popup에서 중복되는 값을 제거하는데 사용하기위해 저장 - 시작
- // let eqpmIdList = res.map(item => {
- // return item.eqpmId;
- // });
- // this.setPageData({ nowGridEqpmIdList: eqpmIdList });
- // // grid에서 eqpmId를 기억해서 popup에서 중복되는 값을 제거하는데 사용하기위해 저장 - 끝
- // const newRes = res.map(item => {
- // const newObj = {
- // ...item,
- // rowStat: null,
- // };
- // return newObj;
- // });
- const newRes = [
+ // grid에서 eqpmId를 기억해서 popup에서 중복되는 값을 제거하는데 사용하기위해 저장 - 시작
+ let eqpmIdList = res.map(item => {
+ return item.eqpmId;
+ });
+ this.setPageData({ nowGridEqpmIdList: eqpmIdList });
+ // grid에서 eqpmId를 기억해서 popup에서 중복되는 값을 제거하는데 사용하기위해 저장 - 끝
+ const newRes = res.map(item => {
+ const newObj = {
+ ...item,
+ rowStat: null,
+ };
+ return newObj;
+ });
+ // const newRes = [
- {
- eqpmId: 'EQ001',
- originEqpmId: 'ORIG001',
- eqpmNm: '냉각기 A',
- careStndVal: 75,
- warnStndVal: 90,
- },
- {
- eqpmId: 'EQ002',
- originEqpmId: 'ORIG002',
- eqpmNm: '펌프 B',
- careStndVal: 60,
- warnStndVal: 80,
- },
- {
- eqpmId: 'EQ003',
- originEqpmId: 'ORIG003',
- eqpmNm: '모터 C',
- careStndVal: 50,
- warnStndVal: 70,
- },
- {
- eqpmId: 'EQ004',
- originEqpmId: 'ORIG004',
- eqpmNm: '밸브 D',
- careStndVal: 65,
- warnStndVal: 85,
- },
- {
- eqpmId: 'EQ005',
- originEqpmId: 'ORIG005',
- eqpmNm: '컨트롤러 E',
- careStndVal: 55,
- warnStndVal: 75,
- },
+ // {
+ // eqpmId: 'EQ001',
+ // originEqpmId: 'ORIG001',
+ // eqpmNm: '냉각기 A',
+ // careStndVal: 75,
+ // warnStndVal: 90,
+ // },
+ // {
+ // eqpmId: 'EQ002',
+ // originEqpmId: 'ORIG002',
+ // eqpmNm: '펌프 B',
+ // careStndVal: 60,
+ // warnStndVal: 80,
+ // },
+ // {
+ // eqpmId: 'EQ003',
+ // originEqpmId: 'ORIG003',
+ // eqpmNm: '모터 C',
+ // careStndVal: 50,
+ // warnStndVal: 70,
+ // },
+ // {
+ // eqpmId: 'EQ004',
+ // originEqpmId: 'ORIG004',
+ // eqpmNm: '밸브 D',
+ // careStndVal: 65,
+ // warnStndVal: 85,
+ // },
+ // {
+ // eqpmId: 'EQ005',
+ // originEqpmId: 'ORIG005',
+ // eqpmNm: '컨트롤러 E',
+ // careStndVal: 55,
+ // warnStndVal: 75,
+ // },
- ]
+ // ]
this.setGridData({
gridKey: this.gridName,
value: newRes,
diff --git a/pages/ems/effc/EnrgEffcTotSummPage.vue b/pages/ems/effc/EnrgEffcTotSummPage.vue
index ffd389c..a6e53e3 100644
--- a/pages/ems/effc/EnrgEffcTotSummPage.vue
+++ b/pages/ems/effc/EnrgEffcTotSummPage.vue
@@ -195,68 +195,51 @@ export default {
});
},
async getEqpmKind() {
- // let res = await this.postApiReturn({
- // apiKey: "selectEqpmKindCodeList",
- // resKey: "eqpmKindCodeLists",
- // sendParam: {},
- // });
+ let res = await this.postApiReturn({
+ apiKey: 'selectEqpmKindCodeList',
+ resKey: 'eqpmKindCodeLists',
+ sendParam: {},
+ });
- let res = [
- {
- eqpmKindId: "냉동기저온",
- eqpmKindNm: "냉동기저온",
- },
- {
- eqpmKindId: "냉동기고온",
- eqpmKindNm: "냉동기고온",
- },
- ];
-
- if (res.length > 0) {
- this.selectValueList01 = await res.map((item) => {
- return {
- // text: item.eqpmKindNm,
- label: item.eqpmKindNm,
- value: item.eqpmKindId,
- };
- });
- this.selectValue01 = this.selectValueList01[0].value;
- } else {
- this.selectValueList01 = [];
- this.selectValue01 = null;
- }
- this.setPageData({
- eqpmKindList: this.selectValueList01,
- eqpmKindId: this.selectValue01,
- });
- },
+ if (res.length > 0) {
+ this.selectValueList01 = await res.map(item => {
+ return {
+ text: item.eqpmKindNm,
+ value: item.eqpmKindId,
+ };
+ });
+ this.selectValue01 = this.selectValueList01[0].value;
+ } else {
+ this.selectValueList01 = [];
+ this.selectValue01 = null;
+ }
+ this.setPageData({
+ eqpmKindList: this.selectValueList01,
+ eqpmKindId: this.selectValue01,
+ });
+ },
gridInit() {},
getRowGridData() {},
async getData() {
- // let res = await this.postApiReturn({
- // apiKey: "selectEnrgEffcTotSumm",
- // resKey: "totSummData",
- // sendParam: {
- // fromDt: this.pageData.fromDt,
- // eqpmKindId: this.selectValue01,
- // },
- // });
- let res = ["aaa", "bbb"];
- await this.getChartData(res);
+ let res = await this.postApiReturn({
+ apiKey: 'selectEnrgEffcTotSumm',
+ resKey: 'totSummData',
+ sendParam: {
+ fromDt: this.pageData.fromDt,
+ eqpmKindId: this.selectValue01,
+ },
+ });
- // this.selectData = res.filter((item, i) => {
- // return (
- // res.findIndex((item2, j) => {
- // return item.eqpmGrpId === item2.eqpmGrpId;
- // }) === i
- // );
- // });
+ await this.getChartData(res);
- this.selectData = [
- { eqpmGrpId: "G001", eqpmGrpNm: "Group A", otherProp: "..." },
- { eqpmGrpId: "G002", eqpmGrpNm: "Group B", otherProp: "..." },
- ];
- },
+ this.selectData = res.filter((item, i) => {
+ return (
+ res.findIndex((item2, j) => {
+ return item.eqpmGrpId === item2.eqpmGrpId;
+ }) === i
+ );
+ });
+ },
barClick(event, chartName) {
var data = {};
if (chartName == "card") {
@@ -291,52 +274,40 @@ export default {
});
},
async getChartData(data) {
- var chartDataObj = {};
- this.objList = {};
- // let res = await this.postApiReturn({
- // apiKey : 'selectEnrgEffcTotSumm',
- // resKey : 'totSummData',
- // sendParam:{
- // fromDt : this.pageData.fromDt,
- // eqpmKindId : this.pageData.eqpmKindId,
- // }
- // });
+ var chartDataObj = {};
+ this.objList = {};
+ // let res = await this.postApiReturn({
+ // apiKey : 'selectEnrgEffcTotSumm',
+ // resKey : 'totSummData',
+ // sendParam:{
+ // fromDt : this.pageData.fromDt,
+ // eqpmKindId : this.pageData.eqpmKindId,
+ // }
+ // });
- // data.map((item) => {
- // if (chartDataObj[item.eqpmGrpId] != null) {
- // chartDataObj[item.eqpmGrpId].push(item);
- // } else {
- // chartDataObj[item.eqpmGrpId] = [item];
- // }
- // });
+ data.map(item => {
+ if (chartDataObj[item.eqpmGrpId] != null) {
+ chartDataObj[item.eqpmGrpId].push(item);
+ } else {
+ chartDataObj[item.eqpmGrpId] = [item];
+ }
+ });
- chartDataObj = {
- group1: [
- { fabNm: "Fab A", okCnt: 120, ngCnt: 30 },
- { fabNm: "Fab B", okCnt: 150, ngCnt: 20 },
- { fabNm: "Fab C", okCnt: 100, ngCnt: 50 },
- ],
- group2: [
- { fabNm: "Fab D", okCnt: 180, ngCnt: 10 },
- { fabNm: "Fab E", okCnt: 160, ngCnt: 25 },
- { fabNm: "Fab F", okCnt: 140, ngCnt: 35 },
- ],
- };
+ // chartDataObj.keys()[0]
+ var i = 0;
+ for (var x of Object.keys(chartDataObj)) {
+ this.loadChartList.push(false);
+ i++;
+ this.objList['chart_0' + i] = chartDataObj[x];
+ this.chartNameList.push('chart_0' + i);
+ this.setPageData({
+ [this.chartNameList[i - 1]]: Utility.defaultChartOption(true),
+ });
- // chartDataObj.keys()[0]
- var i = 0;
- for (var x of Object.keys(chartDataObj)) {
- this.loadChartList.push(false);
- i++;
- this.objList["chart_0" + i] = chartDataObj[x];
- this.chartNameList.push("chart_0" + i);
- this.setPageData({
- [this.chartNameList[i - 1]]: Utility.defaultChartOption(true),
- });
- this.setChartData(chartDataObj[x], i);
- }
- // this.setChartData(chartDataObj[Object.keys(chartDataObj)[0]]);
- },
+ this.setChartData(chartDataObj[x], i);
+ }
+ // this.setChartData(chartDataObj[Object.keys(chartDataObj)[0]]);
+ },
async setChartData(data, number) {
this.loadChartList[number - 1] = false;
let xAxisData = [];
diff --git a/pages/ems/effc/TagTrndPage.vue b/pages/ems/effc/TagTrndPage.vue
index 7f8a944..c0cd56a 100644
--- a/pages/ems/effc/TagTrndPage.vue
+++ b/pages/ems/effc/TagTrndPage.vue
@@ -1,37 +1,37 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
-
+ :selectFromDtUntilTodayFg="true"
+ :selectToDtUntilTodayFg="true"
+ :selectBoxTimeItemList="selectBoxTimeItemList"
+ />
+
-
-
+ />
+
@@ -64,21 +64,21 @@
@click="search"
>조회
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
+
+
+
TAG 리스트
-
-
+
+
@@ -87,56 +87,55 @@
>
TAG 삭제
-
-
-
+ >
+
+
+
-
-
-
-
-
+
+
+
+
+
{{
item
}}
-
-
-
-
+
+
+
+
-
-
-
+
+
-
-
+
+
{{
"ICHEON.HVAC.EQP_HT_CH004.UT_HT_CH201.CHI_AMP_1A_PV"
}}
-
+
-
-
-
-
-
-
-
-
+ class="w100 h100"
+ :is="'Chart'"
+ :parentPrgmId="myPrgmId"
+ :chartName="chartNameList[0]"
+ :ref="chartNameList[0]"
+ />
+
+
+
+
+
+
+
diff --git a/plugins/vuetify.js b/plugins/vuetify.js
index b51e20a..408442c 100644
--- a/plugins/vuetify.js
+++ b/plugins/vuetify.js
@@ -10,6 +10,7 @@ import icoBulletPoint from '~/components/icons/icoBulletPoint';
import icoChevronDown from '~/components/icons/icoChevronDown';
import icoSearch from '~/components/icons/icoSearch';
import icoSend from '~/components/icons/icoSend';
+import icoExpandAlt from '~/components/icons/icoExpandAlt';
import '@mdi/font/css/materialdesignicons.css'; // Ensure you are using css-loader
import 'material-design-icons-iconfont/dist/material-design-icons.css';
import Vue from 'vue';
@@ -73,6 +74,9 @@ export default new Vuetify({
icoSend: {
component: icoSend,
},
+ icoExpandAlt: {
+ component: icoExpandAlt,
+ },
},
},
});