...
|
...
|
@@ -9,14 +9,16 @@ |
|
|
|
|
|
String page_type = request.getParameter("page_type");
|
|
|
String page_url = request.getParameter("page_url");
|
|
|
if(page_type==null)
|
|
|
page_type="";
|
|
|
if(page_url==null)
|
|
|
page_url="";
|
|
|
if (page_type == null)
|
|
|
page_type = "";
|
|
|
if (page_url == null)
|
|
|
page_url = "";
|
|
|
|
|
|
String api_type = request.getParameter("api_type");
|
|
|
if (api_type == null)
|
|
|
api_type = "0";
|
|
|
|
|
|
String moId=request.getParameter("moId");
|
|
|
%>
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
...
|
...
|
@@ -34,31 +36,39 @@ |
|
|
<link rel="stylesheet" href="<%=basePath %>css/uniform.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>js/jstree/themes/proton/style.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/select2.css"/>
|
|
|
<link rel="stylesheet" href="<%=basePath %>css/yoho.css"/>
|
|
|
<script src="<%=basePath %>js/jquery-1.12.0.min.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>/js/bootstrap.min.js"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/moment-with-locales.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/bootstrap-datetimepicker.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/moment-with-locales.js" charset="UTF-8"
|
|
|
type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/datetimepicker/bootstrap-datetimepicker.js" charset="UTF-8"
|
|
|
type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/global.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.pagination.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.pagination.js" charset="UTF-8"
|
|
|
type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.table.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.dialog.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.form.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.panel.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.alerts.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.accordion.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.breadcrumb.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.validate.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.accordion.js" charset="UTF-8"
|
|
|
type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.breadcrumb.js" charset="UTF-8"
|
|
|
type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.validate.js" charset="UTF-8"
|
|
|
type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.form.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/layer/layer.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/bootstrap-plugin/bootstrap.select.js" charset="UTF-8" type="text/javascript"></script>
|
|
|
<script src="<%=basePath %>js/jstree/jstree.min.js"></script>
|
|
|
<script src="<%=basePath %>js/jquery.toaster.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
var contextPath = '<%=basePath %>';
|
|
|
|
|
|
var moId = <%=moId%>;
|
|
|
</script>
|
|
|
|
|
|
<title>YOHO!运维</title>
|
...
|
...
|
@@ -85,13 +95,14 @@ |
|
|
</li>
|
|
|
<li class="" id="zkInfo"><a href="?page_type=zkInfo"><i class="icon icon-th"></i><span>ZK监控</span></a>
|
|
|
</li>
|
|
|
<li class="" id="rabbitmq"><a href="?page_type=rabbitmq"><i class="icon icon-th"></i><span>Rabbitmq监控</span></a>
|
|
|
<li class="" id="rabbitview"><a href="?page_type=rabbitview"><i class="icon icon-th"></i><span>Rabbitmq监控</span></a>
|
|
|
</li>
|
|
|
<li class="" id="redisInfo"><a href="?page_type=redisInfo"><i class="icon icon-th"></i><span>Redis监控</span></a>
|
|
|
<li class="" id="nginxview"><a href="?page_type=nginxview"><i
|
|
|
class="icon icon-th"></i><span>Nginx监控预览</span></a>
|
|
|
</li>
|
|
|
<li class="" id="ProjectRelease"><a href="?page_type=projectRelease"><i class="icon icon-th"></i><span>项目发布</span></a>
|
|
|
<li class="" id="nginxview"><a href="?page_type=nginxview"><i class="icon icon-th"></i><span>Nginx监控预览</span></a>
|
|
|
</li>
|
|
|
<li class="" id="ProjectRelease"><a href="?page_type=projectRelease"><i
|
|
|
class="icon icon-th"></i><span>项目发布</span></a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
...
|
...
|
@@ -108,11 +119,12 @@ |
|
|
"javaApi": 'jsp/javaapi/javaApi.jsp',
|
|
|
"zkInfo": '/jsp/zkInfo/zkInfoList.jsp',
|
|
|
"redisInfo": '/jsp/redisInfo/redisInfoList.jsp',
|
|
|
"rabbitmq": '/jsp/mobject/rabbitmq.jsp',
|
|
|
"rabbitview": '/jsp/mobject/rabbitview.jsp',
|
|
|
"awsnginx": '/jsp/mobject/awsnginx.jsp',
|
|
|
"qcnginx": '/jsp/mobject/qcnginx.jsp',
|
|
|
"nginxview": '/jsp/mobject/nginxview.jsp',
|
|
|
"projectRelease": '/jsp/project/projectRelease.jsp'
|
|
|
"projectRelease": '/jsp/project/projectRelease.jsp',
|
|
|
"rabbitInfo": '/jsp/mobject/rabbitmq.jsp'
|
|
|
};
|
|
|
var page_type = "<%=page_type %>";
|
|
|
var page_url = "<%=page_url %>";
|
...
|
...
|
@@ -123,11 +135,10 @@ |
|
|
});
|
|
|
|
|
|
var loadPage = function () {
|
|
|
|
|
|
//直接根据url跳转
|
|
|
if (page_url != undefined&&page_url != "") {
|
|
|
if (page_url != undefined && page_url != "") {
|
|
|
$("#content").load(contextPath + page_url);
|
|
|
if (page_type != undefined&&page_type != "") {
|
|
|
if (page_type != undefined && page_type != "") {
|
|
|
console.log("load page : ", page_type);
|
|
|
$("#" + page_type).addClass("active").siblings().removeClass("active");
|
|
|
}
|
...
|
...
|
|