mirror of https://gitee.com/y_project/RuoYi.git
修改树方法替换
parent
afb19d8ba6
commit
d4096da4f5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue