level 1
没事拍拍拍👦
楼主
这是原始页面

这是预期页面

这是sysIndex.jsp下的script下多JS代码,求问如何修改
$(document).ready(function() {
// <c:if test="${tabmode eq '1'}"> 初始化页签
$.fn.initJerichoTab({
renderTo: '#right', uniqueId: 'jerichotab',
contentCss: { 'height': $('#right').height() - tabTitleHeight },
tabs: [], loadOnce: true, tabWidth: 110, titleHeight: tabTitleHeight
});//</c:if>
// 绑定菜单单击事件
$("#menu a.menu").click(function(){
// 一级菜单焦点
$("#menu li.menu").removeClass("active");
$(this).parent().addClass("active");
// 左侧区域隐藏
if ($(this).attr("target") == "mainFrame"){
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=left,&is_video_topic=0">#left,#</a>openClose").hide();
wSizeWidth();
// <c:if test="${tabmode eq '1'}"> 隐藏页签
$(".jericho_tab").hide();
$("#mainFrame").show();//</c:if>
return true;
}
// 左侧区域显示
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=left,&is_video_topic=0">#left,#</a>openClose").show();
if(!$("#openClose").hasClass("close")){
$("#openClose").click();
}
// 显示二级菜单
var menuId = "#menu-" + $(this).attr("data-id");
if ($(menuId).length > 0){
$("#left .accordion").hide();
$(menuId).show();
// 初始化点击第一个二级菜单
if (!$(menuId + " .accordion-body:first").hasClass('in')){
$(menuId + " .accordion-heading:first a").click();
}
if (!$(menuId + " .accordion-body li:first ul:first").is(":visible")){
$(menuId + " .accordion-body a:first i").click();
}
// 初始化点击第一个三级菜单
$(menuId + " .accordion-body li:first li:first a:first i").click();
}else{
// 获取二级菜单数据
$.get($(this).attr("data-href"), function(data){
if (data.indexOf("id=\"loginForm\"") != -1){
alert('未登录或登录超时。请重新登录,谢谢!');
top.location = "${ctx}";
return false;
}
$("#left .accordion").hide();
$("#left").append(data);
// 链接去掉虚框
$(menuId + " a").bind("focus",function() {
if(this.blur) {this.blur()};
});
// 二级标题
$(menuId + " .accordion-heading a").click(function(){
$(menuId + " .accordion-toggle i").removeClass('icon-chevron-down').addClass('icon-chevron-right');
if(!$($(this).attr('data-href')).hasClass('in')){
$(this).children("i").removeClass('icon-chevron-right').addClass('icon-chevron-down');
}
});
// 二级内容
$(menuId + " .accordion-body a").click(function(){
$(menuId + " li").removeClass("active");
$(menuId + " li i").removeClass("icon-white");
$(this).parent().addClass("active");
$(this).children("i").addClass("icon-white");
});
// 展现三级
$(menuId + " .accordion-inner a").click(function(){
var href = $(this).attr("data-href");
if($(href).length > 0){
$(href).toggle().parent().toggle();
return false;
}
// <c:if test="${tabmode eq '1'}"> 打开显示页签
return addTab($(this)); // </c:if>
});
// 默认选中第一个菜单
$(menuId + " .accordion-body a:first i").click();
$(menuId + " .accordion-body li:first li:first a:first i").click();
});
}
// 大小宽度调整
wSizeWidth();
return false;
});
// 初始化点击第一个一级菜单
$("#menu a.menu:first span").click();
// <c:if test="${tabmode eq '1'}"> 下拉菜单以选项卡方式打开
$("#userInfo .dropdown-menu a").mouseup(function(){
return addTab($(this), true);
});
// </c:if>
// 鼠标移动到边界自动弹出左侧菜单
$("#openClose").mouseover(function(){
if($(this).hasClass("open")){
$(this).click();
}
});
// 获取通知数目 <c:set var="oaNotifyRemindInterval" value="${fns:getConfig('oa.notify.remind.interval')}"/>
function getNotifyNum(){
$.get("${ctx}/oa/oaNotify/self/count?updateSession=0&t="+new Date().getTime(),function(data){
var num = parseFloat(data);
if (num > 0){
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0"><a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0">#notifyNum,#</a></a>notifyNum2").show().html("("+num+")");
}else{
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0"><a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0">#notifyNum,#</a></a>notifyNum2").hide()
}
});
}
getNotifyNum(); //<c:if test="${oaNotifyRemindInterval ne '' && oaNotifyRemindInterval ne '0'}">
setInterval(getNotifyNum, ${oaNotifyRemindInterval}); //</c:if>
});
// <c:if test="${tabmode eq '1'}"> 添加一个页签
function addTab($this, refresh){
$(".jericho_tab").show();
$("#mainFrame").hide();
$.fn.jerichoTab.addTab({
tabFirer: $this,
title: $this.text(),
closeable: true,
data: {
dataType: 'iframe',
dataLink: $this.attr('href')
}
}).loadData(refresh);
return false;
}// </c:if>
2019年10月31日 01点10分
1

