From 1a1aa3ebcb011f70a667eb44ede74cbc7ec6b0b1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 11 Mar 2024 13:34:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=8Elocalstorage=E4=B8=AD=E8=8E=B7?= =?UTF-8?q?=E5=8F=96token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/index_enm.vue | 9 +- src/views/home/widgets/index_enm.vue | 577 ++++++++++++++------------- 2 files changed, 314 insertions(+), 272 deletions(-) diff --git a/src/views/bigScreen/index_enm.vue b/src/views/bigScreen/index_enm.vue index 29421f56..62714a85 100644 --- a/src/views/bigScreen/index_enm.vue +++ b/src/views/bigScreen/index_enm.vue @@ -67,7 +67,8 @@
产品产量
+ style="height: 24px;vertical-align:middle;" />产品产量 +
{{ sectionData.total_production }} (t) @@ -76,7 +77,8 @@ -
运转率
+
运转率 +
{{ sectionData.run_rate }} (%) @@ -402,11 +404,10 @@ export default { }, init() { var that = this - // console.log(tool.cookie.get("TOKEN")) if (typeof (WebSocket) === "undefined") { alert("您的浏览器不支持socket") } else { - this.ws = new WebSocket(this.path + tool.cookie.get("TOKEN")) + this.ws = new WebSocket(this.path + tool.data.get("TOKEN")) //监听是否连接成功 this.ws.onopen = () => { // console.log("socket连接成功"); diff --git a/src/views/home/widgets/index_enm.vue b/src/views/home/widgets/index_enm.vue index b5a07eca..5d8e85a6 100644 --- a/src/views/home/widgets/index_enm.vue +++ b/src/views/home/widgets/index_enm.vue @@ -8,63 +8,75 @@
-
-
{{ monthData.电石渣.total_production }}
+
+
{{ monthData.电石渣.total_production + }}
月电石渣产量
90%
-
-
{{ monthData.原料磨.total_production }}
+
+
{{ monthData.原料磨.total_production + }}
月生料产量
95%
-
-
{{ monthData.回转窑.total_production }}
+
+
{{ monthData.回转窑.total_production + }}
月熟料产量
98%
-
-
{{ monthData.水泥磨.total_production }}
+
+
{{ monthData.水泥磨.total_production + }}
月水泥产量
95%
-
-
{{ yearData.电石渣.total_production }}
+
+
{{ + yearData.电石渣.total_production }}
本年累计电石渣产量
- + 75%
-
-
{{ yearData.原料磨.total_production }}
+
+
{{ + yearData.原料磨.total_production }}
本年累计生料产量
- + 70%
-
-
{{ yearData.回转窑.total_production }}
+
+
{{ + yearData.回转窑.total_production }}
本年累计熟料产量
- + 80%
-
-
{{ yearData.水泥磨.total_production }}
+
+
{{ + yearData.水泥磨.total_production }}
本年累计水泥产量
- + 75% -
+
@@ -72,76 +84,92 @@
-
-
{{ monthData.电石渣.elec_consume_unit }}
+
+
{{ monthData.电石渣.elec_consume_unit + }}
月电石渣分布电耗
-
-
{{ monthData.原料磨.elec_consume_unit }}
+
+
{{ monthData.原料磨.elec_consume_unit + }}
月生料分布电耗
-
-
{{ monthData.回转窑.elec_consume_unit }}
+
+
{{ monthData.回转窑.elec_consume_unit + }}
月熟料分布电耗
-
-
{{ monthData.回转窑.coal_consume_unit }}
+
+
{{ monthData.回转窑.coal_consume_unit + }}
熟料月单位标煤耗
-
-
{{ monthData.回转窑.celec_consume_unit }}
-
熟料月综合电耗
-
- -
-
{{ monthData.回转窑.cen_consume_unit }}
-
熟料月综合能耗
-
-
-
{{ monthData.水泥磨.elec_consume_unit }}
-
月水泥粉磨分布电耗
-
-
-
{{ monthData.水泥磨.cen_consume_unit }}
-
水泥月综合能耗
-
+
+
{{ + monthData.回转窑.celec_consume_unit }}
+
熟料月综合电耗
+
+ +
+
{{ + monthData.回转窑.cen_consume_unit }}
+
熟料月综合能耗
+
+
+
{{ + monthData.水泥磨.elec_consume_unit }}
+
月水泥粉磨分布电耗
+
+
+
{{ + monthData.水泥磨.cen_consume_unit }}
+
水泥月综合能耗
+
-
-
{{ yearData.电石渣.elec_consume_unit }}
+
+
{{ yearData.电石渣.elec_consume_unit + }}
本年度电石渣分布电耗
-
-
{{ yearData.原料磨.elec_consume_unit }}
+
+
{{ yearData.原料磨.elec_consume_unit + }}
本年度生料分布电耗
-
-
{{ yearData.回转窑.elec_consume_unit }}
+
+
{{ yearData.回转窑.elec_consume_unit + }}
本年度熟料分布电耗
-
-
{{ yearData.回转窑.coal_consume_unit }}
+
+
{{ yearData.回转窑.coal_consume_unit + }}
本年度熟料单位标煤耗
-
-
{{ yearData.回转窑.celec_consume_unit }}
+
+
{{ + yearData.回转窑.celec_consume_unit }}
本年度熟料综合电耗
-
-
{{ yearData.回转窑.cen_consume_unit }}
+
+
{{ + yearData.回转窑.cen_consume_unit }}
本年度熟料综合能耗
-
-
{{ yearData.水泥磨.elec_consume_unit }}
+
+
{{ + yearData.水泥磨.elec_consume_unit }}
本年度水泥粉磨分布电耗
-
-
-
{{ yearData.水泥磨.cen_consume_unit }}
+
+
+
{{ + yearData.水泥磨.cen_consume_unit }}
本年度水泥综合能耗
-
+
@@ -150,21 +178,25 @@
-
{{ monthData.电石渣.production_cost_unit }}
+
{{ + monthData.电石渣.production_cost_unit }}
月电石渣成本
-
-
{{ monthData.原料磨.production_cost_unit }}
+
+
{{ + monthData.原料磨.production_cost_unit }}
月生料成本
-
-
{{ monthData.回转窑.production_cost_unit }}
+
+
{{ + monthData.回转窑.production_cost_unit }}
月熟料成本
-
-
{{ monthData.水泥磨.production_cost_unit }}
+
+
{{ + monthData.水泥磨.production_cost_unit }}
月水泥成本
-
+
@@ -173,12 +205,12 @@
能耗超标报警
-
+
设备检验
-
+
@@ -189,216 +221,225 @@