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