fix:大屏数据修改
This commit is contained in:
parent
f91f0dbb49
commit
1da3fc9261
|
@ -898,12 +898,12 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
let params = {
|
let params = {
|
||||||
type: "month_s",
|
type: "month_s",
|
||||||
year_s: that.year,
|
year_s: that.currentYear,
|
||||||
monnth: that.month,
|
month_s: that.currentMonth,
|
||||||
};
|
};
|
||||||
that.$API.enm.enstat.req(params).then((res) => {
|
that.$API.enm.enstat.req(params).then((res) => {
|
||||||
// console.log("工序电耗", res.results);
|
|
||||||
let data = res.results;
|
let data = res.results;
|
||||||
|
console.log("工序电耗", data);
|
||||||
let seriesData = [0, 0, 0, 0, 0];
|
let seriesData = [0, 0, 0, 0, 0];
|
||||||
data.forEach((item, index) => {
|
data.forEach((item, index) => {
|
||||||
if (item.mgroup_name == "石灰石破碎") {
|
if (item.mgroup_name == "石灰石破碎") {
|
||||||
|
@ -913,6 +913,7 @@ export default {
|
||||||
} else if (item.mgroup_name == "回转窑") {
|
} else if (item.mgroup_name == "回转窑") {
|
||||||
seriesData[2] = item.elec_consume;
|
seriesData[2] = item.elec_consume;
|
||||||
} else if (item.mgroup_name == "余热发电") {
|
} else if (item.mgroup_name == "余热发电") {
|
||||||
|
console.log("余热发电工序电耗", item.elec_consume);
|
||||||
seriesData[3] = item.elec_consume;
|
seriesData[3] = item.elec_consume;
|
||||||
} else if (item.mgroup_name == "煤磨") {
|
} else if (item.mgroup_name == "煤磨") {
|
||||||
seriesData[4] = item.elec_consume;
|
seriesData[4] = item.elec_consume;
|
||||||
|
@ -962,8 +963,11 @@ export default {
|
||||||
|
|
||||||
let chartDom6 = document.getElementById("pieChart");
|
let chartDom6 = document.getElementById("pieChart");
|
||||||
let myChart6 = echarts.init(chartDom6);
|
let myChart6 = echarts.init(chartDom6);
|
||||||
|
let colors = [];
|
||||||
|
colors.push(that.linearGradientColors[0]);
|
||||||
|
colors.push(that.linearGradientColors[3]);
|
||||||
let option6 = {
|
let option6 = {
|
||||||
color: that.linearGradientColors,
|
color: colors,
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "item",
|
trigger: "item",
|
||||||
},
|
},
|
||||||
|
@ -1460,7 +1464,7 @@ export default {
|
||||||
year_s: that.currentYear,
|
year_s: that.currentYear,
|
||||||
month_s: that.currentMonth,
|
month_s: that.currentMonth,
|
||||||
page: 0,
|
page: 0,
|
||||||
query: "{total_production,run_rate,elec_consume_unit}",
|
query: "{total_production,run_rate,elec_consume_unit,production_elec_unit}",
|
||||||
};
|
};
|
||||||
that.$API.enm.enstat.req(query).then((res) => {
|
that.$API.enm.enstat.req(query).then((res) => {
|
||||||
let info = {
|
let info = {
|
||||||
|
@ -1470,7 +1474,7 @@ export default {
|
||||||
if (value == "余热发电") {
|
if (value == "余热发电") {
|
||||||
info.rows = [
|
info.rows = [
|
||||||
{
|
{
|
||||||
label: "发电量(t)",
|
label: "发电量(kwh)",
|
||||||
field: "total_production",
|
field: "total_production",
|
||||||
value: res[0].total_production,
|
value: res[0].total_production,
|
||||||
},
|
},
|
||||||
|
@ -1480,8 +1484,8 @@ export default {
|
||||||
value: res[0].run_rate,
|
value: res[0].run_rate,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "吨熟料发电量(kwh)",
|
label: "吨熟料发电量(kwh/t)",
|
||||||
field: "elec_consume_unit",
|
field: "production_elec_unit",
|
||||||
value: res[0].production_elec_unit
|
value: res[0].production_elec_unit
|
||||||
? res[0].production_elec_unit
|
? res[0].production_elec_unit
|
||||||
: "0.00",
|
: "0.00",
|
||||||
|
@ -2173,7 +2177,7 @@ export default {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: #ffa500;
|
background: rgb(255, 0, 135);
|
||||||
}
|
}
|
||||||
/deep/ .el-table,
|
/deep/ .el-table,
|
||||||
.el-table__body,
|
.el-table__body,
|
||||||
|
|
Loading…
Reference in New Issue