!249 修复主子表editColumn table dataIndex循环bug

Merge pull request !249 from dawn9117/N/A
pull/249/MERGE
若依 4 years ago committed by Gitee
commit d6a2d09f95

@ -422,7 +422,7 @@ var sub = {
editColumn: function() { editColumn: function() {
var count = $("#" + table.options.id).bootstrapTable('getData').length; var count = $("#" + table.options.id).bootstrapTable('getData').length;
var params = new Array(); 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 columns = $('#' + table.options.id + ' tr[data-index="' + dataIndex + '"] td');
var obj = new Object(); var obj = new Object();
for (var i = 0; i < columns.length; i++) { for (var i = 0; i < columns.length; i++) {

Loading…
Cancel
Save