feat: index_enm_bh 修改白灰线的大屏数据
This commit is contained in:
parent
feb0e9bb1c
commit
3ca29f706e
|
@ -214,7 +214,7 @@
|
||||||
<div class="elecItem_wrap">
|
<div class="elecItem_wrap">
|
||||||
<span>本月单位电耗</span>
|
<span>本月单位电耗</span>
|
||||||
<p class="elec_number">
|
<p class="elec_number">
|
||||||
{{ (Number(hotData.elec_consume_unit)).toFixed(2) }}
|
{{ (Number(hotData.elec_consume_unit)+Number(dicData.elec_month)).toFixed(2) }}
|
||||||
<span class="elec_unit">kW·h</span>
|
<span class="elec_unit">kW·h</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
<div class="elecItem_wrap">
|
<div class="elecItem_wrap">
|
||||||
<span>本年单位电耗</span>
|
<span>本年单位电耗</span>
|
||||||
<p class="elec_number">
|
<p class="elec_number">
|
||||||
{{ (Number(hotData.coal_consume_unit)).toFixed(2) }}
|
{{ (Number(hotData.coal_consume_unit)+Number(dicData.elec_year)).toFixed(2) }}
|
||||||
<span class="elec_unit">kW·h</span>
|
<span class="elec_unit">kW·h</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -435,12 +435,8 @@ export default {
|
||||||
coal_consume_unit: 0, //本年单位电耗
|
coal_consume_unit: 0, //本年单位电耗
|
||||||
},
|
},
|
||||||
dicData:{
|
dicData:{
|
||||||
b_sl_elec:0,
|
elec_month:0,
|
||||||
b_sl_coal:0,
|
elec_year:0,
|
||||||
b_sl_enegy:0,
|
|
||||||
b_sn_enegy:0,
|
|
||||||
b_sn_elec:0,
|
|
||||||
b_snbz_elec:0,
|
|
||||||
},
|
},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
tezhongData: [],
|
tezhongData: [],
|
||||||
|
|
|
@ -352,7 +352,7 @@ let toolbox = {
|
||||||
};
|
};
|
||||||
let legend = {
|
let legend = {
|
||||||
top: "2%",
|
top: "2%",
|
||||||
data: ["总产量", "台时产量", "运转率", "分布电耗", "单位产品煤耗"],
|
data: ["总产量", "台时产量", "运转率", "分布电耗"],
|
||||||
};
|
};
|
||||||
let yAxis = [
|
let yAxis = [
|
||||||
{
|
{
|
||||||
|
@ -474,7 +474,7 @@ export default {
|
||||||
toolbox: toolbox,
|
toolbox: toolbox,
|
||||||
legend: {
|
legend: {
|
||||||
top: "2%",
|
top: "2%",
|
||||||
data: ["总产量", "分布电耗", "单位产品煤耗"],
|
data: ["总产量", "分布电耗"],
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
axisTick: {
|
axisTick: {
|
||||||
|
@ -517,21 +517,21 @@ export default {
|
||||||
formatter: "{value}",
|
formatter: "{value}",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
type: "value",
|
// type: "value",
|
||||||
name: "标煤耗",
|
// name: "标煤耗",
|
||||||
position: "right",
|
// position: "right",
|
||||||
alignTicks: true,
|
// alignTicks: true,
|
||||||
axisLine: {
|
// axisLine: {
|
||||||
show: true,
|
// show: true,
|
||||||
lineStyle: {
|
// lineStyle: {
|
||||||
color: colors[4],
|
// color: colors[4],
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
axisLabel: {
|
// axisLabel: {
|
||||||
formatter: "{value}",
|
// formatter: "{value}",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
@ -546,12 +546,12 @@ export default {
|
||||||
yAxisIndex: 1,
|
yAxisIndex: 1,
|
||||||
data: [],
|
data: [],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "单位产品煤耗",
|
// name: "单位产品煤耗",
|
||||||
type: "bar",
|
// type: "bar",
|
||||||
yAxisIndex: 2,
|
// yAxisIndex: 2,
|
||||||
data: [],
|
// data: [],
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
option2: {
|
option2: {
|
||||||
|
@ -608,12 +608,12 @@ export default {
|
||||||
yAxisIndex: 2,
|
yAxisIndex: 2,
|
||||||
data: [],
|
data: [],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "单位产品煤耗",
|
// name: "单位产品煤耗",
|
||||||
type: "bar",
|
// type: "bar",
|
||||||
yAxisIndex: 3,
|
// yAxisIndex: 3,
|
||||||
data: [],
|
// data: [],
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
option3: {
|
option3: {
|
||||||
|
@ -656,12 +656,12 @@ export default {
|
||||||
yAxisIndex: 2,
|
yAxisIndex: 2,
|
||||||
data: [],
|
data: [],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "单位产品煤耗",
|
// name: "单位产品煤耗",
|
||||||
type: "bar",
|
// type: "bar",
|
||||||
yAxisIndex: 3,
|
// yAxisIndex: 3,
|
||||||
data: [],
|
// data: [],
|
||||||
},
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -840,7 +840,6 @@ export default {
|
||||||
}).then((res6) => {
|
}).then((res6) => {
|
||||||
if (res6.length > 0) {
|
if (res6.length > 0) {
|
||||||
let data6 = res6[0];
|
let data6 = res6[0];
|
||||||
console.log(res6[0], that.tableDatas[0][5], '-----------------')
|
|
||||||
that.tableDatas[4][5] = (data6.val/that.tableDatas[0][5]).toFixed(2);
|
that.tableDatas[4][5] = (data6.val/that.tableDatas[0][5]).toFixed(2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1135,7 +1134,7 @@ export default {
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
let data = res[0];
|
let data = res[0];
|
||||||
that.tableDatas[4][5] = (data.val/that.tableDatas[0][5]).toFixed(2);
|
that.tableDatas[4][5] = (data.val/that.tableDatas[0][4]).toFixed(2);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -1158,12 +1157,12 @@ export default {
|
||||||
let ind = item.hour;
|
let ind = item.hour;
|
||||||
seriesData0[ind] = item.total_production;
|
seriesData0[ind] = item.total_production;
|
||||||
seriesData1[ind] = item.elec_consume_unit;
|
seriesData1[ind] = item.elec_consume_unit;
|
||||||
seriesData2[ind] = item.coal_consume_unit;
|
// seriesData2[ind] = item.coal_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;
|
||||||
let hourXAxis = [];
|
let hourXAxis = [];
|
||||||
for (let i = 0; i < 24; i++) {
|
for (let i = 0; i < 24; i++) {
|
||||||
let item = i + "时";
|
let item = i + "时";
|
||||||
|
@ -1195,14 +1194,14 @@ export default {
|
||||||
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;
|
||||||
});
|
});
|
||||||
let options = { ...that.option2 };
|
let options = { ...that.option2 };
|
||||||
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;
|
||||||
let dayXAxis = [];
|
let dayXAxis = [];
|
||||||
let dayss = new Date(year, month, 0).getDate();
|
let dayss = new Date(year, month, 0).getDate();
|
||||||
for (let i = 1; i <= dayss; i++) {
|
for (let i = 1; i <= dayss; i++) {
|
||||||
|
@ -1234,14 +1233,14 @@ export default {
|
||||||
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;
|
||||||
});
|
});
|
||||||
let options = { ...that.option3 };
|
let options = { ...that.option3 };
|
||||||
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;
|
||||||
let monthXAxis = [];
|
let monthXAxis = [];
|
||||||
for (let i = 1; i < 13; i++) {
|
for (let i = 1; i < 13; i++) {
|
||||||
let item = i + "月";
|
let item = i + "月";
|
||||||
|
|
Loading…
Reference in New Issue