update image

This commit is contained in:
lb 2023-09-13 17:06:02 +08:00
parent f341ec7b30
commit 27ebe39a96
2 changed files with 27 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

View File

@ -11,6 +11,16 @@
:formConfigs="[{ label: '设备近24小时生产记录', type: 'title' }]" :formConfigs="[{ label: '设备近24小时生产记录', type: 'title' }]"
ref="search-bar" /> ref="search-bar" />
<el-skeleton v-if="initing" :rows="6" animated /> <el-skeleton v-if="initing" :rows="6" animated />
<div v-else>
<div
v-if="noData"
style="
height: 240px;
background: url(../../../assets/images/no-data-bg.png) 100% / contain
no-repeat;
">
没有数据
</div>
<base-table <base-table
v-else v-else
:span-method="mergeColumnHandler" :span-method="mergeColumnHandler"
@ -20,6 +30,7 @@
<!-- :page="queryParams.pageNo" <!-- :page="queryParams.pageNo"
:limit="queryParams.pageSize" --> :limit="queryParams.pageSize" -->
</div> </div>
</div>
</template> </template>
<script> <script>
@ -37,6 +48,7 @@ export default {
list: [], list: [],
tableProps: [], tableProps: [],
spanInfo: {}, spanInfo: {},
noData: true,
}; };
}, },
computed: {}, computed: {},
@ -138,6 +150,13 @@ export default {
// console.log('recent-24', data); // console.log('recent-24', data);
this.initing = true; this.initing = true;
if (!data || !data.length) {
this.initing = false;
this.noData = true;
return;
}
this.noData = false;
this.buildProps(data[0]); this.buildProps(data[0]);
this.buildData(data); this.buildData(data);
this.queryParams.pageSize = this.list.length; this.queryParams.pageSize = this.list.length;