mirror of https://gitee.com/karson/fastadmin.git
commonsearch-table延时隐藏
parent
765c021978
commit
87baa0ff18
|
|
@ -9927,12 +9927,17 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
|
||||||
var initCommonSearch = function (pColumns, that) {
|
var initCommonSearch = function (pColumns, that) {
|
||||||
var vFormCommon = createFormCommon(pColumns, that);
|
var vFormCommon = createFormCommon(pColumns, that);
|
||||||
|
|
||||||
var vModal = sprintf("<div class=\"commonsearch-table %s\">", that.options.searchFormVisible ? "" : "hidden");
|
var vModal = "<div class=\"commonsearch-table\">";
|
||||||
vModal += vFormCommon;
|
vModal += vFormCommon;
|
||||||
vModal += "</div>";
|
vModal += "</div>";
|
||||||
that.$container.prepend($(vModal));
|
that.$container.prepend($(vModal));
|
||||||
that.$commonsearch = $(".commonsearch-table", that.$container);
|
that.$commonsearch = $(".commonsearch-table", that.$container);
|
||||||
var form = $("form.form-commonsearch", that.$commonsearch);
|
var form = $("form.form-commonsearch", that.$commonsearch);
|
||||||
|
if(!that.options.searchFormVisible){
|
||||||
|
setTimeout(function () {
|
||||||
|
that.$commonsearch.addClass('hidden');
|
||||||
|
},100);
|
||||||
|
}
|
||||||
|
|
||||||
require(['form'], function (Form) {
|
require(['form'], function (Form) {
|
||||||
Form.api.bindevent(form);
|
Form.api.bindevent(form);
|
||||||
|
|
@ -11568,18 +11573,21 @@ define("drop", function(){});
|
||||||
if (options.close && $("li", navobj).size() > 0) {
|
if (options.close && $("li", navobj).size() > 0) {
|
||||||
tabitem.append(' <i class="close-tab fa fa-remove"></i>');
|
tabitem.append(' <i class="close-tab fa fa-remove"></i>');
|
||||||
}
|
}
|
||||||
//创建新TAB的内容
|
if (conitem.size() === 0) {
|
||||||
conitem = $('<div role="tabpanel" class="tab-pane" id="' + conid + '"></div>');
|
//创建新TAB的内容
|
||||||
//是否指定TAB内容
|
conitem = $('<div role="tabpanel" class="tab-pane" id="' + conid + '"></div>');
|
||||||
if (opts.content) {
|
//是否指定TAB内容
|
||||||
conitem.append(opts.content);
|
if (opts.content) {
|
||||||
} else if (options.iframeUse && !opts.ajax) {//没有内容,使用IFRAME打开链接
|
conitem.append(opts.content);
|
||||||
var height = options.iframeHeight;
|
} else if (options.iframeUse && !opts.ajax) {//没有内容,使用IFRAME打开链接
|
||||||
conitem.append('<iframe src="' + url + '" width="100%" height="' + height + '" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling-x="no" scrolling-y="auto" allowtransparency="yes"></iframe></div>');
|
var height = options.iframeHeight;
|
||||||
} else {
|
conitem.append('<iframe src="' + url + '" width="100%" height="' + height + '" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling-x="no" scrolling-y="auto" allowtransparency="yes"></iframe></div>');
|
||||||
$.get(url, function (data) {
|
} else {
|
||||||
conitem.append(data);
|
$.get(url, function (data) {
|
||||||
});
|
conitem.append(data);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
tabobj.append(conitem);
|
||||||
}
|
}
|
||||||
//加入TABS
|
//加入TABS
|
||||||
if ($('.tabdrop li', navobj).size() > 0) {
|
if ($('.tabdrop li', navobj).size() > 0) {
|
||||||
|
|
@ -11587,7 +11595,6 @@ define("drop", function(){});
|
||||||
} else {
|
} else {
|
||||||
navobj.append(tabitem);
|
navobj.append(tabitem);
|
||||||
}
|
}
|
||||||
tabobj.append(conitem);
|
|
||||||
} else {
|
} else {
|
||||||
//强制刷新iframe
|
//强制刷新iframe
|
||||||
if (options.iframeForceRefresh) {
|
if (options.iframeForceRefresh) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue