mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
feat: 完成新tab打开返回时初始化缺少的tab的情况
This commit is contained in:
@@ -2275,13 +2275,26 @@
|
||||
}
|
||||
var backWindow = window.parent;
|
||||
if (option.backHref) {
|
||||
// 标签打开页面,需要返回上一个标签刷新的情况
|
||||
backWindow = admin.findPageId(option.backHref);
|
||||
backWindow.layui.table.reloadData(option.refreshTable);
|
||||
|
||||
if (backWindow) {
|
||||
backWindow.layui.table.reloadData(option.refreshTable);
|
||||
} else {
|
||||
admin.findIndexPage(function (window) {
|
||||
window.miniTab.create({
|
||||
tabId: option.backHref,
|
||||
href: option.backHref,
|
||||
title: 'xxx',
|
||||
isIframe: true,
|
||||
});
|
||||
});
|
||||
}
|
||||
admin.findIndexPage(function (window) {
|
||||
window.layui.element.tabDelete('layuiminiTab', admin.getCurrentPageId());
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 弹框保存后刷新的情况
|
||||
var index = parent.layer.getFrameIndex(window.name);
|
||||
backWindow.layer.close(index, option.onClose);
|
||||
if (option.refreshTable !== false) {
|
||||
|
||||
Reference in New Issue
Block a user