修复选择集群弹窗无法修改分页条数的问题

This commit is contained in:
GoEdgeLab
2021-10-16 12:45:25 +08:00
parent 0bb359a3f9
commit 17ba8a1836

View File

@@ -21,6 +21,7 @@ func (this *SelectPopupAction) Init() {
func (this *SelectPopupAction) RunGet(params struct {
SelectedClusterIds string
Keyword string
PageSize int64
}) {
this.Data["keyword"] = params.Keyword
@@ -36,6 +37,9 @@ func (this *SelectPopupAction) RunGet(params struct {
var count = countResp.Count
var page = this.NewPage(count)
page.Size = 6
if params.PageSize > 0 {
page.Size = params.PageSize
}
this.Data["page"] = page.AsHTML()
clustersResp, err := this.RPC().NodeClusterRPC().ListEnabledNodeClusters(this.AdminContext(), &pb.ListEnabledNodeClustersRequest{