From 21d3a6a68c0a40321da3c5bdb73c66657d351bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Mon, 11 Nov 2024 15:55:58 +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 | 14 +++++++++----- src/views/cs/index3.vue | 5 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/cs/index2.vue b/src/views/cs/index2.vue index cd41368..ae15786 100644 --- a/src/views/cs/index2.vue +++ b/src/views/cs/index2.vue @@ -83,7 +83,7 @@ 生产中
-
{{ i.equName }}
+
{{ (i||{}).equName }}
设备产量: {{ i.quantity }}
设备状态: {{ parseFloat(i.quantity) > 0 ? '运行' : '停机' @@ -96,10 +96,10 @@ :style="`top: ${equipmentLocation[k].top}%;left: ${equipmentLocation[k].left}%;`">
-
{{ i.equName }}
-
设备产量: {{ i.quantity }}
+
{{ (i||{}).equName }}
+
设备产量: {{ (i||{}).quantity }}
设备状态: {{ - parseFloat(i.quantity) > 0 ? '运行' : '停机' + parseFloat((i||{}).quantity) > 0 ? '运行' : '停机' }}
@@ -108,7 +108,7 @@ v-for="(i,k) in ringLocation">
-
@@ -350,6 +350,8 @@ export default { }, getData() { + + let time = parseTime(new Date(), '{h}-{i}').split('-') let i = parseFloat(time[0]) || 0 let s = parseFloat(time [1]) || 0 @@ -382,6 +384,8 @@ export default { } this.hfData = hfArr this.equipmentData = equipmentArr + console.log(this.hfData) + console.log(this.equipmentData) }) } }, diff --git a/src/views/cs/index3.vue b/src/views/cs/index3.vue index 2d17b18..9b1ea8a 100644 --- a/src/views/cs/index3.vue +++ b/src/views/cs/index3.vue @@ -134,7 +134,7 @@ export default { methods: { getData() { dryRoomDataCarousel().then(e => { - this.table1Data = e.data.dryingroomList || [] + this.table1Data = e.data.dryingroomList.filter(v=>parseFloat(v.expend/v.yield)) || [] }) EnergyExpend().then(e => { this.expend = e.map(v => v.expend).reduce((a, b) => a + b, 0).toFixed(2) @@ -206,7 +206,8 @@ export default { axisLabel: { color: '#ccc' }, - data: e.checkList.map(v => v.machineName), + // data: e.checkList.map(v => v.machineName), + data: e.checkList.map((v,k) => '产品'+k), }, series: [ {