mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
修复选择集群弹窗无法修改分页条数的问题
This commit is contained in:
@@ -21,6 +21,7 @@ func (this *SelectPopupAction) Init() {
|
|||||||
func (this *SelectPopupAction) RunGet(params struct {
|
func (this *SelectPopupAction) RunGet(params struct {
|
||||||
SelectedClusterIds string
|
SelectedClusterIds string
|
||||||
Keyword string
|
Keyword string
|
||||||
|
PageSize int64
|
||||||
}) {
|
}) {
|
||||||
this.Data["keyword"] = params.Keyword
|
this.Data["keyword"] = params.Keyword
|
||||||
|
|
||||||
@@ -36,6 +37,9 @@ func (this *SelectPopupAction) RunGet(params struct {
|
|||||||
var count = countResp.Count
|
var count = countResp.Count
|
||||||
var page = this.NewPage(count)
|
var page = this.NewPage(count)
|
||||||
page.Size = 6
|
page.Size = 6
|
||||||
|
if params.PageSize > 0 {
|
||||||
|
page.Size = params.PageSize
|
||||||
|
}
|
||||||
this.Data["page"] = page.AsHTML()
|
this.Data["page"] = page.AsHTML()
|
||||||
|
|
||||||
clustersResp, err := this.RPC().NodeClusterRPC().ListEnabledNodeClusters(this.AdminContext(), &pb.ListEnabledNodeClustersRequest{
|
clustersResp, err := this.RPC().NodeClusterRPC().ListEnabledNodeClusters(this.AdminContext(), &pb.ListEnabledNodeClustersRequest{
|
||||||
|
|||||||
Reference in New Issue
Block a user