feat: report 报表的数据
This commit is contained in:
parent
2384a1ea71
commit
03d41fc239
|
|
@ -398,7 +398,7 @@ let yAxis = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
name: "成本(元)",
|
name: "成本(元/吨)",
|
||||||
position: "left",
|
position: "left",
|
||||||
alignTicks: true,
|
alignTicks: true,
|
||||||
nameRotate: 30,
|
nameRotate: 30,
|
||||||
|
|
@ -409,9 +409,9 @@ let yAxis = [
|
||||||
color: colors[5],
|
color: colors[5],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
axisLabel: {
|
// axisLabel: {
|
||||||
formatter: "{value}/元",
|
// formatter: "{value}/元",
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
import scEcharts from "@/components/scEcharts";
|
import scEcharts from "@/components/scEcharts";
|
||||||
|
|
@ -469,7 +469,15 @@ export default {
|
||||||
tooltip: tooltip,
|
tooltip: tooltip,
|
||||||
grid: grid,
|
grid: grid,
|
||||||
toolbox: toolbox,
|
toolbox: toolbox,
|
||||||
legend: legend,
|
legend: {
|
||||||
|
top: "2%",
|
||||||
|
data: [
|
||||||
|
"总产量",
|
||||||
|
"分布电耗",
|
||||||
|
"单位产品标煤耗",
|
||||||
|
"成本",
|
||||||
|
],
|
||||||
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
axisTick: {
|
axisTick: {
|
||||||
show: true,
|
show: true,
|
||||||
|
|
@ -987,16 +995,16 @@ export default {
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
let ind = item.hour;
|
let ind = item.hour;
|
||||||
seriesData0[ind] = item.total_production;
|
seriesData0[ind] = item.total_production;
|
||||||
seriesData1[ind] = item.production_hour;
|
// seriesData1[ind] = item.production_hour;
|
||||||
seriesData2[ind] = item.run_rate;
|
// seriesData2[ind] = item.run_rate;
|
||||||
seriesData3[ind] = item.elec_consume_unit;
|
seriesData3[ind] = item.elec_consume_unit;
|
||||||
seriesData4[ind] = item.coal_consume_unit;
|
seriesData4[ind] = item.coal_consume_unit;
|
||||||
seriesData5[ind] = item.production_cost_unit;
|
seriesData5[ind] = item.production_cost_unit;
|
||||||
});
|
});
|
||||||
let options = { ...that.option1 };
|
let options = { ...that.option1 };
|
||||||
options.series[0].data = seriesData0;
|
options.series[0].data = seriesData0;
|
||||||
options.series[1].data = seriesData1;
|
// options.series[1].data = seriesData1;
|
||||||
options.series[2].data = seriesData2;
|
// options.series[2].data = seriesData2;
|
||||||
options.series[3].data = seriesData3;
|
options.series[3].data = seriesData3;
|
||||||
options.series[4].data = seriesData4;
|
options.series[4].data = seriesData4;
|
||||||
options.series[5].data = seriesData5;
|
options.series[5].data = seriesData5;
|
||||||
|
|
|
||||||
|
|
@ -293,8 +293,8 @@ let tooltip = {
|
||||||
triggerOn: "mousemove",
|
triggerOn: "mousemove",
|
||||||
};
|
};
|
||||||
let grid = {
|
let grid = {
|
||||||
right: "10%",
|
right: "11%",
|
||||||
left: "10%",
|
left: "11%",
|
||||||
top: "20%",
|
top: "20%",
|
||||||
};
|
};
|
||||||
let toolbox = {
|
let toolbox = {
|
||||||
|
|
@ -361,7 +361,7 @@ let yAxis = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
name: "成本(元)",
|
name: "成本(元/吨)",
|
||||||
position: "left",
|
position: "left",
|
||||||
alignTicks: true,
|
alignTicks: true,
|
||||||
nameRotate: 30,
|
nameRotate: 30,
|
||||||
|
|
@ -428,7 +428,10 @@ export default {
|
||||||
tooltip: tooltip,
|
tooltip: tooltip,
|
||||||
grid: grid,
|
grid: grid,
|
||||||
toolbox: toolbox,
|
toolbox: toolbox,
|
||||||
legend: legend,
|
legend: {
|
||||||
|
top: "2%",
|
||||||
|
data: ["总产量", "分布电耗", "成本"],
|
||||||
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
axisTick: {
|
axisTick: {
|
||||||
show: true,
|
show: true,
|
||||||
|
|
@ -877,15 +880,15 @@ export default {
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
let ind = item.hour;
|
let ind = item.hour;
|
||||||
seriesData0[ind] = item.total_production;
|
seriesData0[ind] = item.total_production;
|
||||||
seriesData1[ind] = item.production_hour;
|
// seriesData1[ind] = item.production_hour;
|
||||||
seriesData2[ind] = item.run_rate;
|
// seriesData2[ind] = item.run_rate;
|
||||||
seriesData3[ind] = item.production_cost_unit;
|
seriesData3[ind] = item.production_cost_unit;
|
||||||
seriesData4[ind] = item.elec_consume_unit;
|
seriesData4[ind] = item.elec_consume_unit;
|
||||||
});
|
});
|
||||||
let options = { ...that.option1 };
|
let options = { ...that.option1 };
|
||||||
options.series[0].data = seriesData0;
|
options.series[0].data = seriesData0;
|
||||||
options.series[1].data = seriesData1;
|
// options.series[1].data = seriesData1;
|
||||||
options.series[2].data = seriesData2;
|
// options.series[2].data = seriesData2;
|
||||||
options.series[3].data = seriesData4;
|
options.series[3].data = seriesData4;
|
||||||
options.series[4].data = seriesData3;
|
options.series[4].data = seriesData3;
|
||||||
let hourXAxis = [];
|
let hourXAxis = [];
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,7 @@ let yAxis = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
name: "成本(元)",
|
name: "成本(元/吨)",
|
||||||
position: "left",
|
position: "left",
|
||||||
alignTicks: true,
|
alignTicks: true,
|
||||||
offset: 70,
|
offset: 70,
|
||||||
|
|
@ -676,7 +676,7 @@ export default {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
name: "成本(元)",
|
name: "成本(元/吨)",
|
||||||
position: "right",
|
position: "right",
|
||||||
alignTicks: true,
|
alignTicks: true,
|
||||||
offset: 160,
|
offset: 160,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue