mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
fix incorrect switching between pages (#5608)
This commit is contained in:
parent
de6293b6f7
commit
646b95567f
@ -431,8 +431,8 @@
|
||||
:total="vmCount"
|
||||
:showTotal="total => `${$t('label.total')} ${total} ${$t('label.items')}`"
|
||||
:pageSizeOptions="['10', '20', '40', '80', '100']"
|
||||
@change="handleChangePage"
|
||||
@showSizeChange="handleChangePageSize"
|
||||
@change="handleChangeVmPage"
|
||||
@showSizeChange="handleChangeVmPageSize"
|
||||
showSizeChanger>
|
||||
<template slot="buildOptionText" slot-scope="props">
|
||||
<span>{{ props.value }} / {{ $t('label.page') }}</span>
|
||||
@ -1325,6 +1325,16 @@ export default {
|
||||
this.pageSize = pageSize
|
||||
this.fetchData()
|
||||
},
|
||||
handleChangeVmPage (page, pageSize) {
|
||||
this.vmPage = page
|
||||
this.vmPageSize = pageSize
|
||||
this.fetchVirtualMachines()
|
||||
},
|
||||
handleChangeVmPageSize (currentPage, pageSize) {
|
||||
this.vmPage = currentPage
|
||||
this.vmPageSize = pageSize
|
||||
this.fetchVirtualMachines()
|
||||
},
|
||||
onSearch (value) {
|
||||
this.searchQuery = value
|
||||
this.fetchVirtualMachines()
|
||||
|
||||
@ -276,8 +276,8 @@
|
||||
:total="vmCount"
|
||||
:showTotal="total => `${$t('label.total')} ${total} ${$t('label.items')}`"
|
||||
:pageSizeOptions="['10', '20', '40', '80', '100']"
|
||||
@change="handleChangePage"
|
||||
@showSizeChange="handleChangePageSize"
|
||||
@change="handleChangeVmPage"
|
||||
@showSizeChange="handleChangeVmPageSize"
|
||||
showSizeChanger>
|
||||
<template slot="buildOptionText" slot-scope="props">
|
||||
<span>{{ props.value }} / {{ $t('label.page') }}</span>
|
||||
@ -793,6 +793,16 @@ export default {
|
||||
this.pageSize = pageSize
|
||||
this.fetchData()
|
||||
},
|
||||
handleChangeVmPage (page, pageSize) {
|
||||
this.vmPage = page
|
||||
this.vmPageSize = pageSize
|
||||
this.fetchVirtualMachines()
|
||||
},
|
||||
handleChangeVmPageSize (currentPage, pageSize) {
|
||||
this.vmPage = currentPage
|
||||
this.vmPageSize = pageSize
|
||||
this.fetchVirtualMachines()
|
||||
},
|
||||
onSearch (value) {
|
||||
this.searchQuery = value
|
||||
this.fetchVirtualMachines()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user