Update s14 s29 + Fix bugs s1 + Update datepicker height
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div class="l-layout">
|
||||
<!-- <h1 class="h1-title">대시보드</h1> -->
|
||||
<PageTitle text="대시보드" />
|
||||
<CommonPageTitle/>
|
||||
<!-- <CheckBox
|
||||
:parentPrgmId="myPrgmId"
|
||||
label="사용여부"
|
||||
@ -600,7 +599,7 @@ export default {
|
||||
this.getEnrgUsage();
|
||||
},
|
||||
isDarkMode(newVal) {
|
||||
// let chartOption = this.getGuageChartOption2(this.chart_01);
|
||||
// Update color of dark mode or light mode into each charts
|
||||
let chartOption = getGaugeChartOption({
|
||||
title: this.chart_01,
|
||||
isDarkMode: this.isDarkMode,
|
||||
@ -610,7 +609,6 @@ export default {
|
||||
]?.series?.[0]?.data?.[0]?.value;
|
||||
this.$store.state.pageData[myPrgmId][this.chart_01] = chartOption;
|
||||
|
||||
// let chartOption3 = this.getGuageChartOption2(this.chart_03);
|
||||
let chartOption3 = getGaugeChartOption({
|
||||
title: this.chart_03,
|
||||
isDarkMode: this.isDarkMode,
|
||||
@ -620,12 +618,24 @@ export default {
|
||||
]?.series?.[0]?.data?.[0]?.value;
|
||||
this.$store.state.pageData[myPrgmId][this.chart_03] = chartOption3;
|
||||
|
||||
let mockres = this.$store.state.pageData[myPrgmId][this.chart_04];
|
||||
this.setChart04Data(mockres);
|
||||
|
||||
this.setChart02Data("test");
|
||||
let chart04Dat = this.$store.state.pageData[myPrgmId]['chart04Data'];
|
||||
this.setChart04Data(chart04Dat);
|
||||
|
||||
let chartOption2 = getLineChartOption({
|
||||
xAxisData: this.$store.state.pageData[myPrgmId][this.chart_02].xAxisData,
|
||||
seriesData: this.$store.state.pageData[myPrgmId][this.chart_02].seriesData,
|
||||
isDarkMode: this.isDarkMode,
|
||||
});
|
||||
this.$store.state.pageData[myPrgmId][this.chart_02] = chartOption2
|
||||
|
||||
let chartOption5 = getLineChartOption({
|
||||
xAxisData: this.$store.state.pageData[myPrgmId][this.chart_05].xAxisData,
|
||||
seriesData: this.$store.state.pageData[myPrgmId][this.chart_05].seriesData,
|
||||
isDarkMode: this.isDarkMode,
|
||||
});
|
||||
this.$store.state.pageData[myPrgmId][this.chart_05] = chartOption5
|
||||
|
||||
this.setChart05Data("test");
|
||||
},
|
||||
// beforeDestroy() {
|
||||
// this.cancelAutoUpdate();
|
||||
@ -1169,6 +1179,7 @@ export default {
|
||||
chartKey: "compareEqpmTGdChart",
|
||||
value: chartOption,
|
||||
});
|
||||
this.$store.state.pageData[myPrgmId][this.chart_05] = chartOption
|
||||
},
|
||||
async setChart04Data(data) {
|
||||
if (this.$store.state.pageData[this.myPrgmId].todayNgTopTen != undefined) {
|
||||
@ -1268,6 +1279,7 @@ export default {
|
||||
},
|
||||
series: seriesData,
|
||||
};
|
||||
|
||||
await this.$nextTick(() => {});
|
||||
this.setChartOption({ chartKey: "todayNgTopTen", value: chartOption });
|
||||
},
|
||||
@ -1397,10 +1409,12 @@ export default {
|
||||
// series: seriesData,
|
||||
// };
|
||||
await this.$nextTick(() => {});
|
||||
console.log('line:',chartOption);
|
||||
this.setChartOption({
|
||||
chartKey: "compareEqpmTotChart",
|
||||
value: chartOption,
|
||||
});
|
||||
this.$store.state.pageData[myPrgmId][this.chart_02] = chartOption
|
||||
},
|
||||
getGuageChartOption(chartName) {
|
||||
const gaugeColors = [
|
||||
@ -1708,10 +1722,13 @@ export default {
|
||||
},
|
||||
topTenChartClickEvent(event) {
|
||||
let chartData = this.pageData.chart04Data;
|
||||
console.log('select data:',chartData)
|
||||
console.log(event["data"])
|
||||
// let chartData = this.$store.state.pageData[myPrgmId][this.chart_04]['series'][0]['data']
|
||||
let selectedChartData = chartData.filter((item) => {
|
||||
return item.eqpmId == event["data"]["groupId"];
|
||||
});
|
||||
console.log('select data:',selectedChartData)
|
||||
var data = {
|
||||
cmCycle: "CYC_DAY",
|
||||
fromDt: Utility.setFormatDate(new Date(), "YYYY-MM-DD HH:mm"),
|
||||
|
Reference in New Issue
Block a user