添加了分页为空

This commit is contained in:
luyuan 2020-11-03 11:20:10 +08:00
parent 81895edf3d
commit f1667c865e
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
5 changed files with 21 additions and 6 deletions

View File

@ -34,8 +34,11 @@
</tbody> </tbody>
</table> </table>
<template v-if="!withdrawallist.total">
<a-empty />
</template>
<div class="pages"> <div class="pages">
<a-pagination v-model:current="page" :total="withdrawallist.total" :showLessItems="true" @change="pagechange"/> <a-pagination v-if="!withdrawallist.total" v-model:current="page" :total="withdrawallist.total" :showLessItems="true" @change="pagechange"/>
</div> </div>
</div> </div>
<NavBottom class="navbottom"></NavBottom> <NavBottom class="navbottom"></NavBottom>

View File

@ -193,9 +193,12 @@
</tbody> </tbody>
</table> </table>
<template v-if="!salelist.total">
<a-empty />
</template>
</div> </div>
<div class="pages"> <div class="pages">
<a-pagination v-model:current="page" :total="salelist.total" :showLessItems="true" @change="pagechange"/> <a-pagination v-if="!salelist.total" v-model:current="page" :total="salelist.total" :showLessItems="true" @change="pagechange"/>
</div> </div>
</div> </div>
<NavBottom class="navbottom"></NavBottom> <NavBottom class="navbottom"></NavBottom>

View File

@ -63,8 +63,11 @@
:zid="i.liveid" :zid="i.liveid"
></LiveItem> ></LiveItem>
</div> </div>
<template v-if="!livelist.total">
<a-empty />
</template>
<div class="pages"> <div class="pages">
<a-pagination v-model:current="page" :total="livelist.total" :showLessItems="true" /> <a-pagination v-if="!livelist.total" v-model:current="page" :total="livelist.total" :showLessItems="true" />
</div> </div>
</div> </div>
</template> </template>

View File

@ -50,11 +50,13 @@
</div> </div>
</div> </div>
</div> </div>
<template v-if="!teacherlikedlist.total">
<a-empty />
</template>
</div> </div>
</div> </div>
<div class="pages"> <div class="pages">
<a-pagination v-model:current="page" :total="teacherlikedlist.total" :showLessItems="true" @change="pagechange"/> <a-pagination v-if="!teacherlikedlist.total" v-model:current="page" :total="teacherlikedlist.total" :showLessItems="true" @change="pagechange"/>
</div> </div>
</div> </div>
</template> </template>

View File

@ -20,7 +20,11 @@
<input type="text" :placeholder="lan.$t('shipinsousuo')" @keyup.enter="sel()" v-model="input"/> <input type="text" :placeholder="lan.$t('shipinsousuo')" @keyup.enter="sel()" v-model="input"/>
</div> </div>
</div> </div>
<template v-if="!videolist.total">
<a-empty />
</template>
<div class="list" v-if="tabindex == 4"> <div class="list" v-if="tabindex == 4">
<VideoItem <VideoItem
v-for="(i, j) in videolist.data" v-for="(i, j) in videolist.data"
:key="j" :key="j"
@ -86,7 +90,7 @@
></VideoItem> ></VideoItem>
</div> </div>
<div class="pages"> <div class="pages">
<a-pagination v-model:current="page" :total="videolist.total" :showLessItems="true" @change="pagechange" /> <a-pagination v-if="!videolist.total" v-model:current="page" :total="videolist.total" :showLessItems="true" @change="pagechange" />
</div> </div>
</div> </div>
</template> </template>