fix:时间与数据错位
This commit is contained in:
parent
6999a172cd
commit
771bcc2add
|
@ -478,7 +478,7 @@ export default {
|
|||
options.series[0].data = seriesData0;
|
||||
options.series[1].data = seriesData1;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -608,7 +608,7 @@ export default {
|
|||
seriesData3 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production; //总产量
|
||||
seriesData1[ind] = item.production_hour; //台时产量
|
||||
seriesData2[ind] = item.run_rate; //运转率
|
||||
|
@ -620,7 +620,7 @@ export default {
|
|||
options.series[2].data = seriesData2;
|
||||
options.series[3].data = seriesData3;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -477,7 +477,7 @@ export default {
|
|||
seriesData1 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
if (item.ep_monitored_name == "煤磨排风机主电机") {
|
||||
seriesData0[ind] = item.elec_consume_unit;
|
||||
} else if (item.ep_monitored_name == "煤磨主电机") {
|
||||
|
|
|
@ -670,7 +670,7 @@ export default {
|
|||
seriesData3 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production; //总产量
|
||||
seriesData1[ind] = item.production_hour; //台时产量
|
||||
seriesData2[ind] = item.run_rate; //运转率
|
||||
|
|
|
@ -825,7 +825,7 @@ export default {
|
|||
seriesData4 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = item.production_hour; //发电功率
|
||||
seriesData2[ind] = item.run_hour;
|
||||
|
|
|
@ -620,7 +620,7 @@ export default {
|
|||
options.series[6].data = seriesData4;
|
||||
options.series[7].data = seriesData4;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -874,7 +874,7 @@ export default {
|
|||
seriesData5 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = item.production_hour;
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
@ -890,7 +890,7 @@ export default {
|
|||
options.series[4].data = seriesData4;
|
||||
options.series[5].data = seriesData5;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -532,7 +532,7 @@ export default {
|
|||
seriesData2 = [];
|
||||
response.forEach((item) => {
|
||||
console.log(item.ep_monitored_name);
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
if (item.ep_monitored_name == "尾排风机") {
|
||||
seriesData0[ind] = item.elec_consume_unit;
|
||||
} else if (item.ep_monitored_name == "高温风机") {
|
||||
|
|
|
@ -866,7 +866,7 @@ export default {
|
|||
seriesData4 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = item.production_hour;
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
|
|
@ -572,7 +572,7 @@ export default {
|
|||
options.series[5].data = seriesData4;
|
||||
options.series[6].data = seriesData4;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -785,7 +785,7 @@ export default {
|
|||
seriesData4 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = item.production_hour;
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
@ -799,7 +799,7 @@ export default {
|
|||
options.series[3].data = seriesData3;
|
||||
options.series[4].data = seriesData4;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -539,7 +539,7 @@ export default {
|
|||
options.series[3].data = seriesData3;
|
||||
options.series[4].data = seriesData4;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -982,7 +982,7 @@ export default {
|
|||
console.log("获取小时数据", response);
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = Number(item.production_hour).toFixed(2);
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
@ -996,7 +996,7 @@ export default {
|
|||
options.series[3].data = seriesData3;
|
||||
options.series[4].data = seriesData4;
|
||||
let hourXAxis = [];
|
||||
for (let i = 1; i <= that.hours; i++) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
let item = i + "时";
|
||||
hourXAxis.push(item);
|
||||
}
|
||||
|
|
|
@ -489,7 +489,7 @@ export default {
|
|||
seriesData1 = [];
|
||||
response.forEach((item) => {
|
||||
console.log(item.ep_monitored_name);
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
if (item.ep_monitored_name == "辊压机") {
|
||||
seriesData0[ind] = item.elec_consume_unit;
|
||||
} else if (item.ep_monitored_name == "循环风机") {
|
||||
|
|
|
@ -807,7 +807,7 @@ export default {
|
|||
seriesData3 = [];
|
||||
let data = response;
|
||||
data.forEach((item) => {
|
||||
let ind = item.hour - 1;
|
||||
let ind = item.hour;
|
||||
seriesData0[ind] = item.total_production;
|
||||
seriesData1[ind] = Number(item.production_hour).toFixed(2);
|
||||
seriesData2[ind] = item.run_rate;
|
||||
|
|
Loading…
Reference in New Issue