update ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js.
修改树表点击选择变色问题
This commit is contained in:
parent
67b3a4f7e2
commit
a3b74fc2eb
|
|
@ -409,20 +409,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");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue