Authored by mlge

Merge branch 'master' of http://git.yoho.cn/ops/monitor-ui into master_dev

# Conflicts:
#	monitor-ui-web/src/main/webapp/jsp/bigdata/dashboardinfo.jsp
@@ -264,6 +264,11 @@ public class HttpUriContants { @@ -264,6 +264,11 @@ public class HttpUriContants {
264 public static final String INTERNAL_DOMAIN_HISTORY = "/internalDns/getHistory"; 264 public static final String INTERNAL_DOMAIN_HISTORY = "/internalDns/getHistory";
265 265
266 /** 266 /**
  267 + * bigdata监控
  268 + */
  269 + public static final String BIGDATA_GETACCESSURL = "/bigdata/getAccessUrl";
  270 +
  271 + /**
267 * 配置管理 272 * 配置管理
268 * 恶意请求ip 273 * 恶意请求ip
269 * 获取 274 * 获取
1 package com.ui.ctrl; 1 package com.ui.ctrl;
2 2
3 import com.ui.contants.HttpUriContants; 3 import com.ui.contants.HttpUriContants;
  4 +import com.ui.http.HttpRestClient;
4 import com.ui.model.BaseResponse; 5 import com.ui.model.BaseResponse;
  6 +import org.springframework.beans.factory.annotation.Autowired;
5 import org.springframework.stereotype.Controller; 7 import org.springframework.stereotype.Controller;
6 import org.springframework.ui.Model; 8 import org.springframework.ui.Model;
7 import org.springframework.web.bind.annotation.RequestMapping; 9 import org.springframework.web.bind.annotation.RequestMapping;
@@ -15,9 +17,14 @@ import org.springframework.web.servlet.ModelAndView; @@ -15,9 +17,14 @@ import org.springframework.web.servlet.ModelAndView;
15 @RequestMapping("/bigdata") 17 @RequestMapping("/bigdata")
16 public class BigDataCtrl { 18 public class BigDataCtrl {
17 19
  20 + @Autowired
  21 + private HttpRestClient httpRestClient;
  22 +
18 @RequestMapping("/toDashboardinfo") 23 @RequestMapping("/toDashboardinfo")
19 @ResponseBody 24 @ResponseBody
20 public ModelAndView toDashboardinfo(Model model) { 25 public ModelAndView toDashboardinfo(Model model) {
  26 + String url=httpRestClient.defaultPost(HttpUriContants.BIGDATA_GETACCESSURL,null,String.class);
  27 + model.addAttribute("accessUrl",url);
21 return new ModelAndView("bigdata/dashboardinfo"); 28 return new ModelAndView("bigdata/dashboardinfo");
22 } 29 }
23 30
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 </div> 66 </div>
67 <!-- 右侧具体内容 --> 67 <!-- 右侧具体内容 -->
68 <div id="content"> 68 <div id="content">
69 - <iframe src="http://localhost:7777/dashboard/index" id="iframepage" frameborder="0" scrolling="auto" width="100%" height="800px"> 69 + <iframe src="${accessUrl}/dashboard/index" id="iframepage" frameborder="0" scrolling="auto" width="100%" height="800px">
70 </iframe> 70 </iframe>
71 </div> 71 </div>
72 72