From 41cd01ecb0aaa399d73901e14cb4ab4b33da6e1c Mon Sep 17 00:00:00 2001 From: g7hoo Date: Wed, 21 Sep 2022 13:25:36 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=97=B6=E5=BA=8F=E5=9B=BE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitoring/equipmentEfficiency.vue | 7 + .../monitoring/equipmentTimesequence.vue | 505 ++++++------------ 2 files changed, 170 insertions(+), 342 deletions(-) diff --git a/src/views/modules/monitoring/equipmentEfficiency.vue b/src/views/modules/monitoring/equipmentEfficiency.vue index e7a190b..5dadb23 100644 --- a/src/views/modules/monitoring/equipmentEfficiency.vue +++ b/src/views/modules/monitoring/equipmentEfficiency.vue @@ -249,6 +249,13 @@ export default { } }).then(({ data: res }) => { console.log('oee data:', res) + if (res.length) { + this.dataList = res + this.totalPage = res.length + } else { + this.dataList.splice(0) + this.totalPage = 0 + } }) }, // 每页数 diff --git a/src/views/modules/monitoring/equipmentTimesequence.vue b/src/views/modules/monitoring/equipmentTimesequence.vue index d9ca13b..2cc296e 100644 --- a/src/views/modules/monitoring/equipmentTimesequence.vue +++ b/src/views/modules/monitoring/equipmentTimesequence.vue @@ -1,14 +1,26 @@