| | |
| | | url: baseUrl+'/locDetl/list/auth', |
| | | page: true, |
| | | limit: 20, |
| | | where:{ |
| | | unreason: false |
| | | }, |
| | | limits: [20, 30, 50, 100, 200, 500], |
| | | even: true, |
| | | toolbar: '#toolbar', |
| | |
| | | tableReload(false); |
| | | }); |
| | | |
| | | |
| | | // 搜索栏重置事件 |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | tableReload(false); |
| | | }); |
| | | |
| | | //查看异常数据 |
| | | form.on('submit(unreason)', function (data) { |
| | | pageCurr = 1; |
| | | |
| | | tableIns.reload({ |
| | | where: { |
| | | unreason: true |
| | | }, |
| | | page: { |
| | | curr: pageCurr |
| | | }, |
| | | done: function (res, curr, count) { |
| | | |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | |
| | | limit(child); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | // 时间选择器 |
| | |
| | | }); |
| | | |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | var searchData = { |
| | | unreason: false |
| | | }; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |