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,6 +11573,7 @@ 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>');
|
||||||
}
|
}
|
||||||
|
if (conitem.size() === 0) {
|
||||||
//创建新TAB的内容
|
//创建新TAB的内容
|
||||||
conitem = $('<div role="tabpanel" class="tab-pane" id="' + conid + '"></div>');
|
conitem = $('<div role="tabpanel" class="tab-pane" id="' + conid + '"></div>');
|
||||||
//是否指定TAB内容
|
//是否指定TAB内容
|
||||||
|
|
@ -11581,13 +11587,14 @@ define("drop", function(){});
|
||||||
conitem.append(data);
|
conitem.append(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
tabobj.append(conitem);
|
||||||
|
}
|
||||||
//加入TABS
|
//加入TABS
|
||||||
if ($('.tabdrop li', navobj).size() > 0) {
|
if ($('.tabdrop li', navobj).size() > 0) {
|
||||||
$('.tabdrop ul', navobj).append(tabitem);
|
$('.tabdrop ul', navobj).append(tabitem);
|
||||||
} 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