Authored by mlge

全网健康度增加 部署 菜单

@@ -69,4 +69,13 @@ public class BigDataCtrl { @@ -69,4 +69,13 @@ public class BigDataCtrl {
69 return new ModelAndView("bigdata/metricinfo"); 69 return new ModelAndView("bigdata/metricinfo");
70 } 70 }
71 71
  72 +
  73 + @RequestMapping("/toPlugin")
  74 + @ResponseBody
  75 + public ModelAndView toPlugin(Model model) {
  76 + String url=httpRestClient.defaultPost(HttpUriContants.BIGDATA_GETACCESSURL,null,String.class);
  77 + model.addAttribute("accessUrl",url);
  78 + return new ModelAndView("bigdata/pluginInfo");
  79 + }
  80 +
72 } 81 }
  1 +<%@page language="java" contentType="text/html;charset=utf-8" %>
  2 +<%@page import="com.ui.contants.ProjectConstant"%>
  3 +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4 +
  5 +<%
  6 + String path = request.getContextPath();
  7 + String basePath = request.getScheme() + "://"
  8 + + request.getServerName() + ":" + request.getServerPort()
  9 + + path + "/";
  10 +%>
  11 +
  12 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  13 +<html>
  14 +<head>
  15 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  16 + <link rel="stylesheet" href="<%=basePath %>css/bootstrap.min.css"/>
  17 + <link rel="stylesheet" href="<%=basePath %>css/bootstrap-datetimepicker.css"/>
  18 + <link href="<%=basePath %>js/bootstrap-plugin/css/bootstrap.table.css" rel="stylesheet" media="screen"/>
  19 + <link rel="stylesheet" href="<%=basePath %>css/bootstrap-responsive.min.css"/>
  20 + <link rel="stylesheet" href="<%=basePath %>css/fullcalendar.css"/>
  21 + <link rel="stylesheet" href="<%=basePath %>css/unicorn.main.css"/>
  22 + <link rel="stylesheet" href="<%=basePath %>css/unicorn.grey.css"/>
  23 + <link rel="stylesheet" href="<%=basePath %>css/jquery-ui.css"/>
  24 + <link rel="stylesheet" href="<%=basePath %>css/uniform.css"/>
  25 + <link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
  26 + <link rel="stylesheet" href="<%=basePath %>js/jstree/themes/proton/style.css"/>
  27 + <link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
  28 + <link rel="stylesheet" href="<%=basePath %>css/yoho.css"/>
  29 + <script src="<%=basePath %>js/excanvas.min.js" charset="UTF-8" type="text/javascript"></script>
  30 + <script src="<%=basePath %>js/jquery-1.12.0.min.js" charset="UTF-8" type="text/javascript"></script>
  31 + <script src="<%=basePath %>js/jquery-ui.custom.js" charset="UTF-8" type="text/javascript"></script>
  32 + <script src="<%=basePath %>/js/bootstrap.min.js"></script>
  33 + <script src="<%=basePath %>/js/unicorn.js"></script>
  34 + <script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/moment-with-locales.js" charset="UTF-8"
  35 + type="text/javascript"></script>
  36 + <script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/bootstrap-datetimepicker.js" charset="UTF-8"
  37 + type="text/javascript"></script>
  38 + <script src="<%=basePath %>js/global.js" charset="UTF-8" type="text/javascript"></script>
  39 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.pagination.js" charset="UTF-8"
  40 + type="text/javascript"></script>
  41 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.table.js" charset="UTF-8" type="text/javascript"></script>
  42 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.dialog.js" charset="UTF-8" type="text/javascript"></script>
  43 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.form.js" charset="UTF-8" type="text/javascript"></script>
  44 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.panel.js" charset="UTF-8" type="text/javascript"></script>
  45 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.alerts.js" charset="UTF-8" type="text/javascript"></script>
  46 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.accordion.js" charset="UTF-8"
  47 + type="text/javascript"></script>
  48 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.breadcrumb.js" charset="UTF-8"
  49 + type="text/javascript"></script>
  50 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.validate.js" charset="UTF-8"
  51 + type="text/javascript"></script>
  52 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.form.js" charset="UTF-8" type="text/javascript"></script>
  53 + <script src="<%=basePath %>js/layer/layer.js" charset="UTF-8" type="text/javascript"></script>
  54 + <script src="<%=basePath %>js/bootstrap-plugin/bootstrap.select.js" charset="UTF-8" type="text/javascript"></script>
  55 + <script src="<%=basePath %>js/jstree/jstree.min.js"></script>
  56 + <script src="<%=basePath %>js/jquery.toaster.js"></script>
  57 + <script src="<%=basePath %>js/jquery-plugin/jquery.cookies.js" charset="UTF-8" type="text/javascript"></script>
  58 + <script>
  59 + var contextPath = '<%=basePath %>';
  60 + </script>
  61 + <title></title>
  62 +</head>
  63 +<body>
  64 +
  65 +<!-- 头部 -->
  66 +<div id="head">
  67 +</div>
  68 +<!-- 右侧具体内容 -->
  69 +<div id="content">
  70 + <iframe src="${accessUrl}/autoDeployManager/toAutoDeployDashboard" id="iframepage" frameborder="0" scrolling="auto" width="100%" height="800px">
  71 + </iframe>
  72 +</div>
  73 +
  74 +<script src="<%=basePath %>script/common/genarate_left_panel.js?v=<%=ProjectConstant.MENU_VERSION %>"></script>
  75 +<script>
  76 + $("#li_bigdata_ops").addClass("active open");
  77 + $("#li_bigdata_ops_plugin_info").addClass("active");
  78 +</script>
  79 +</body>
  80 +</html>
  81 +
  82 +<script>
  83 +
  84 +</script>
