From 2e405709692b55a54510eff7f3299a9e7647855c Mon Sep 17 00:00:00 2001 From: g7hoo Date: Tue, 23 Aug 2022 14:16:05 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BA=A7=E7=BA=BF=E5=AE=9E=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/monitoring/realtimeEquipment.vue | 6 +- .../monitoring/realtimeProductLine.vue | 282 +++++++++--------- 2 files changed, 137 insertions(+), 151 deletions(-) diff --git a/src/views/modules/monitoring/realtimeEquipment.vue b/src/views/modules/monitoring/realtimeEquipment.vue index cb62938..d728835 100644 --- a/src/views/modules/monitoring/realtimeEquipment.vue +++ b/src/views/modules/monitoring/realtimeEquipment.vue @@ -38,7 +38,7 @@ export default { }, created() { this.clearData() - this.fetchList('equipment').then(({ data: res }) => { + this.fetchList().then(({ data: res }) => { this.testData = res.data.filter(item => !!item.equDet) this.handleData() }) @@ -48,7 +48,7 @@ export default { duration: 1500, onClose: () => { this.clearData() - fetchList('equipment').then(({ data: res }) => { + this.fetchList().then(({ data: res }) => { this.testData = res.data.filter(item => !!item.equDet) this.handleData() }) @@ -87,7 +87,7 @@ export default { }, expandDataStepOne() { - console.log('testdata: ', this.testData) + // console.log('testdata: ', this.testData) this.stepOneArray = this.testData.map(item => { if (item.equDet) { item.equDet.forEach((equipment, index) => { diff --git a/src/views/modules/monitoring/realtimeProductLine.vue b/src/views/modules/monitoring/realtimeProductLine.vue index 7c76e51..04d829f 100644 --- a/src/views/modules/monitoring/realtimeProductLine.vue +++ b/src/views/modules/monitoring/realtimeProductLine.vue @@ -6,171 +6,157 @@ * @Description: 产线生产实时数据 -->