新增parentTab选卡页同一页签打开

This commit is contained in:
RuoYi
2019-07-13 16:14:47 +08:00
parent 7b96954b2f
commit e315357dd2
5 changed files with 18 additions and 4 deletions

View File

@ -155,8 +155,16 @@ var refreshItem = function(){
}
/** 关闭选项卡 */
var closeItem = function(){
var closeItem = function(dataId){
var topWindow = $(window.parent.document);
if($.common.isNotEmpty(dataId)){
window.parent.$.modal.closeLoading();
// 根据dataId关闭指定选项卡
$('.menuTab[data-id="' + dataId + '"]', topWindow).remove();
// 移除相应tab对应的内容区
$('.mainContent .RuoYi_iframe[data-id="' + dataId + '"]', topWindow).remove();
return;
}
var panelUrl = window.frameElement.getAttribute('data-panel');
$('.page-tabs-content .active i', topWindow).click();
if($.common.isNotEmpty(panelUrl)){