mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +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) {
|
handleChangePage(newPage) {
|
||||||
this.$store.dispatch('setProductPicePageNumber', newPage)
|
this.$store.dispatch('setProductPicePageNumber', newPage)
|
||||||
|
this.$store.dispatch('listProductPriceFromServerProductInfo', {})
|
||||||
},
|
},
|
||||||
findlistProductWithRow(row) {
|
findlistProductWithRow(row) {
|
||||||
if (!this.isSelectable) {
|
if (!this.isSelectable) {
|
||||||
|
@ -257,6 +257,10 @@ export default {
|
|||||||
},
|
},
|
||||||
handleChangePage(newPage) {
|
handleChangePage(newPage) {
|
||||||
this.$store.dispatch('setOrdersListPageNumber', newPage)
|
this.$store.dispatch('setOrdersListPageNumber', newPage)
|
||||||
|
const point = this.$store.getters.posAttributes.currentPointOfSales.uuid
|
||||||
|
this.$store.dispatch('listOrdersFromServer', {
|
||||||
|
posUuid: point
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleCurrentChange(row) {
|
handleCurrentChange(row) {
|
||||||
// close popover
|
// close popover
|
||||||
|
@ -37,9 +37,8 @@
|
|||||||
<el-table
|
<el-table
|
||||||
ref="listProducto"
|
ref="listProducto"
|
||||||
v-shortkey="shortsKey"
|
v-shortkey="shortsKey"
|
||||||
v-loading="isLoadedServer"
|
v-loading="isEmptyValue(listWithPrice) || isLoadedServer"
|
||||||
:data="localTableSearch(listWithPrice)"
|
:data="localTableSearch(listWithPrice)"
|
||||||
:empty-text="$t('form.pos.tableProduct.empty')"
|
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
height="450"
|
height="450"
|
||||||
@ -226,6 +225,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleChangePage(newPage) {
|
handleChangePage(newPage) {
|
||||||
this.$store.dispatch('setProductPicePageNumber', newPage)
|
this.$store.dispatch('setProductPicePageNumber', newPage)
|
||||||
|
this.$store.dispatch('listProductPriceFromServer', {})
|
||||||
},
|
},
|
||||||
findlistProductWithRow(row) {
|
findlistProductWithRow(row) {
|
||||||
if (!this.isSelectable) {
|
if (!this.isSelectable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user