From 223f5d6532333d4f4a412e19a667cfdb175acfa7 Mon Sep 17 00:00:00 2001 From: dawn9117 Date: Tue, 22 Dec 2020 11:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E5=AD=90=E8=A1=A8ed?= =?UTF-8?q?itColumn=20table=20dataIndex=E5=BE=AA=E7=8E=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/ruoyi/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js index d6e1a31a2..3b8aeaffa 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js @@ -422,7 +422,7 @@ var sub = { editColumn: function() { var count = $("#" + table.options.id).bootstrapTable('getData').length; var params = new Array(); - for (var dataIndex = 0; dataIndex <= count; dataIndex++) { + for (var dataIndex = 0; dataIndex < count; dataIndex++) { var columns = $('#' + table.options.id + ' tr[data-index="' + dataIndex + '"] td'); var obj = new Object(); for (var i = 0; i < columns.length; i++) {