|
|
@@ -942,7 +942,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- $host.find('.search input').attr('placeholder', '回车搜索').attr('autocomplete', 'off');
|
|
|
+ $host.find('.search input').attr('autocomplete', 'off');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -981,7 +981,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- $host.find('.search input').attr('placeholder', '回车搜索').attr('autocomplete', 'off');
|
|
|
+ $host.find('.search input').attr('autocomplete', 'off');
|
|
|
// 工具栏移出后重算表高,避免占位错乱
|
|
|
setTimeout(function () {
|
|
|
procuremenTableHeightCached = 0;
|
|
|
@@ -1918,9 +1918,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
showColumns: true,
|
|
|
showExport: true,
|
|
|
search: true,
|
|
|
- // 回车再搜:避免每敲一字就请求(线上跨月扫 Redis 很重,表现为输入时不断刷新/失焦)
|
|
|
- searchOnEnterKey: true,
|
|
|
- searchTimeOut: 800,
|
|
|
+ searchOnEnterKey: false,
|
|
|
+ searchTimeOut: 500,
|
|
|
smartDisplay: false,
|
|
|
// 请求发出即显示加载态
|
|
|
// 注意:勿在 ajaxOptions 里覆盖 beforeSend,否则会冲掉 Fast.api.fixurl,
|
|
|
@@ -2019,7 +2018,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
// 本页不需要「跨页选择模式」提示
|
|
|
table.closest('.bootstrap-table').find('.btn-selected-tips').remove();
|
|
|
$('#procuremen-toolbar-host .btn-selected-tips, #toolbar .btn-selected-tips').remove();
|
|
|
- // 快速搜索:禁止回车触发表单整页刷新;仍放行给 bootstrap-table(searchOnEnterKey)
|
|
|
+ // 快速搜索:禁止回车触发表单整页刷新(输入即搜仍由 bootstrap-table 处理)
|
|
|
$(document).off('keydown.procuremenQuickSearch', '#procuremen-toolbar-host .search input, .bootstrap-table .fixed-table-toolbar .search input')
|
|
|
.on('keydown.procuremenQuickSearch', '#procuremen-toolbar-host .search input, .bootstrap-table .fixed-table-toolbar .search input', function (e) {
|
|
|
if (e.keyCode === 13 || e.which === 13) {
|
|
|
@@ -2033,11 +2032,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
- // 占位提示:回车搜索(线上勿逐字请求)
|
|
|
setTimeout(function () {
|
|
|
$('#procuremen-toolbar-host .search input, .bootstrap-table .fixed-table-toolbar .search input')
|
|
|
- .attr('placeholder', '回车搜索')
|
|
|
- .attr('autocomplete', 'off');
|
|
|
+ .attr('autocomplete', 'off')
|
|
|
+ .removeAttr('placeholder');
|
|
|
}, 0);
|
|
|
procuremenInjectHeaderFilters();
|
|
|
table.on('post-body.bs.table post-header.bs.table', function () {
|