数据看板和节点看板都改成异步加载

This commit is contained in:
刘祥超
2021-08-30 15:23:31 +08:00
parent 19178f963e
commit 1d9d44ecc3
14 changed files with 188 additions and 99 deletions

View File

@@ -40,6 +40,11 @@ func (this *IndexAction) RunGet(params struct{}) {
}
}
this.Show()
}
func (this *IndexAction) RunPost(params struct {
}) {
// 读取看板数据
resp, err := this.RPC().AdminRPC().ComposeAdminDashboard(this.AdminContext(), &pb.ComposeAdminDashboardRequest{
ApiVersion: teaconst.APINodeVersion,
@@ -249,5 +254,5 @@ func (this *IndexAction) RunGet(params struct{}) {
this.Data["metricCharts"] = chartMaps
}
this.Show()
this.Success()
}