mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-11 04:12:49 +08:00
feat: 优化返回效果;
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
{{formList}}
|
||||
<div class="hr-line"></div>
|
||||
<div class="layui-form-item text-center">
|
||||
{notempty name='$Request.param.backTagId'}
|
||||
<div class="layui-btn layui-btn-sm page-back-button" layuimini-content-href="{$Request.param.backTagId}" data-back="1">返回</div>
|
||||
{/notempty}
|
||||
<button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
|
||||
</div>
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
*/
|
||||
searchMenu: function (href, menuList) {
|
||||
if (!menuList) {
|
||||
menuList = this.renderOptions.menuList
|
||||
menuList = this.renderOptions.menuList;
|
||||
}
|
||||
|
||||
var menu;
|
||||
@@ -264,6 +264,7 @@
|
||||
external = $(this).attr('data-external') || false,
|
||||
target = $(this).attr('target');
|
||||
|
||||
|
||||
if (back == 0) {
|
||||
if (href.indexOf("?") === -1) {
|
||||
href += '?backTagId=' + ua.getCurrentPageId();
|
||||
@@ -284,6 +285,16 @@
|
||||
var checkTab = miniTab.check(tabId, true);
|
||||
|
||||
if (!checkTab) {
|
||||
if (!title) {
|
||||
title = tabId;
|
||||
ua.findIndexPage(function (window) {
|
||||
var menu = window.miniTab.searchMenu(tabId);
|
||||
|
||||
if (menu) {
|
||||
title = menu.title;
|
||||
}
|
||||
});
|
||||
}
|
||||
miniTab.create({
|
||||
tabId: tabId,
|
||||
href: href,
|
||||
|
||||
Reference in New Issue
Block a user