Remove log + fix click chart top 10

This commit is contained in:
Michael
2025-07-30 15:01:44 +09:00
parent c2e2c10a8a
commit 2338bbf2ec

View File

@ -1409,7 +1409,6 @@ export default {
// series: seriesData, // series: seriesData,
// }; // };
await this.$nextTick(() => {}); await this.$nextTick(() => {});
console.log('line:',chartOption);
this.setChartOption({ this.setChartOption({
chartKey: "compareEqpmTotChart", chartKey: "compareEqpmTotChart",
value: chartOption, value: chartOption,
@ -1722,13 +1721,10 @@ export default {
}, },
topTenChartClickEvent(event) { topTenChartClickEvent(event) {
let chartData = this.pageData.chart04Data; 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 chartData = this.$store.state.pageData[myPrgmId][this.chart_04]['series'][0]['data']
let selectedChartData = chartData.filter((item) => { let selectedChartData = chartData.filter((item) => {
return item.eqpmId == event["data"]["groupId"]; return item.eqpmId == event["data"]["name"];
}); });
console.log('select data:',selectedChartData)
var data = { var data = {
cmCycle: "CYC_DAY", cmCycle: "CYC_DAY",
fromDt: Utility.setFormatDate(new Date(), "YYYY-MM-DD HH:mm"), fromDt: Utility.setFormatDate(new Date(), "YYYY-MM-DD HH:mm"),