Browse Source

盘盈列表分页问题

master
xuhuajiao 1 month ago
parent
commit
b70040e99d
  1. 5
      src/views/assetManage/stocktaking/index.vue

5
src/views/assetManage/stocktaking/index.vue

@ -380,6 +380,7 @@
</el-table> </el-table>
<div style="margin-top: 10px; display: flex; justify-content: flex-end;"> <div style="margin-top: 10px; display: flex; justify-content: flex-end;">
<el-pagination <el-pagination
:key="`tab-${tabIndex}-${inventoryTotal}`"
:current-page="inventoryPage" :current-page="inventoryPage"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
:page-size="inventoryPageSize" :page-size="inventoryPageSize"
@ -744,6 +745,9 @@ export default {
}, },
changeActiveTab(index) { changeActiveTab(index) {
this.tabIndex = index this.tabIndex = index
this.inventoryPage = 1 //
this.inventoryPageSize = 10 //
if (this.tabIndex === 1) { if (this.tabIndex === 1) {
this.getStockTakeSuperfluousByTaskId() this.getStockTakeSuperfluousByTaskId()
} else { } else {
@ -764,6 +768,7 @@ export default {
console.log('FetchStockTakeDetailsByTaskId', res) console.log('FetchStockTakeDetailsByTaskId', res)
this.inventoryList = res.records this.inventoryList = res.records
this.inventoryTotal = res.total this.inventoryTotal = res.total
this.inventoryLoading = false this.inventoryLoading = false
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)

Loading…
Cancel
Save