From d3c5332b87d052a590ea5a92a43cd8b13532da77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 13 Nov 2024 15:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cs/index2.vue | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/views/cs/index2.vue b/src/views/cs/index2.vue index 14d0f05..856c798 100644 --- a/src/views/cs/index2.vue +++ b/src/views/cs/index2.vue @@ -66,13 +66,12 @@
- -
- 烘房{{ k + 1 }} (产量:{{ i.quantity }}车) + 烘房{{ k + 1 }} (产量:{{ ((hfData.find(v=>v&&v.equCode===`H${k+1}`))||{}).quantity ||0 }}车) -
+
-
{{ (i||{}).equName }}
+
{{ ((hfData.find(v=> v&&v.equCode===`H${k+1}`))||{}).equName }}
设备产量: {{ (i||{}).quantity }}
设备状态: {{ - parseFloat((i||{}).quantity) > 0 ? '运行' : '停机' + parseFloat(((hfData.find(v=> v&&v.equCode===`H${k+1}`))||{}).quantity) > 0 ? '运行' : '停机' }}
@@ -96,10 +95,10 @@ :style="`top: ${equipmentLocation[k].top}%;left: ${equipmentLocation[k].left}%;`">
-
{{ (i||{}).equName }}
-
设备产量: {{ (i||{}).quantity }}
+
{{ ((equipmentData.find(v=>v&&v.equCode===`C${k+1}`))||{}).equName }}
+
设备产量: {{ ((equipmentData.find(v=>v&&v.equCode===`C${k+1}`))||{}).quantity }}
设备状态: {{ - parseFloat((i||{}).quantity) > 0 ? '运行' : '停机' + parseFloat(((equipmentData.find(v=>v&&v.equCode===`C${k+1}`))||{}).quantity) > 0 ? '运行' : '停机' }}
@@ -384,8 +383,7 @@ export default { } this.hfData = hfArr this.equipmentData = equipmentArr - console.log(this.hfData) - console.log(this.equipmentData) + // console.log(this.hfData) }) } },