| | |
| | | tableIns = table.render({ |
| | | elem: '#user', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: '/user/list/auth', |
| | | url: baseUrl+'/user/list/auth', |
| | | page: true, |
| | | limit: 16, |
| | | toolbar: '#toolbar', |
| | |
| | | } else { |
| | | layer.confirm('确定删除'+(ids.length===1?'此':ids.length)+'条数据吗', function(){ |
| | | $.ajax({ |
| | | url: "/user/delete/auth", |
| | | url: baseUrl+"/user/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {ids: ids}, |
| | | method: 'POST', |
| | |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: "/user/export/auth", |
| | | url: baseUrl+"/user/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType: 'json', |
| | |
| | | content: '../role/role_detail.html', |
| | | success: function(layero, index){ |
| | | $.ajax({ |
| | | url: "/role/"+ param +"/auth", |
| | | url: baseUrl+"/role/"+ param +"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | |
| | | content: '../host/host_detail.html', |
| | | success: function(layero, index){ |
| | | $.ajax({ |
| | | url: "/host/"+ param +"/auth", |
| | | url: baseUrl+"/host/"+ param +"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | |
| | | |
| | | }; |
| | | $.ajax({ |
| | | url: "/user/edit/auth", |
| | | url: baseUrl+"/user/edit/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: top.reObject(data), |
| | | method: 'POST', |