Pre Merge pull request !280 from qiuhun1991/ruoyi_change
This commit is contained in:
commit
c23dd66987
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue