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