1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Pagination of tables (#1070)

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-08-17 07:56:07 -04:00 committed by GitHub
parent b94a821000
commit aa36f5911c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -340,6 +340,7 @@ export default {
*/
handleChangePage(newPage) {
this.$store.dispatch('setProductPicePageNumber', newPage)
this.$store.dispatch('listProductPriceFromServerProductInfo', {})
},
findlistProductWithRow(row) {
if (!this.isSelectable) {

View File

@ -257,6 +257,10 @@ export default {
},
handleChangePage(newPage) {
this.$store.dispatch('setOrdersListPageNumber', newPage)
const point = this.$store.getters.posAttributes.currentPointOfSales.uuid
this.$store.dispatch('listOrdersFromServer', {
posUuid: point
})
},
handleCurrentChange(row) {
// close popover

View File

@ -37,9 +37,8 @@
<el-table
ref="listProducto"
v-shortkey="shortsKey"
v-loading="isLoadedServer"
v-loading="isEmptyValue(listWithPrice) || isLoadedServer"
:data="localTableSearch(listWithPrice)"
:empty-text="$t('form.pos.tableProduct.empty')"
border
fit
height="450"
@ -226,6 +225,7 @@ export default {
*/
handleChangePage(newPage) {
this.$store.dispatch('setProductPicePageNumber', newPage)
this.$store.dispatch('listProductPriceFromServer', {})
},
findlistProductWithRow(row) {
if (!this.isSelectable) {