| | |
| | | <span>运输线总数</span> |
| | | <span id="line-total" class="line-ss"></span> |
| | | </div> |
| | | <div class="state states"> |
| | | <span>输送线任务过载 <span id="devpTaskStackOver"></span></span> |
| | | <span id="devpWorkingCount" class="line-ss"></span> |
| | | </div> |
| | | <div class="button"><span>所有状态</span></div> |
| | | <div class="button item-group"> |
| | | <span class="site-auto-run-id">自动+有物+ID</span> |
| | |
| | | getSitesInfo(); |
| | | getCrnInfo(); |
| | | getSystemRunningStatus(); |
| | | getDevpTaskCount(); |
| | | getBarcodeInfo(); |
| | | getScaleInfo(); |
| | | // 实时访问 |
| | | setInterval(function () { |
| | | getCrnInfo(); |
| | | getSystemRunningStatus(); |
| | | getDevpTaskCount(); |
| | | getBarcodeInfo(); |
| | | getScaleInfo(); |
| | | }, 1000); |
| | |
| | | }); |
| | | } |
| | | |
| | | function getDevpTaskCount() { |
| | | $.ajax({ |
| | | url: baseUrl + "/console/devpTaskCount", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | let devpTaskStackOver = res.data.devpTaskStackOver |
| | | let devpWorkingCount = res.data.devpWorkingCount |
| | | $("#devpTaskStackOver").html(devpTaskStackOver); |
| | | $("#devpWorkingCount").html(devpWorkingCount); |
| | | } else if (res.code === 403) { |
| | | parent.location.href = baseUrl + "/login"; |
| | | } else { |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 输送设备实时数据获取 |
| | | function getSitesInfo() { |
| | | $.ajax({ |