diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/tree/bootstrap-table-tree.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/tree/bootstrap-table-tree.js index 364b34557..ba74ca1b2 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/tree/bootstrap-table-tree.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/tree/bootstrap-table-tree.js @@ -651,20 +651,14 @@ } else if (_ipt.attr("type") == "checkbox") { if (_ipt.prop('checked')) { _ipt.prop('checked', true); - target.find("tbody").find("tr").removeClass("treetable-selected"); $(this).addClass("treetable-selected"); } else { _ipt.prop('checked', false); - target.find("tbody").find("tr").removeClass("treetable-selected"); + $(this).removeClass("treetable-selected"); } } else { - if (_ipt.prop('checked')) { - _ipt.prop('checked', false); - $(this).removeClass("treetable-selected"); - } else { - _ipt.prop('checked', true); - $(this).addClass("treetable-selected"); - } + target.find("tbody").find("tr").removeClass("treetable-selected"); + $(this).addClass("treetable-selected"); } var _rowData = target.data_obj["id_" + $(this).data('id')]; calculateObjectValue(options, options.onClickRow, [_rowData], _rowData);