diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index afd49c875..c560f5a8b 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -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); },