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: 产线生产实时数据 -->