|
@ -93,7 +93,7 @@
|
|
{id: 5, text: '运行监控', icon: '${staticRoot}/images/index/menu04.png'},
|
|
{id: 5, text: '运行监控', icon: '${staticRoot}/images/index/menu04.png'},
|
|
{id: 51, pid: 5, text: '系统监控', url: '${contextRoot}/monitor/server/initial', icon: '${staticRoot}/images/index/Ins_icon.png'},
|
|
{id: 51, pid: 5, text: '系统监控', url: '${contextRoot}/monitor/server/initial', icon: '${staticRoot}/images/index/Ins_icon.png'},
|
|
{id: 52, pid: 5, text: '服务监控', url: '${contextRoot}/monitor/service/initial', icon: '${staticRoot}/images/index/Ins_icon.png'},
|
|
{id: 52, pid: 5, text: '服务监控', url: '${contextRoot}/monitor/service/initial', icon: '${staticRoot}/images/index/Ins_icon.png'},
|
|
<%--{id: 55, pid: 5, text: '远程管理', url: '${contextRoot}/shell/initial', icon: '${staticRoot}/images/index/Ins_icon.png'},--%>
|
|
|
|
|
|
<%--{id: 55, pid: 5, text: '远程管理', url: '${contextRoot}/shell/initial', icon: '${staticRoot}/images/index/Ins_icon.png'},--%>
|
|
|
|
|
|
//资源管理
|
|
//资源管理
|
|
<%--{id: 3, text: '资源服务', icon: '${staticRoot}/images/index/menu05.png'},--%>
|
|
<%--{id: 3, text: '资源服务', icon: '${staticRoot}/images/index/menu05.png'},--%>
|
|
@ -155,54 +155,54 @@
|
|
btnClickToToggleOnly: false,
|
|
btnClickToToggleOnly: false,
|
|
slide: true,
|
|
slide: true,
|
|
nodeDraggable: false,
|
|
nodeDraggable: false,
|
|
isExpand: false,
|
|
|
|
|
|
isExpand: true,//true展开所有,false关闭所有
|
|
parentIcon: true,
|
|
parentIcon: true,
|
|
childIcon: true,
|
|
childIcon: true,
|
|
nodeWidth: 176,
|
|
nodeWidth: 176,
|
|
onSelect: function (obj) {
|
|
onSelect: function (obj) {
|
|
if (obj.data.url != undefined) {
|
|
|
|
|
|
if (obj.data.url != undefined) {
|
|
if(obj.data.url.indexOf("report/signin") >= 0){
|
|
if(obj.data.url.indexOf("report/signin") >= 0){
|
|
me.loadIframePage(obj.data.url);//质控页面
|
|
me.loadIframePage(obj.data.url);//质控页面
|
|
}else{
|
|
}else{
|
|
me.openMenu(obj);
|
|
me.openMenu(obj);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//选中子菜单时默认选中父菜单
|
|
|
|
if(obj.data.children == undefined){
|
|
|
|
var parent = $("#ulTree li").eq(obj.data.treedataindex).parents("li");
|
|
|
|
var parImg = parent.children(".l-body").children(".l-tree-icon").find("img");
|
|
|
|
parent.children(".l-body").addClass("l-selected");
|
|
|
|
if(parImg.attr("src").indexOf("hover") == -1){
|
|
|
|
var imgSrc = parImg.attr("src");
|
|
|
|
parImg.attr("src",imgSrc.substring(0,imgSrc.length-4)+"_hover.png");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//切换选中菜单的图标
|
|
|
|
var imgSrc = obj.data.icon;
|
|
|
|
if(imgSrc.indexOf("hover")>0){
|
|
|
|
obj.data.hover = imgSrc;
|
|
|
|
}else{
|
|
|
|
obj.data.hover = imgSrc.substring(0,obj.data.icon.length-4)+"_hover.png";
|
|
|
|
obj.data.icon = obj.data.hover;
|
|
|
|
}
|
|
|
|
$("#ulTree li").eq(obj.data.treedataindex).children(".l-body").find("img").attr("src",obj.data.hover);
|
|
|
|
$.each($(".l-body"), function(index, item) {
|
|
|
|
var self = $(this);
|
|
|
|
if(!self.hasClass("l-selected")){
|
|
|
|
var imgSrcs = self.find("img").attr("src");
|
|
|
|
if(imgSrcs.indexOf("hover") > 0){
|
|
|
|
self.find("img").attr("src",imgSrcs.substring(0,imgSrcs.length-10)+".png");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
//选中子菜单时默认选中父菜单
|
|
|
|
if(obj.data.children == undefined){
|
|
|
|
var parent = $("#ulTree li").eq(obj.data.treedataindex).parents("li");
|
|
|
|
var parImg = parent.children(".l-body").children(".l-tree-icon").find("img");
|
|
|
|
parent.children(".l-body").addClass("l-selected");
|
|
|
|
if(parImg.attr("src").indexOf("hover") == -1){
|
|
|
|
var imgSrc = parImg.attr("src");
|
|
|
|
parImg.attr("src",imgSrc.substring(0,imgSrc.length-4)+"_hover.png");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//切换选中菜单的图标
|
|
|
|
var imgSrc = obj.data.icon;
|
|
|
|
if(imgSrc.indexOf("hover")>0){
|
|
|
|
obj.data.hover = imgSrc;
|
|
|
|
}else{
|
|
|
|
obj.data.hover = imgSrc.substring(0,obj.data.icon.length-4)+"_hover.png";
|
|
|
|
obj.data.icon = obj.data.hover;
|
|
|
|
}
|
|
|
|
$("#ulTree li").eq(obj.data.treedataindex).children(".l-body").find("img").attr("src",obj.data.hover);
|
|
|
|
$.each($(".l-body"), function(index, item) {
|
|
|
|
var self = $(this);
|
|
|
|
if(!self.hasClass("l-selected")){
|
|
|
|
var imgSrcs = self.find("img").attr("src");
|
|
|
|
if(imgSrcs.indexOf("hover") > 0){
|
|
|
|
self.find("img").attr("src",imgSrcs.substring(0,imgSrcs.length-10)+".png");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
},
|
|
},
|
|
onClick:function(obj){
|
|
onClick:function(obj){
|
|
},
|
|
},
|
|
onBeforeSelect(obj){//解决bug 3487【ESB】标准规范:点击标准规范的图标,图标会显示成白色。
|
|
|
|
|
|
onBeforeSelect:function(obj){//解决bug 3487【ESB】标准规范:点击标准规范的图标,图标会显示成白色。
|
|
if(obj.data == null){
|
|
if(obj.data == null){
|
|
if(obj.target.parentElement.parentElement.className.indexOf("l-selected") > 0){
|
|
|
|
|
|
if(obj.target.parentElement.parentElement.className.indexOf("l-selected") > 0){
|
|
return false;
|
|
return false;
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//一级节点不可选中
|
|
//一级节点不可选中
|
|
@ -464,39 +464,39 @@
|
|
|
|
|
|
$(function () {
|
|
$(function () {
|
|
<%--if (window.history && window.history.pushState) {--%>
|
|
<%--if (window.history && window.history.pushState) {--%>
|
|
<%--$(window).on('popstate', function () {--%>
|
|
|
|
<%--var hashLocation = location.hash;--%>
|
|
|
|
<%--var hashSplit = hashLocation.split("#!/");--%>
|
|
|
|
<%--var hashName = hashSplit[1];--%>
|
|
|
|
<%--if (hashName !== '') {--%>
|
|
|
|
<%--var hash = window.location.hash;--%>
|
|
|
|
<%--if (hash === '') {--%>
|
|
|
|
<%--$.ligerDialog.confirm('是否确认后退登出系统!', function (yes) {--%>
|
|
|
|
<%--if (yes) {--%>
|
|
|
|
<%--$.ajax({ //获取表的字段列表--%>
|
|
|
|
<%--type: "POST",--%>
|
|
|
|
<%--url: "${contextRoot}/system/logoutAction",--%>
|
|
|
|
<%--dataType: "json",--%>
|
|
|
|
<%--cache: false,--%>
|
|
|
|
<%--success: function (data) {--%>
|
|
|
|
<%--if (data.successFlg) {--%>
|
|
|
|
<%--localStorage.removeItem("userRole");--%>
|
|
|
|
<%--location.href = "${contextRoot}/"+data.data+"/loginPage";--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--else {--%>
|
|
|
|
<%--$.ligerDialog.error(data.message);--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--},--%>
|
|
|
|
<%--error: function (data) {--%>
|
|
|
|
<%--$.ligerDialog.error("Status:" + data.status + "(" + data.statusText + ")");--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--});--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--});--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--});--%>
|
|
|
|
<%--window.history.pushState('forward', null, './indexPage');--%>
|
|
|
|
|
|
<%--$(window).on('popstate', function () {--%>
|
|
|
|
<%--var hashLocation = location.hash;--%>
|
|
|
|
<%--var hashSplit = hashLocation.split("#!/");--%>
|
|
|
|
<%--var hashName = hashSplit[1];--%>
|
|
|
|
<%--if (hashName !== '') {--%>
|
|
|
|
<%--var hash = window.location.hash;--%>
|
|
|
|
<%--if (hash === '') {--%>
|
|
|
|
<%--$.ligerDialog.confirm('是否确认后退登出系统!', function (yes) {--%>
|
|
|
|
<%--if (yes) {--%>
|
|
|
|
<%--$.ajax({ //获取表的字段列表--%>
|
|
|
|
<%--type: "POST",--%>
|
|
|
|
<%--url: "${contextRoot}/system/logoutAction",--%>
|
|
|
|
<%--dataType: "json",--%>
|
|
|
|
<%--cache: false,--%>
|
|
|
|
<%--success: function (data) {--%>
|
|
|
|
<%--if (data.successFlg) {--%>
|
|
|
|
<%--localStorage.removeItem("userRole");--%>
|
|
|
|
<%--location.href = "${contextRoot}/"+data.data+"/loginPage";--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--else {--%>
|
|
|
|
<%--$.ligerDialog.error(data.message);--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--},--%>
|
|
|
|
<%--error: function (data) {--%>
|
|
|
|
<%--$.ligerDialog.error("Status:" + data.status + "(" + data.statusText + ")");--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--});--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--});--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--}--%>
|
|
|
|
<%--});--%>
|
|
|
|
<%--window.history.pushState('forward', null, './indexPage');--%>
|
|
<%--}--%>
|
|
<%--}--%>
|
|
|
|
|
|
isLogin();
|
|
isLogin();
|