update no-data-background

This commit is contained in:
lb
2023-09-18 15:05:06 +08:00
parent 7407b97f5a
commit c364162a2a
3 changed files with 128 additions and 113 deletions

View File

@@ -11,10 +11,9 @@
:formConfigs="[{ label: '设备近24小时生产记录', type: 'title' }]"
ref="search-bar" />
<el-skeleton v-if="initing" :rows="6" animated />
<div v-else>
<div v-if="noData" class="no-data">没有数据</div>
<div v-else :class="{ 'no-data-bg': !list || list.length == 0 }">
<base-table
v-else
v-if="list && list.length > 0"
:span-method="mergeColumnHandler"
:table-props="tableProps"
:table-data="list"
@@ -187,16 +186,4 @@ pre {
code {
font-family: 'IntelOne Mono', 'Ubuntu', 'Courier New', Courier, monospace;
}
.no-data {
display: grid;
place-content: center;
padding-top: 180px;
color: #ccc;
font-size: 14px;
letter-spacing: 2px;
height: 30vh;
background: url(../../../assets/images/no-data-bg.png) 50% 50% / contain
no-repeat;
}
</style>