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

This commit is contained in:
BaiJiangjie 2018-04-24 15:16:05 +08:00
parent 784bec42ff
commit c37414045b

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)
});