效果展示

功能实现
1、列表功能
利用element-plus的组件el-table,轻松实现;
Tips:jokeMes接口返回的全部数据。
<el-table
stripe
:data="
jokeMes.slice(
(paginObj.currentPage - 1) * paginObj.pagesize,
paginObj.currentPage * paginObj.pagesize
)
"
style="width: 100%"
v-loading="loading"
empty-text="没有数据"
>
<el-table-column fixed prop="passtime" label="时间" width="150" />
<el-table-column prop="name" label="名字" width="120" />
<el-table-column prop="text" label="信息" width="600" />
<el-table-column prop="header" label="图片" width="600" />
<el-table-column prop="video" label="视频" width="600" />
<el-table-column prop="top_comments_content" label="内容" width="300" />
<el-table-column fixed="right" label="操作" width="60">
<template #default="scope">
<el-button type="text" size="small" @click="handleClick(scope.row)">查看</el-button>
</template>
</el-table-column>
</el-table>
2、查询功能
利用filter方法,根据输入的数据过滤接口的数据;
<el-form :inline="true" :model="formInline" class="de

本文展示了如何利用Element-PlusUI库在Vue应用中实现列表展示、根据输入查询数据、分页以及查看详细信息的功能。代码示例包括el-table组件用于数据列表,el-form和el-input用于查询,el-pagination处理分页,以及el-drawer显示详情。

2702

被折叠的 条评论
为什么被折叠?



