diff --git a/.env.development b/.env.development index 58b17e13..0f8b0cf5 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ NODE_ENV = development VUE_APP_TITLE = '托克逊能源管理平台' # VUE_APP_TITLE = '中建材光子科技有限公司' # VUE_APP_TITLE = '超低排放系统' -VUE_APP_PJ = 'pf' +VUE_APP_PJ = '' # 接口地址 #VUE_APP_API_BASEURL = http://1.203.161.103:2800/api @@ -16,9 +16,9 @@ VUE_APP_PJ = 'pf' # VUE_APP_API_BASEURL = http://127.0.0.1:2226/api #测试环境 - VUE_APP_API_BASEURL = http://49.232.14.174:2226/api + VUE_APP_API_BASEURL = http://10.50.211.228:2250/api #VUE_APP_API_BASEURL = http://127.0.0.1:2226/api - VUE_APP_BASEURL = http://49.232.14.174:2226 + VUE_APP_BASEURL = http://10.50.211.228:2250 #VUE_APP_BASEURL = http://127.0.0.1:2226 # #光子 diff --git a/src/components/scEnm/lineChartsdialog.vue b/src/components/scEnm/lineChartsdialog.vue index ae6a01f4..d3ba9b8c 100644 --- a/src/components/scEnm/lineChartsdialog.vue +++ b/src/components/scEnm/lineChartsdialog.vue @@ -304,8 +304,9 @@ export default { this.visible = this.modelValue; this.option.legend.data.push(that.cate); this.option.series[0].name = that.cate; + console.log(that.mgroup) if (that.mgroup) { - if (that.cate == "总产量(t)") { + if (that.cate == "总产量(t)"|| that.cate =="熟料(t)" ||that.cate == "出厂水泥合计(t)") { that.cateName = "total_production"; } else if ( that.cate == "单位产品分布电耗(KW·h/t)" || diff --git a/src/config/route.js b/src/config/route.js index 0c85fbfa..5a0f3731 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -254,7 +254,7 @@ const routes = [ name: "slag_power", path: "/enm_slag/power", meta: { - title: "单位产品电耗", + title: "主要设备单耗", // icon: "el-icon-odometer", perms: ["enm_slag"], }, @@ -360,7 +360,7 @@ const routes = [ name: "power", path: "/enm_rm/power", meta: { - title: "单位产品电耗", + title: "主要设备单耗", // icon: "el-icon-odometer", perms: ["enm_rm"], }, @@ -486,7 +486,7 @@ const routes = [ name: "coal_power", path: "/enm_coal/power", meta: { - title: "单位产品电耗", + title: "主要设备单耗", // icon: "el-icon-odometer", perms: ["enm_coal"], }, @@ -612,7 +612,7 @@ const routes = [ name: "kiln_power", path: "/enm_kiln/power", meta: { - title: "单位产品电耗", + title: "主要设备单耗", // icon: "el-icon-odometer", perms: ["enm_kiln"], }, @@ -801,7 +801,7 @@ const routes = [ name: "mill_power", path: "/enm_mill/power", meta: { - title: "单位产品电耗", + title: "主要设备单耗", // icon: "el-icon-odometer", perms: ["enm_mill"], }, @@ -920,7 +920,7 @@ const routes = [ name: "enm_energy", path: "/enm_energy", meta: { - title: "电量报表", + title: "能源消耗报表", icon: "sc-icon-elec", type: "menu", perms: ["enm_energy"], @@ -990,7 +990,7 @@ const routes = [ name: "hourBase", path: "/enm_energy/hourBase", meta: { - title: "电量消耗小时报表", + title: "电量消耗逐时报表", // icon: "el-icon-grid", perms: ["hour_base"], }, diff --git a/src/views/enm_base/mgroup_form.vue b/src/views/enm_base/mgroup_form.vue index 8245cc67..b6984122 100644 --- a/src/views/enm_base/mgroup_form.vue +++ b/src/views/enm_base/mgroup_form.vue @@ -246,21 +246,32 @@ export default { that.$emit("success", that.form, that.mode); that.visible = false; that.$message.success("操作成功"); + }) + .catch((error) => { + that.isSaveing = false; + that.$message.error("操作失败,请稍后重试"); + console.error("Error creating mgroup:", error); }); } else { - res = that.$API.mtm.mgroup.update + that.$API.mtm.mgroup.update .req(that.form.id, that.form) .then((res) => { that.isSaveing = false; that.$emit("success", that.form, that.mode); that.visible = false; that.$message.success("操作成功"); + }) + .catch((error) => { + that.isSaveing = false; + that.$message.error("操作失败,请稍后重试"); + console.error("Error updating mgroup:", error); }); - } - } - }); + } + } + }); }, + //设置过滤项 setFilters(filters) { this.selectionFilters = filters; diff --git a/src/views/enm_coal/power.vue b/src/views/enm_coal/power.vue index 4d54df7c..c4027f73 100644 --- a/src/views/enm_coal/power.vue +++ b/src/views/enm_coal/power.vue @@ -530,6 +530,9 @@ export default { let data = response; data.forEach((item) => { let index = that.mpoints.indexOf(item.mpoint_name); //第几个mpoint + if(index==-1){ + return; + } let ind = item.hour; //xAxis seriesData[index][ind] = item.elec_consume_unit; }); @@ -571,6 +574,9 @@ export default { let data = response; data.forEach((item) => { let index = that.mpoints.indexOf(item.mpoint_name); //第几个mpoint + if(index==-1){ + return; + } let ind = item.day_s - 1; seriesData[index][ind] = item.elec_consume_unit; }); @@ -613,6 +619,9 @@ export default { data.forEach((item) => { let ind = item.month_s - 1; let index = that.mpoints.indexOf(item.mpoint_name); //第几个mpoint + if(index==-1){ + return; + } seriesData[index][ind] = item.elec_consume_unit; }); let options = { ...that.option3 }; diff --git a/src/views/enm_energy/energy.vue b/src/views/enm_energy/energy.vue index 5e2d7e94..01844483 100644 --- a/src/views/enm_energy/energy.vue +++ b/src/views/enm_energy/energy.vue @@ -88,37 +88,41 @@
生产月报 | +生产月报 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
序号 | 项目 | -环比增长 | -同比增长 | +月数据 | +环比增长 | +同比增长 | |||||||||
{{item[1]}} | {{item[1]}} | {{item[2]}} | -{{item[3]}} | -{{item[3]}} | +{{item[3]}} | {{item[4]}} | -{{item[5]}} | +{{item[5]}} |