#
Junjie
2025-08-16 b579fe0be3bd02ec39d612a62b23901fb852c173
src/main/webapp/views/console.html
@@ -70,6 +70,10 @@
                    <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>
@@ -461,12 +465,14 @@
    getSitesInfo();
    getCrnInfo();
    getSystemRunningStatus();
    getDevpTaskCount();
    getBarcodeInfo();
    getScaleInfo();
    // 实时访问
    setInterval(function () {
        getCrnInfo();
        getSystemRunningStatus();
        getDevpTaskCount();
        getBarcodeInfo();
        getScaleInfo();
    }, 1000);
@@ -550,6 +556,26 @@
        });
    }
    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({