| | |
| | | case 'oneUpdateCharge': |
| | | showUpdateCharge(); |
| | | break; |
| | | case 'shuttleGather': |
| | | shuttleNos = [] |
| | | checkStatus.map(function (d) { |
| | | shuttleNos.push(d.shuttleNo) |
| | | }) |
| | | |
| | | admin.confirm('确定集合全部小车吗?', {shadeClose: true}, function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/openapi/shuttleGather", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | dataType:'json', |
| | | data: JSON.stringify({ |
| | | shuttleNos: shuttleNos |
| | | }), |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.closeAll(); |
| | | if (res.code === 200) { |
| | | layer.msg("请求成功", {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |