|
|
@ -863,12 +863,12 @@ class ManagementsController < ApplicationController
|
|
|
|
# 评测时间列表
|
|
|
|
# 评测时间列表
|
|
|
|
def evaluate_records
|
|
|
|
def evaluate_records
|
|
|
|
shixun_tomcat = Redmine::Configuration['shixun_tomcat']
|
|
|
|
shixun_tomcat = Redmine::Configuration['shixun_tomcat']
|
|
|
|
#uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
|
|
|
|
uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
|
|
|
|
#res = uri_exec uri, params
|
|
|
|
res = uri_exec uri, params
|
|
|
|
#if res['code'] == 0
|
|
|
|
if res['code'] == 0
|
|
|
|
@pod_num = 1 # res['sum']
|
|
|
|
@pod_num = res['sum']
|
|
|
|
@pod_dis = [{ip: 1, num: 1}] #JSON.parse(res['distr']) if res['distr'].present?
|
|
|
|
@pod_dis = JSON.parse(res['distr']) if res['distr'].present?
|
|
|
|
#end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
page = (params['page'] || 1).to_i
|
|
|
|
page = (params['page'] || 1).to_i
|
|
|
|
search = params[:search]
|
|
|
|
search = params[:search]
|
|
|
|