frontend & backend update
This commit is contained in:
@@ -25,6 +25,10 @@ class Pagination {
|
||||
this.setData({...this.data, pageSize: pageSize});
|
||||
}
|
||||
|
||||
setTotal(count) {
|
||||
this.setData({...this.data, total: count});
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.setData({current: 1, pageSize: 25, total: 0});
|
||||
}
|
||||
@@ -37,6 +41,10 @@ class Pagination {
|
||||
}
|
||||
}
|
||||
|
||||
getParams() {
|
||||
return [this.data.current, this.data.pageSize];
|
||||
}
|
||||
|
||||
getTotal() {
|
||||
return this.data.total;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user