diff --git a/src/components/scEnm/lineChartsdialog.vue b/src/components/scEnm/lineChartsdialog.vue index f5272061..a1b70c78 100644 --- a/src/components/scEnm/lineChartsdialog.vue +++ b/src/components/scEnm/lineChartsdialog.vue @@ -310,9 +310,9 @@ export default { if (that.cate == "总产量(t)" || that.cate == "出厂水泥合计(t)") { that.cateName = "total_production"; } else if ( - that.cate == "单位产品分布电耗(KW·h/t)" || - that.cate == "生料分布电耗(KW·h/t)" || - that.cate == "煤磨分布电耗(KW·h/t)" + that.cate == "单位产品分布电耗(kW·h/t)" || + that.cate == "生料分布电耗(kW·h/t)" || + that.cate == "煤磨分布电耗(kW·h/t)" ) { that.cateName = "elec_consume_unit"; } else if (that.cate == "台时产量(t/h)") { @@ -328,17 +328,17 @@ export default { that.cate == "生料成本(元/吨)" ) { that.cateName = "production_cost_unit"; - } else if (that.cate == "单位产品综合电耗(KW·h/t)") { + } else if (that.cate == "单位产品综合电耗(kW·h/t)") { that.cateName = "celec_consume_unit"; } else if (that.cate == "单位产品标煤耗(kgce/t)") { that.cateName = "coal_consume_unit"; } else if (that.cate == "单位产品综合能耗(kgce/t)") { that.cateName = "cen_consume_unit"; - } else if (that.cate == "发电功率(KW·h)") { + } else if (that.cate == "发电功率(kW·h)") { that.cateName = "production_hour"; - } else if (that.cate == "吨熟料发电量(KW·h/t)") { + } else if (that.cate == "吨熟料发电量(kW·h/t)") { that.cateName = "production_elec_unit"; - } else if (that.cate == "总电耗(KW·h)"||that.cate =="总电量(KW·h)") { + } else if (that.cate == "总电耗(kW·h)"||that.cate =="总电量(kW·h)") { that.cateName = "elec_consume"; }else if (that.cate == "消耗") { that.cateName = "amount_consume"; diff --git a/src/views/bigScreen/index_enm.vue b/src/views/bigScreen/index_enm.vue index 253eafd7..4a2ddc3a 100644 --- a/src/views/bigScreen/index_enm.vue +++ b/src/views/bigScreen/index_enm.vue @@ -176,7 +176,7 @@ font-weight: 500; font-size: 12px; " - >kw.hkW·h @@ -200,7 +200,7 @@
{{ (Number(hotData.celec_consume_unit)+Number(dicData.b_sl_elec)).toFixed(2) }} - kw.h/t + kW·h/t
@@ -251,7 +251,7 @@ 水泥工序电耗{{ (Number(hotData.sn_elec_consume_unit)+Number(dicData.b_sn_elec)).toFixed(2) }} - kw.h/t + kW·h/t
@@ -260,7 +260,7 @@ 水泥包装工序电耗{{(Number(hotData.bz_elec_consume_unit) + Number(dicData.b_snbz_elec)).toFixed(2) }} - kw.h/t + kW·h/t
@@ -819,7 +819,7 @@ export default { option1.color = ['#FFFF00','#CC00FF', '#FFBF00'] option1.legend.data = [ { - name: "熟料", + name: "熟料(t)", textStyle: { color: "#fff", }, @@ -829,7 +829,7 @@ export default { }, }, { - name: "水泥", + name: "水泥(t)", textStyle: { color: "#fff", }, @@ -839,7 +839,7 @@ export default { }, }, { - name: "出厂水泥", + name: "出厂水泥(t)", textStyle: { color: "#fff", }, @@ -851,7 +851,7 @@ export default { ]; option1.series = [ { - name: "熟料", + name: "熟料(t)", type: "line", smooth: true, lineStyle: { @@ -868,7 +868,7 @@ export default { data: seriesData, }, { - name: "水泥", + name: "水泥(t)", type: "line", smooth: true, lineStyle: { @@ -885,7 +885,7 @@ export default { data: seriesData1, }, { - name: "出厂水泥", + name: "出厂水泥(t)", type: "line", smooth: true, lineStyle: { @@ -1048,7 +1048,7 @@ export default { option3.color = ['#FFBF00','#6495ED', '#CC00FF'] option3.legend.data = [ { - name: "生活水", + name: "生活水(t)", textStyle: { color: "#fff", }, @@ -1058,7 +1058,7 @@ export default { }, }, { - name: "绿化水", + name: "绿化水(t)", textStyle: { color: "#fff", }, @@ -1068,7 +1068,7 @@ export default { }, }, { - name: "工业水", + name: "工业水(t)", textStyle: { color: "#fff", }, @@ -1080,7 +1080,7 @@ export default { ]; option3.series = [ { - name: '生活水', + name: '生活水(t)', type: 'line', data: seriesData1, lineStyle: { @@ -1088,7 +1088,7 @@ export default { }, }, { - name: '绿化水', + name: '绿化水(t)', type: 'line', data: seriesData3, lineStyle: { @@ -1096,7 +1096,7 @@ export default { }, }, { - name: '工业水', + name: '工业水(t)', type: 'line', data: seriesData5, lineStyle: { @@ -1285,25 +1285,26 @@ export default { let myChart = echarts.init(chartDom); // 初始化各个series数据数组 - let seriesData = new Array(12).fill(0); - let seriesData1 = new Array(12).fill(0); + let seriesData = new Array(31).fill(0); + let seriesData1 = new Array(31).fill(0); // 定义查询参数的生成函数 function generateQuery(mgroupId) { return { page: 0, //获取当前年的第一个月 - start_time: that.currentYear + "-01-01 00:00:00", - end_time: that.currentYear + "-12-31 00:00:00", - type: "month_s", + year_s: that.currentYear, + month_s: that.currentMonth, + type: "day_s", mgroup: mgroupId, }; } function generateQueryMpoint(mpointId) { return { page: 0, - type: "month", - year: that.currentYear, + type: "day_s", + year_s: that.currentYear, + month_s: that.currentMonth, mpoint: mpointId, }; } @@ -1312,18 +1313,18 @@ export default { this.$API.enm.enstat.req(query1).then((response) => { response.forEach((item) => { if (item.qua_data.length > 0) { - let ind = item.month_s - 1; + let ind = item.day_s - 1; seriesData[ind] = item.total_production || 0; } }); - // 获取每个月的全厂电量 + // 获取每日的全厂电量 let query2 = generateQueryMpoint("3631880992400515072"); return this.$API.enm.mpointstat.list.req(query2); }).then((response) => { let maxId; response.forEach((item) => { - let ind = item.month - 1; - maxId = 12; + let ind = item.day_s - 1; + maxId = 31; seriesData1[ind] = item.val || 0; }); // 更新图表数据 @@ -1340,7 +1341,7 @@ export default { }, }, { - name: "全厂电量(kwh)", + name: "全厂电量(kW·h)", textStyle: { color: "#fff", }, @@ -1371,7 +1372,7 @@ export default { }, { - name: '全厂电量(kwh)', + name: '全厂电量(kW·h)', type: 'line', yAxisIndex: 1, data: seriesData1, @@ -1389,20 +1390,7 @@ export default { }, }, ]; - option5.xAxis.data = [ - "1月", - "2月", - "3月", - "4月", - "5月", - "6月", - "7月", - "8月", - "9月", - "10月", - "11月", - "12月", - ]; + // option5.xAxis.data = that.datelist; myChart.setOption(option5); // 设置更新后的图表 let index3 = 0; intervalId = setInterval(function () { @@ -1682,7 +1670,7 @@ export default { value: 100, }, { - label: "单位电耗(kwh)", + label: "单位电耗(kW·h)", field: "elec_consume_unit", value: 100, }, @@ -1926,7 +1914,7 @@ export default { if (value == "余热发电") { info.rows = [ { - label: "发电量(kwh)", + label: "发电量(kW·h)", field: "total_production", value: res[0].total_production, }, @@ -1936,7 +1924,7 @@ export default { value: res[0].run_rate, }, { - label: "发电量(kwh/t)", + label: "发电量(kW·h/t)", field: "production_elec_unit", value: res[0].production_elec_unit ? res[0].production_elec_unit @@ -1956,7 +1944,7 @@ export default { value: res[0].run_rate, }, { - label: "单位电耗(kwh)", + label: "单位电耗(kW·h)", field: "elec_consume_unit", value: res[0].elec_consume_unit, }, diff --git a/src/views/bigScreen/index_enm_ly.vue b/src/views/bigScreen/index_enm_ly.vue index 4f62013c..b0e7d760 100644 --- a/src/views/bigScreen/index_enm_ly.vue +++ b/src/views/bigScreen/index_enm_ly.vue @@ -170,7 +170,7 @@ font-weight: 500; font-size: 12px; " - >kwhkW·h @@ -237,7 +237,7 @@ 当月发电量{{ hotData.total_production }} - kwh + kW·h
@@ -255,7 +255,7 @@ 发电量{{ hotData.production_elec_unit }} - kwh + kW·h
@@ -274,7 +274,7 @@ 自用电量{{ hotData.elec_consume }} - kwh + kW·h
@@ -1232,7 +1232,7 @@ export default { value: 100, }, { - label: "单位电耗(kwh)", + label: "单位电耗(kW·h)", field: "elec_consume_unit", value: 100, }, @@ -1475,7 +1475,7 @@ export default { if (value == "余热发电") { info.rows = [ { - label: "发电量(kwh)", + label: "发电量(kW·h)", field: "total_production", value: res[0].total_production, }, @@ -1485,7 +1485,7 @@ export default { value: res[0].run_rate, }, { - label: "发电量(kwh/t)", + label: "发电量(kW·h/t)", field: "production_elec_unit", value: res[0].production_elec_unit ? res[0].production_elec_unit @@ -1505,7 +1505,7 @@ export default { value: res[0].run_rate, }, { - label: "单位电耗(kwh)", + label: "单位电耗(kW·h)", field: "elec_consume_unit", value: res[0].elec_consume_unit, }, diff --git a/src/views/em/equipmentjl.vue b/src/views/em/equipmentjl.vue index b7cb118f..8faf6841 100644 --- a/src/views/em/equipmentjl.vue +++ b/src/views/em/equipmentjl.vue @@ -51,6 +51,8 @@ +