[Bugfix] 修改用户列表导出,默认导出全部用户

pull/1240/head
BaiJiangjie 2018-04-24 15:16:05 +08:00
parent 784bec42ff
commit c37414045b
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ $(document).ready(function(){
$('.btn_export').click(function () {
var users = [];
var rows = table.rows('.selected').data();
if(rows.length===0){
rows = table.rows().data();
}
$.each(rows, function (index, obj) {
users.push(obj.id)
});