@@ -69,12 +69,12 @@ innerHTML += "</ul></li>"; @@ -69,12 +69,12 @@ innerHTML += "</ul></li>";
69 69
70 /*运维(大数据)*/ 70 /*运维(大数据)*/
71 innerHTML += "<li class='submenu' id='li_bigdata_ops'><a id='li_bigdata_ops_a' href='#'><i class='icon icon-th-list'></i> <span>运维监控(大数据)</span><span class='label'>6</span></a><ul>"; 71 innerHTML += "<li class='submenu' id='li_bigdata_ops'><a id='li_bigdata_ops_a' href='#'><i class='icon icon-th-list'></i> <span>运维监控(大数据)</span><span class='label'>6</span></a><ul>";
72 -innerHTML += "<li id='li_bigdata_ops_dashboard_info'><a id='li_bigdata_ops_dashboard_info_a' href=''><i class='icon icon-th'></i> <span>DashBoard</span></a></li>";  
73 -innerHTML += "<li id='li_bigdata_ops_strategy_info'><a id='li_bigdata_ops_strategy_info_a' href=''><i class='icon icon-th'></i> <span>告警策略配置</span></a></li>";  
74 -innerHTML += "<li id='li_bigdata_ops_metric_info'><a id='li_bigdata_ops_metric_info_a' href=''><i class='icon icon-th'></i> <span>监控指标管理</span></a></li>";  
75 -innerHTML += "<li id='li_bigdata_ops_host_info'><a id='li_bigdata_ops_host_info_a' href=''><i class='icon icon-th'></i> <span>主机策略查看</span></a></li>";  
76 -  
77 -innerHTML += "<li id='li_bigdata_ops_alarm_info'><a id='li_bigdata_ops_alarm_info_a' href=''><i class='icon icon-th'></i> <span>告警动作配置</span></a></li>"; 72 +innerHTML += "<li id='li_bigdata_ops_dashboard_info'><a id='li_bigdata_ops_dashboard_info_a' href=''><i class='icon icon-th'></i> <span>服务总览</span></a></li>";
  73 +innerHTML += "<li id='li_bigdata_ops_strategy_info'><a id='li_bigdata_ops_strategy_info_a' href=''><i class='icon icon-th'></i> <span>告警策略</span></a></li>";
  74 +innerHTML += "<li id='li_bigdata_ops_metric_info'><a id='li_bigdata_ops_metric_info_a' href=''><i class='icon icon-th'></i> <span>指标管理</span></a></li>";
  75 +innerHTML += "<li id='li_bigdata_ops_host_info'><a id='li_bigdata_ops_host_info_a' href=''><i class='icon icon-th'></i> <span>主机策略</span></a></li>";
  76 +innerHTML += "<li id='li_bigdata_ops_alarm_info'><a id='li_bigdata_ops_alarm_info_a' href=''><i class='icon icon-th'></i> <span>告警动作</span></a></li>";
  77 +innerHTML += "<li id='li_bigdata_ops_plugin__info'><a id='li_bigdata_ops_plugin_info_a' href=''><i class='icon icon-th'></i> <span>插件管理</span></a></li>";
78 78
79 innerHTML += "</ul></li>"; 79 innerHTML += "</ul></li>";
80 80
@@ -276,6 +276,7 @@ document.getElementById("li_bigdata_ops_host_info_a").setAttribute("href",path+" @@ -276,6 +276,7 @@ document.getElementById("li_bigdata_ops_host_info_a").setAttribute("href",path+"
276 document.getElementById("li_bigdata_ops_strategy_info_a").setAttribute("href",path+"/bigdata/toStrategyinfo"); 276 document.getElementById("li_bigdata_ops_strategy_info_a").setAttribute("href",path+"/bigdata/toStrategyinfo");
277 document.getElementById("li_bigdata_ops_alarm_info_a").setAttribute("href",path+"/bigdata/toAlarminfo"); 277 document.getElementById("li_bigdata_ops_alarm_info_a").setAttribute("href",path+"/bigdata/toAlarminfo");
278 document.getElementById("li_bigdata_ops_metric_info_a").setAttribute("href",path+"/bigdata/toMetricinfo"); 278 document.getElementById("li_bigdata_ops_metric_info_a").setAttribute("href",path+"/bigdata/toMetricinfo");
  279 +document.getElementById("li_bigdata_ops_plugin_info_a").setAttribute("href",path+"/bigdata/toPlugin");
279 280
280 document.getElementById("li_kafka_manage_a").setAttribute("href", path + "/kafkaManage/toKafkaManage"); 281 document.getElementById("li_kafka_manage_a").setAttribute("href", path + "/kafkaManage/toKafkaManage");
281 document.getElementById("li_cron_tab_a").setAttribute("href", path + "/cronTabManage/toCronTabManage"); 282 document.getElementById("li_cron_tab_a").setAttribute("href", path + "/cronTabManage/toCronTabManage");