From fbae41472ec9a28ffca4982afcd9ffef2b80b744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 8 Jun 2022 17:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/js/common/echarts.common.js | 8 ++------ .../target/classes/static/js/common/echarts.common.js | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/productionboard/src/main/resources/static/js/common/echarts.common.js b/productionboard/src/main/resources/static/js/common/echarts.common.js index 8b23bb8..5af4f33 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -1531,12 +1531,8 @@ const multipleThreeDimensionalCylindrical = (res, ids) => { const OEEStatistics = (res, ids) => { console.log(res); let mycharts = echarts.init(ids); - let xAxisData = [] - let yAxisData = [] - res.forEach((item) => { - xAxisData.push(item.yValue); - yAxisData.push(item.xValue); - }); + let xAxisData = res.map(val => val.yValue); + let yAxisData = res.map(val => val.xValue); console.log(xAxisData); console.log(yAxisData); diff --git a/productionboard/target/classes/static/js/common/echarts.common.js b/productionboard/target/classes/static/js/common/echarts.common.js index 8b23bb8..2fe0169 100644 --- a/productionboard/target/classes/static/js/common/echarts.common.js +++ b/productionboard/target/classes/static/js/common/echarts.common.js @@ -1537,6 +1537,7 @@ const OEEStatistics = (res, ids) => { xAxisData.push(item.yValue); yAxisData.push(item.xValue); }); + console.log(res.map(val => val.yValue)); console.log(xAxisData); console.log(yAxisData);