From 03d41fc2396cf72d8f782068cf020aa8fbd5068e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 27 Dec 2024 19:19:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20report=20=E6=8A=A5=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enm_kiln/report.vue | 26 +++++++++++++++++--------- src/views/enm_mill/report.vue | 19 +++++++++++-------- src/views/enm_rm_copy/report.vue | 4 ++-- 3 files changed, 30 insertions(+), 19 deletions(-) diff --git a/src/views/enm_kiln/report.vue b/src/views/enm_kiln/report.vue index 3656e39c..aba33ef5 100644 --- a/src/views/enm_kiln/report.vue +++ b/src/views/enm_kiln/report.vue @@ -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; diff --git a/src/views/enm_mill/report.vue b/src/views/enm_mill/report.vue index b0dbfaf9..344978c1 100644 --- a/src/views/enm_mill/report.vue +++ b/src/views/enm_mill/report.vue @@ -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 = []; diff --git a/src/views/enm_rm_copy/report.vue b/src/views/enm_rm_copy/report.vue index 558383f6..04620a6d 100644 --- a/src/views/enm_rm_copy/report.vue +++ b/src/views/enm_rm_copy/report.vue @@ -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,