czt
2026-01-08 4c58f8f132adf830917b6b8f49f8c8de87aaf748
fzzy-igdss-web/src/main/resources/static/security/quantity.js
@@ -143,7 +143,6 @@
    }
}
/**
 * 请求图表信息
 */
@@ -317,6 +316,68 @@
    $("#divPlugin2").html(html);
}
/**
 * 启动开始检测
 */
function checkStart() {
    if (!curCamera) {
        shoTips("请先选择设备!");
        return;
    }
    layer.msg("开始执行……");
    var data = {
        'depotId': curCamera.depotId
    };
    $.ajax({
        type: "POST",
        url: "/security/check-single",
        dataType: "json",
        contentType: "application/json;charset=UTF-8",
        data: JSON.stringify(data),
        success: function (result) {
            if (result.code == "ORDER_SUCCESS") {
                shoTips("命令发生成功,请等待终端返回结果……");
            } else {
                shoTips("命令发送失败:" + result.msg);
            }
        },
        error: function () {
            shoTips("检测出现异常,执行失败!");
        }
    });
}
/**
 * 停止检测
 */
function checkStop() {
    if (!curCamera) {
        shoTips("请先选择仓库!");
        return;
    }
    layer.msg("开始执行……");
    var data = {
        'depotId': curCamera.depotId
    };
    $.ajax({
        type: "POST",
        url: "/security/check-stop",
        dataType: "json",
        contentType: "application/json;charset=UTF-8",
        data: JSON.stringify(data),
        success: function (result) {
            if (result.code == "ORDER_SUCCESS") {
                shoTips("命令发生成功……");
            } else {
                shoTips("命令发送失败:" + result.msg);
            }
        },
        error: function () {
            shoTips("检测出现异常,执行失败!");
        }
    });
}
// 初始化ECharts温度走势图
function initEcharts(names, data) {
    // 初始化ECharts温度走势图
@@ -389,4 +450,11 @@
    window.addEventListener('resize', function () {
        temperatureChart.resize();
    });
}
function shoTips(msg) {
    layer.msg(msg,
        {time: 3000, shift: 5, offset: "rb"},
        function () {
        });
}