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 @@ - + + - + + + + + + + + + + + + + {{ $t('search') }} - {{ $t('add') }} - {{ $t('export') }} + @@ -22,22 +34,18 @@ :total="totalPage" layout="total, sizes, prev, pager, next, jumper" > - -