增加操作记录剩余数量,修复商品库存分页

This commit is contained in:
2024-07-03 15:01:15 +08:00
parent 5110bd6d57
commit 57e2eeb66d
3 changed files with 21 additions and 3 deletions

View File

@@ -67,7 +67,7 @@
</el-table>
</div>
<div class="head-container">
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
<el-pagination @size-change="paginationSizeChange" :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
@current-change="paginationChange" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div>
<invoicingDetail ref="invoicingDetail" />
@@ -174,6 +174,11 @@ export default {
console.log(error);
}
},
// 每页条数改变是回调
paginationSizeChange(e){
console.log(e);
this.tableData.size = e
},
// 分页回调
paginationChange(e) {
this.tableData.page = e - 1