!437 解决单体版本表格行拖拽操作后,列表底部的总共记录条数变成了undefined问题

Merge pull request !437 from chenxin04187/master
master
若依 2023-02-03 08:43:46 +00:00 committed by Gitee
commit 8939e21a29
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 10 additions and 7 deletions

View File

@ -32,13 +32,16 @@
showRefresh: false,
showToggle: false,
showColumns: false,
onReorderRow: function (data) {
//当拖拽结束后data为整个表格的数据
console.table(data)
// 当sidePagination: "server"时,拖拽行后顺序错乱,需要重新调用加载数据方法
$("#" + table.options.id).bootstrapTable('load', data);
return false;
},
onReorderRow: function (data, newRow, oldRow, el) {
//当拖拽结束后data为整个表格的数据
console.table(data)
// 当sidePagination: "server"时,拖拽行后顺序错乱,需要重新调用加载数据方法
$("#" + table.options.id).bootstrapTable('load', {
total: el._xhr.responseJSON.total,
rows: data
});
return false;
},
columns: [{
checkbox: true
},