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:
parent
b94a821000
commit
aa36f5911c
@ -340,6 +340,7 @@ export default {
|
||||
*/
|
||||
handleChangePage(newPage) {
|
||||
this.$store.dispatch('setProductPicePageNumber', newPage)
|
||||
this.$store.dispatch('listProductPriceFromServerProductInfo', {})
|
||||
},
|
||||
findlistProductWithRow(row) {
|
||||
if (!this.isSelectable) {
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user