fix: 修复销售统计分页问题

This commit is contained in:
YeMingfei666 2025-03-19 10:04:38 +08:00
parent 5bf49cb29a
commit 906b949879
1 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@
<div class="head-container"> <div class="head-container">
<el-pagination <el-pagination
:total="tableData.total" :total="tableData.total"
:current-page="tableData.page + 1" :current-page="tableData.page"
:page-size="tableData.size" :page-size="tableData.size"
@current-change="paginationChange" @current-change="paginationChange"
@size-change="sizeChange" @size-change="sizeChange"
@ -206,7 +206,7 @@ export default {
async getCategory() { async getCategory() {
try { try {
const res = await categoryApi.getList({ const res = await categoryApi.getList({
page: 0, page: 1,
size: 200, size: 200,
orderBy: "name asc", orderBy: "name asc",
}); });
@ -252,7 +252,7 @@ export default {
resetHandle() { resetHandle() {
this.timeValue = ""; this.timeValue = "";
this.query = { ...this.resetQuery }; this.query = { ...this.resetQuery };
this.page = 0; this.page = 1;
this.getTableData(); this.getTableData();
}, },
// //
@ -262,7 +262,7 @@ export default {
}, },
// //
paginationChange(e) { paginationChange(e) {
this.tableData.page = e - 1; this.tableData.page = e;
this.getTableData(); this.getTableData();
}, },
async getTableData() { async getTableData() {