fix: 修复销售统计分页问题
This commit is contained in:
parent
5bf49cb29a
commit
906b949879
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue