修改冻结列全选框问题

master
RuoYi 5 years ago committed by Limy
parent f97c153e67
commit 5df1c10f3b

@ -210,6 +210,16 @@
that.$fixedBody.find('tbody tr:eq(' + i + ')').height($(this).height()); that.$fixedBody.find('tbody tr:eq(' + i + ')').height($(this).height());
}); });
$("#" + $.table._option.id).on("check.bs.table uncheck.bs.table", function (e, rows, $element) {
var index= $element.data('index');
$(this).find('.bs-checkbox').find('input[data-index="' + index + '"]').prop("checked", true);
var selectFixedItem = $('.left-fixed-table-columns input[name=btSelectItem]');
var checkAll = selectFixedItem.filter(':enabled').length &&
selectFixedItem.filter(':enabled').length ===
selectFixedItem.filter(':enabled').filter(':checked').length;
$(".left-fixed-table-columns input[name=btSelectAll]").prop('checked', checkAll);
});
//// events //// events
this.$tableBody.on('scroll', function () { this.$tableBody.on('scroll', function () {
that.$fixedBody.find('table').css('top', -$(this).scrollTop()); that.$fixedBody.find('table').css('top', -$(this).scrollTop());

Loading…
Cancel
Save