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