From 0bfee488292455608a8a9d0a4852ac3850acdeb4 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 20 May 2019 16:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index f67099b9..87936acc 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -863,12 +863,12 @@ class ManagementsController < ApplicationController # 评测时间列表 def evaluate_records shixun_tomcat = Redmine::Configuration['shixun_tomcat'] - #uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo" - #res = uri_exec uri, params - #if res['code'] == 0 - @pod_num = 1 # res['sum'] - @pod_dis = [{ip: 1, num: 1}] #JSON.parse(res['distr']) if res['distr'].present? - #end + uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo" + res = uri_exec uri, params + if res['code'] == 0 + @pod_num = res['sum'] + @pod_dis = JSON.parse(res['distr']) if res['distr'].present? + end page = (params['page'] || 1).to_i search = params[:search]