From 1da3fc9261c696425e5a92068d80cf55deb711c8 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 2 Jul 2024 11:02:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A4=A7=E5=B1=8F=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/index_enm_ly.vue | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/bigScreen/index_enm_ly.vue b/src/views/bigScreen/index_enm_ly.vue index b0356353..09cb95d2 100644 --- a/src/views/bigScreen/index_enm_ly.vue +++ b/src/views/bigScreen/index_enm_ly.vue @@ -898,12 +898,12 @@ export default { let that = this; let params = { type: "month_s", - year_s: that.year, - monnth: that.month, + year_s: that.currentYear, + month_s: that.currentMonth, }; that.$API.enm.enstat.req(params).then((res) => { - // console.log("工序电耗", res.results); let data = res.results; + console.log("工序电耗", data); let seriesData = [0, 0, 0, 0, 0]; data.forEach((item, index) => { if (item.mgroup_name == "石灰石破碎") { @@ -913,6 +913,7 @@ export default { } else if (item.mgroup_name == "回转窑") { seriesData[2] = item.elec_consume; } else if (item.mgroup_name == "余热发电") { + console.log("余热发电工序电耗", item.elec_consume); seriesData[3] = item.elec_consume; } else if (item.mgroup_name == "煤磨") { seriesData[4] = item.elec_consume; @@ -962,8 +963,11 @@ export default { let chartDom6 = document.getElementById("pieChart"); let myChart6 = echarts.init(chartDom6); + let colors = []; + colors.push(that.linearGradientColors[0]); + colors.push(that.linearGradientColors[3]); let option6 = { - color: that.linearGradientColors, + color: colors, tooltip: { trigger: "item", }, @@ -1460,7 +1464,7 @@ export default { year_s: that.currentYear, month_s: that.currentMonth, 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) => { let info = { @@ -1470,7 +1474,7 @@ export default { if (value == "余热发电") { info.rows = [ { - label: "发电量(t)", + label: "发电量(kwh)", field: "total_production", value: res[0].total_production, }, @@ -1480,8 +1484,8 @@ export default { value: res[0].run_rate, }, { - label: "吨熟料发电量(kwh)", - field: "elec_consume_unit", + label: "吨熟料发电量(kwh/t)", + field: "production_elec_unit", value: res[0].production_elec_unit ? res[0].production_elec_unit : "0.00", @@ -2173,7 +2177,7 @@ export default { width: 10px; height: 10px; border-radius: 5px; - background: #ffa500; + background: rgb(255, 0, 135); } /deep/ .el-table, .el-table__body,