From 80442f8abd0877d93454313379f63b05b33af352 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Tue, 3 Mar 2020 22:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=90=8E=E5=8F=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admins/dashboards_controller.rb | 10 +++--- app/views/admins/dashboards/index.html.erb | 32 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) 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 %>
- +
- - - - +
+