|
|
|
@ -447,13 +447,13 @@ var table = {
|
|
|
|
|
// 查询表格指定列值
|
|
|
|
|
selectColumns: function(column) {
|
|
|
|
|
var rows = $.map($("#" + table.options.id).bootstrapTable('getSelections'), function (row) {
|
|
|
|
|
return getItemField(row, column);
|
|
|
|
|
return $.common.getItemField(row, column);
|
|
|
|
|
});
|
|
|
|
|
if ($.common.isNotEmpty(table.options.rememberSelected) && table.options.rememberSelected) {
|
|
|
|
|
var selectedRows = table.rememberSelecteds[table.options.id];
|
|
|
|
|
if($.common.isNotEmpty(selectedRows)) {
|
|
|
|
|
rows = $.map(table.rememberSelecteds[table.options.id], function (row) {
|
|
|
|
|
return getItemField(row, column);
|
|
|
|
|
return $.common.getItemField(row, column);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -465,7 +465,7 @@ var table = {
|
|
|
|
|
var rowIds;
|
|
|
|
|
if ($.isArray(rows)) {
|
|
|
|
|
rowIds = $.map(rows, function(row) {
|
|
|
|
|
return getItemField(row, column);
|
|
|
|
|
return $.common.getItemField(row, column);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
rowIds = [rows[column]];
|
|
|
|
@ -475,13 +475,13 @@ var table = {
|
|
|
|
|
// 查询表格首列值
|
|
|
|
|
selectFirstColumns: function() {
|
|
|
|
|
var rows = $.map($("#" + table.options.id).bootstrapTable('getSelections'), function (row) {
|
|
|
|
|
return getItemField(row, table.options.columns[1].field);
|
|
|
|
|
return $.common.getItemField(row, table.options.columns[1].field);
|
|
|
|
|
});
|
|
|
|
|
if ($.common.isNotEmpty(table.options.rememberSelected) && table.options.rememberSelected) {
|
|
|
|
|
var selectedRows = table.rememberSelecteds[table.options.id];
|
|
|
|
|
if($.common.isNotEmpty(selectedRows)) {
|
|
|
|
|
rows = $.map(selectedRows, function (row) {
|
|
|
|
|
return getItemField(row, table.options.columns[1].field);
|
|
|
|
|
return $.common.getItemField(row, table.options.columns[1].field);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -577,7 +577,7 @@ var table = {
|
|
|
|
|
// 查询表格树指定列值
|
|
|
|
|
selectColumns: function(column) {
|
|
|
|
|
var rows = $.map($.bttTable.bootstrapTreeTable('getSelections'), function (row) {
|
|
|
|
|
return getItemField(row, column);
|
|
|
|
|
return $.common.getItemField(row, column);
|
|
|
|
|
});
|
|
|
|
|
return $.common.uniqueFn(rows);
|
|
|
|
|
},
|
|
|
|
|