mirror of https://gitee.com/y_project/RuoYi.git
修改冻结列全选框问题
parent
7d6537cc8d
commit
7662c1eeab
|
@ -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…
Reference in New Issue