mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
修复选择集群弹窗页面可能只显示前6个集群的Bug
This commit is contained in:
@@ -35,11 +35,11 @@ func (this *SelectPopupAction) RunGet(params struct {
|
||||
return
|
||||
}
|
||||
var count = countResp.Count
|
||||
var page = this.NewPage(count)
|
||||
page.Size = 6
|
||||
var pageSize int64 = 6
|
||||
if params.PageSize > 0 {
|
||||
page.Size = params.PageSize
|
||||
pageSize = params.PageSize
|
||||
}
|
||||
var page = this.NewPage(count, pageSize)
|
||||
this.Data["page"] = page.AsHTML()
|
||||
|
||||
clustersResp, err := this.RPC().NodeClusterRPC().ListEnabledNodeClusters(this.AdminContext(), &pb.ListEnabledNodeClustersRequest{
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="cluster in clusters">
|
||||
<td>{{cluster.name}}</td>
|
||||
<td>
|
||||
<keyword :v-word="keyword">{{cluster.name}}</keyword>
|
||||
</td>
|
||||
<td>{{cluster.countNodes}}</td>
|
||||
<td><label-on :v-is-on="cluster.isOn"></label-on></td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user