From bd6c37456ed086f0bb0827d47eeffcb163f571f7 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 23 May 2020 21:43:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DselectColumns=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=8E=B7=E5=8F=96=E5=AD=90=E5=AF=B9=E8=B1=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/ruoyi/js/ry-ui.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 afd49c87..c560f5a8 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); },