diff --git a/src/assets/images/no-data-bg.png b/src/assets/images/no-data-bg.png new file mode 100644 index 00000000..8f4f7ee2 Binary files /dev/null and b/src/assets/images/no-data-bg.png differ diff --git a/src/views/monitoring/equipmentRecentHours/index.vue b/src/views/monitoring/equipmentRecentHours/index.vue index c4cf6b6b..db9ec71b 100644 --- a/src/views/monitoring/equipmentRecentHours/index.vue +++ b/src/views/monitoring/equipmentRecentHours/index.vue @@ -11,14 +11,25 @@ :formConfigs="[{ label: '设备近24小时生产记录', type: 'title' }]" ref="search-bar" /> - - +
+
+ 没有数据 +
+ + +
@@ -37,6 +48,7 @@ export default { list: [], tableProps: [], spanInfo: {}, + noData: true, }; }, computed: {}, @@ -138,6 +150,13 @@ export default { // console.log('recent-24', data); this.initing = true; + + if (!data || !data.length) { + this.initing = false; + this.noData = true; + return; + } + this.noData = false; this.buildProps(data[0]); this.buildData(data); this.queryParams.pageSize = this.list.length;