修改树方法替换

pull/107/MERGE
RuoYi 2019-06-20 11:03:47 +08:00
parent afb19d8ba6
commit d4096da4f5
1 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@
}, },
// 查询表格树指定列值 // 查询表格树指定列值
selectColumns: function(column) { selectColumns: function(column) {
var rows = $.map($.btTable.bootstrapTreeTable('getSelections'), function (row) { var rows = $.map($.bttTable.bootstrapTreeTable('getSelections'), function (row) {
return row[column]; return row[column];
}); });
return $.common.uniqueFn(rows); return $.common.uniqueFn(rows);
@ -822,7 +822,7 @@
// 修改信息 // 修改信息
edit: function(id) { edit: function(id) {
if($.common.isEmpty(id) && $.table._option.type == table_type.bootstrapTreeTable) { if($.common.isEmpty(id) && $.table._option.type == table_type.bootstrapTreeTable) {
var row = $.btTable.bootstrapTreeTable('getSelections')[0]; var row = $.bttTable.bootstrapTreeTable('getSelections')[0];
if ($.common.isEmpty(row)) { if ($.common.isEmpty(row)) {
$.modal.alertWarning("请至少选择一条记录"); $.modal.alertWarning("请至少选择一条记录");
return; return;