显示分页

This commit is contained in:
Dragon
2024-03-28 17:19:01 +08:00
parent 2e6cc8333f
commit dbab3d02a1

View File

@@ -102,7 +102,6 @@
</el-table> </el-table>
<!-- 分页 --> <!-- 分页 -->
<el-pagination <el-pagination
v-show="false"
style="margin-top: 10px" style="margin-top: 10px"
class="paginationClass" class="paginationClass"
v-model:current-page="currentPage" v-model:current-page="currentPage"
@@ -149,6 +148,7 @@ export default {
page: this.currentPage, page: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
}).then((res) => { }).then((res) => {
console.log(res.data.total)
this.total = res.data.total; this.total = res.data.total;
this.tableData = res.data.rows; this.tableData = res.data.rows;
}); });