master
夜笙歌 2 years ago
parent 5ab62ad776
commit fbae41472e

@ -1531,12 +1531,8 @@ const multipleThreeDimensionalCylindrical = (res, ids) => {
const OEEStatistics = (res, ids) => { const OEEStatistics = (res, ids) => {
console.log(res); console.log(res);
let mycharts = echarts.init(ids); let mycharts = echarts.init(ids);
let xAxisData = [] let xAxisData = res.map(val => val.yValue);
let yAxisData = [] let yAxisData = res.map(val => val.xValue);
res.forEach((item) => {
xAxisData.push(item.yValue);
yAxisData.push(item.xValue);
});
console.log(xAxisData); console.log(xAxisData);
console.log(yAxisData); console.log(yAxisData);

@ -1537,6 +1537,7 @@ const OEEStatistics = (res, ids) => {
xAxisData.push(item.yValue); xAxisData.push(item.yValue);
yAxisData.push(item.xValue); yAxisData.push(item.xValue);
}); });
console.log(res.map(val => val.yValue));
console.log(xAxisData); console.log(xAxisData);
console.log(yAxisData); console.log(yAxisData);

Loading…
Cancel
Save