这是预期页面
这是sysIndex.jsp下的script下多JS代码,求问如何修改$(document).ready(function() {
// <c:if test="${tabmode eq '1'}"> 初始化页签
$.fn.initJerichoTab({
renderTo: '#right', uniqueId: 'jerichotab',
contentCss: { 'height': $('#right').height() - tabTitleHeight },
tabs: [], loadOnce: true, tabWidth: 110, titleHeight: tabTitleHeight
});//</c:if>
// 绑定菜单单击事件
$("#menu a.menu").click(function(){
// 一级菜单焦点
$("#menu li.menu").removeClass("active");
$(this).parent().addClass("active");
// 左侧区域隐藏
if ($(this).attr("target") == "mainFrame"){
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=left,&is_video_topic=0">#left,#</a>openClose").hide();
wSizeWidth();
// <c:if test="${tabmode eq '1'}"> 隐藏页签
$(".jericho_tab").hide();
$("#mainFrame").show();//</c:if>
return true;
}
// 左侧区域显示
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=left,&is_video_topic=0">#left,#</a>openClose").show();
if(!$("#openClose").hasClass("close")){
$("#openClose").click();
}
// 显示二级菜单
var menuId = "#menu-" + $(this).attr("data-id");
if ($(menuId).length > 0){
$("#left .accordion").hide();
$(menuId).show();
// 初始化点击第一个二级菜单
if (!$(menuId + " .accordion-body:first").hasClass('in')){
$(menuId + " .accordion-heading:first a").click();
}
if (!$(menuId + " .accordion-body li:first ul:first").is(":visible")){
$(menuId + " .accordion-body a:first i").click();
}
// 初始化点击第一个三级菜单
$(menuId + " .accordion-body li:first li:first a:first i").click();
}else{
// 获取二级菜单数据
$.get($(this).attr("data-href"), function(data){
if (data.indexOf("id=\"loginForm\"") != -1){
alert('未登录或登录超时。请重新登录,谢谢!');
top.location = "${ctx}";
return false;
}
$("#left .accordion").hide();
$("#left").append(data);
// 链接去掉虚框
$(menuId + " a").bind("focus",function() {
if(this.blur) {this.blur()};
});
// 二级标题
$(menuId + " .accordion-heading a").click(function(){
$(menuId + " .accordion-toggle i").removeClass('icon-chevron-down').addClass('icon-chevron-right');
if(!$($(this).attr('data-href')).hasClass('in')){
$(this).children("i").removeClass('icon-chevron-right').addClass('icon-chevron-down');
}
});
// 二级内容
$(menuId + " .accordion-body a").click(function(){
$(menuId + " li").removeClass("active");
$(menuId + " li i").removeClass("icon-white");
$(this).parent().addClass("active");
$(this).children("i").addClass("icon-white");
});
// 展现三级
$(menuId + " .accordion-inner a").click(function(){
var href = $(this).attr("data-href");
if($(href).length > 0){
$(href).toggle().parent().toggle();
return false;
}
// <c:if test="${tabmode eq '1'}"> 打开显示页签
return addTab($(this)); // </c:if>
});
// 默认选中第一个菜单
$(menuId + " .accordion-body a:first i").click();
$(menuId + " .accordion-body li:first li:first a:first i").click();
});
}
// 大小宽度调整
wSizeWidth();
return false;
});
// 初始化点击第一个一级菜单
$("#menu a.menu:first span").click();
// <c:if test="${tabmode eq '1'}"> 下拉菜单以选项卡方式打开
$("#userInfo .dropdown-menu a").mouseup(function(){
return addTab($(this), true);
});
// </c:if>
// 鼠标移动到边界自动弹出左侧菜单
$("#openClose").mouseover(function(){
if($(this).hasClass("open")){
$(this).click();
}
});
// 获取通知数目 <c:set var="oaNotifyRemindInterval" value="${fns:getConfig('oa.notify.remind.interval')}"/>
function getNotifyNum(){
$.get("${ctx}/oa/oaNotify/self/count?updateSession=0&t="+new Date().getTime(),function(data){
var num = parseFloat(data);
if (num > 0){
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0"><a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0">#notifyNum,#</a></a>notifyNum2").show().html("("+num+")");
}else{
$("<a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0"><a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=896836&topic_name=notifyNum,&is_video_topic=0">#notifyNum,#</a></a>notifyNum2").hide()
}
});
}
getNotifyNum(); //<c:if test="${oaNotifyRemindInterval ne '' && oaNotifyRemindInterval ne '0'}">
setInterval(getNotifyNum, ${oaNotifyRemindInterval}); //</c:if>
});
// <c:if test="${tabmode eq '1'}"> 添加一个页签
function addTab($this, refresh){
$(".jericho_tab").show();
$("#mainFrame").hide();
$.fn.jerichoTab.addTab({
tabFirer: $this,
title: $this.text(),
closeable: true,
data: {
dataType: 'iframe',
dataLink: $this.attr('href')
}
}).loadData(refresh);
return false;
}// </c:if>