完善后台统计功能--取消测试代码

video_log
jingquan huang 5 years ago
parent 4b8ecaf38f
commit 9460ec77ed

@ -8,11 +8,11 @@ class Admins::DashboardsController < Admins::BaseController
shixun_tomcat = edu_setting('cloud_bridge')
# uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
# res = interface_get uri, 502, "数据接口延迟"
# if res['code'] == 0
# @pod_num = res['sum'] || 0
# end
uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
res = interface_get uri, 502, "数据接口延迟"
if res['code'] == 0
@pod_num = res['sum'] || 0
end
end
def month_active_user

@ -112,7 +112,7 @@
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">当前Pod总数</h5>
<span class="h2 font-weight-bold mb-0"><%#= @pod_num.to_i %></span>
<span class="h2 font-weight-bold mb-0"><%= @pod_num.to_i %></span>
</div>
<div class="col-auto">
<div class="icon icon-shape rounded-circle shadow">

Loading…
Cancel
Save