diff --git a/app/controllers/admins/dashboards_controller.rb b/app/controllers/admins/dashboards_controller.rb index e879a9c14..00ff8234b 100644 --- a/app/controllers/admins/dashboards_controller.rb +++ b/app/controllers/admins/dashboards_controller.rb @@ -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 diff --git a/app/views/admins/dashboards/index.html.erb b/app/views/admins/dashboards/index.html.erb index 896b12a2f..f864b8ed0 100644 --- a/app/views/admins/dashboards/index.html.erb +++ b/app/views/admins/dashboards/index.html.erb @@ -65,33 +65,35 @@ -
-
当前在线用户数
- <%= UserOnline.count %> +
30天内新增用户数
+ <%= @new_user_count %>
- +
- + + + +
-
+
-
当前Pod总数
- <%= @pod_num.to_i %> +
当前在线用户数
+ <%= UserOnline.count %>
@@ -104,27 +106,25 @@
-
+
-
30天内新增用户数
- <%= @new_user_count %> +
当前Pod总数
+ <%#= @pod_num.to_i %>
- +
- - - - +
+