| | |
| | | tableIns = table.render({ |
| | | elem: '#inOut', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: '/report/viewInOutList.action', |
| | | url: baseUrl+'/report/viewInOutList.action', |
| | | page: true, |
| | | limit: 10, |
| | | toolbar: '#toolbar', |
| | |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | |
| | | }, |
| | | done: function (res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: "/report/viewInOutList.action", |
| | | url: baseUrl+"/report/viewInOutList.action", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | |
| | | if (res.code === 200) { |
| | | table.exportFile(titles,res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | |
| | | }, |
| | | done: function (res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = "/"; |
| | | top.location.href = baseUrl; |
| | | } |
| | | pageCurr=curr; |
| | | if (res.data.length === 0 && count !== 0) { |