Pre Merge pull request !280 from qiuhun1991/ruoyi_change

This commit is contained in:
qiuhun1991 2022-03-24 01:51:16 +00:00 committed by Gitee
commit c23dd66987
1 changed files with 3 additions and 9 deletions

View File

@ -651,20 +651,14 @@
} else if (_ipt.attr("type") == "checkbox") { } else if (_ipt.attr("type") == "checkbox") {
if (_ipt.prop('checked')) { if (_ipt.prop('checked')) {
_ipt.prop('checked', true); _ipt.prop('checked', true);
target.find("tbody").find("tr").removeClass("treetable-selected");
$(this).addClass("treetable-selected"); $(this).addClass("treetable-selected");
} else { } else {
_ipt.prop('checked', false); _ipt.prop('checked', false);
target.find("tbody").find("tr").removeClass("treetable-selected"); $(this).removeClass("treetable-selected");
} }
} else { } else {
if (_ipt.prop('checked')) { target.find("tbody").find("tr").removeClass("treetable-selected");
_ipt.prop('checked', false); $(this).addClass("treetable-selected");
$(this).removeClass("treetable-selected");
} else {
_ipt.prop('checked', true);
$(this).addClass("treetable-selected");
}
} }
var _rowData = target.data_obj["id_" + $(this).data('id')]; var _rowData = target.data_obj["id_" + $(this).data('id')];
calculateObjectValue(options, options.onClickRow, [_rowData], _rowData); calculateObjectValue(options, options.onClickRow, [_rowData], _rowData);