diff --git a/src/views/enm_cogeneration/report.vue b/src/views/enm_cogeneration/report.vue index b5e3ba47..afd581ce 100644 --- a/src/views/enm_cogeneration/report.vue +++ b/src/views/enm_cogeneration/report.vue @@ -347,7 +347,7 @@ export default { mgroup: "3347217246321065984", }, tableDatas: [ - ["产量", "总发电量(KW·h/t)", 0, 0, 0, 0, 0, 0, 0, 0], + ["产量", "总发电量(KW·h)", 0, 0, 0, 0, 0, 0, 0, 0], ["产量", "单位发电量(KW·h/t)", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转时间(h)", "/", 0, 0, 0, 0, 0, 0, 0], ["运转时间", "运转率(%)", "/", 0, 0, 0, 0, 0, 0, 0], diff --git a/src/views/enm_limestone/report.vue b/src/views/enm_limestone/report.vue index e4690c1a..1f329d49 100644 --- a/src/views/enm_limestone/report.vue +++ b/src/views/enm_limestone/report.vue @@ -24,11 +24,10 @@ > - 石灰石破碎工段生产报告 + 石灰石破碎工段生产报告 参数 - 上个小时 昨日 本月 本年 @@ -54,12 +53,12 @@ {{ item[0] }} {{ item[1] }} - {{ item[2] }} - + --> -
+
本月生产参数统计图
{ @@ -514,22 +513,22 @@ export default { that.tableDatas[1][3] = data3.elec_consume_unit; } }); - //上小时 - let params4 = {}; - params4.page = 0; - params4.year = year_h; - params4.month = month_h; - params4.day = days_h; - params4.hour = hours_h; - params4.type = "hour_st"; - params4.mgroup = that.query.mgroup; - that.$API.enm.enstat.req(params4).then((res4) => { - if (res4.length > 0) { - let data4 = res4[0]; - that.tableDatas[0][2] = data4.total_production; - that.tableDatas[1][2] = data4.elec_consume_unit; - } - }); + // //上小时 + // let params4 = {}; + // params4.page = 0; + // params4.year = year_h; + // params4.month = month_h; + // params4.day = days_h; + // params4.hour = hours_h; + // params4.type = "hour_st"; + // params4.mgroup = that.query.mgroup; + // that.$API.enm.enstat.req(params4).then((res4) => { + // if (res4.length > 0) { + // let data4 = res4[0]; + // that.tableDatas[0][2] = data4.total_production; + // that.tableDatas[1][2] = data4.elec_consume_unit; + // } + // }); //月目标 let params5 = {}; params5.page = 0; @@ -612,45 +611,45 @@ export default { } }); }); - that.getHourData(); + // that.getHourData(); that.getDayData(); that.getMonthData(); }); }); }, methods: { - //获取小时数据 - getHourData() { - let that = this; - let query = {}; - query.page = 0; - query.year_s = that.year; - query.month_s = that.month; - query.day_s = that.days; - query.type = "hour_s"; - query.mgroup = that.query.mgroup; - this.$API.enm.enstat.req(query).then((response) => { - let seriesData0 = [], - seriesData1 = []; - console.log("获取小时数据", response); - let data = response; - data.forEach((item) => { - let ind = item.hour - 1; - seriesData0[ind] = item.total_production; - seriesData1[ind] = item.elec_consume_unit; - }); - let options = { ...that.option1 }; - options.series[0].data = seriesData0; - options.series[1].data = seriesData1; - let hourXAxis = []; - for (let i = 1; i <= that.hours; i++) { - let item = i + "时"; - hourXAxis.push(item); - } - options.xAxis.data = hourXAxis; - that.optionHour = options; - }); - }, + // //获取小时数据 + // getHourData() { + // let that = this; + // let query = {}; + // query.page = 0; + // query.year_s = that.year; + // query.month_s = that.month; + // query.day_s = that.days; + // query.type = "hour_s"; + // query.mgroup = that.query.mgroup; + // this.$API.enm.enstat.req(query).then((response) => { + // let seriesData0 = [], + // seriesData1 = []; + // console.log("获取小时数据", response); + // let data = response; + // data.forEach((item) => { + // let ind = item.hour - 1; + // seriesData0[ind] = item.total_production; + // seriesData1[ind] = item.elec_consume_unit; + // }); + // let options = { ...that.option1 }; + // options.series[0].data = seriesData0; + // options.series[1].data = seriesData1; + // let hourXAxis = []; + // for (let i = 1; i <= that.hours; i++) { + // let item = i + "时"; + // hourXAxis.push(item); + // } + // options.xAxis.data = hourXAxis; + // that.optionHour = options; + // }); + // }, //获取天数据 getDayData() { let that = this;