修复主子表editColumn table dataIndex循环bug

pull/249/head
dawn9117 4 years ago committed by Gitee
parent 3e37ba5f1f
commit 223f5d6532

@ -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++) {

Loading…
Cancel
Save