<style>
.userLtbTbodyHeight {
height: 182px!important;
}
</style>
<script>
window.onload = function(){
submits()
}
/**一条数据时tbody高度加大,方便数据权限选择**/
function submits() {
setTimeout(function () {
console.log($('.userListTableId tr').length)
if ($('.userListTableId tr').length == 1) {
$("#userTreeListBstable tbody").addClass("userLtbTbodyHeight")
} else {
$("#userTreeListBstable tbody").removeClass("userLtbTbodyHeight")
}
}, 1000);
}
</script>