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]