mirror of https://gitee.com/y_project/RuoYi.git
新增查询表格树指定列值
parent
8483e25250
commit
b180a59497
|
@ -384,6 +384,15 @@
|
|||
_ipt.prop('checked', true);
|
||||
target.find("tbody").find("tr").removeClass("treetable-selected");
|
||||
$(this).addClass("treetable-selected");
|
||||
} 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");
|
||||
}
|
||||
} else {
|
||||
if (_ipt.prop('checked')) {
|
||||
_ipt.prop('checked', false);
|
||||
|
|
|
@ -387,6 +387,13 @@
|
|||
refresh: function() {
|
||||
$._treeTable.bootstrapTreeTable('refresh');
|
||||
},
|
||||
// 查询表格树指定列值
|
||||
selectColumns: function(column) {
|
||||
var rows = $.map($('#' + $.table._option.id).bootstrapTreeTable('getSelections'), function (row) {
|
||||
return row[column];
|
||||
});
|
||||
return $.common.uniqueFn(rows);
|
||||
},
|
||||
},
|
||||
// 表单封装处理
|
||||
form: {
|
||||
|
|
Loading…
Reference in New Issue