1
zhang
2026-01-22 6876084ffc4a01c1eca6a609dec8c176efc59aae
zy-acs-cv/src/main/webapp/views/monitor/js/monitor.js
@@ -31,8 +31,8 @@
 * 获取时间
 */
function getDate() {
    http.get(baseUrl+"/monitor/date", null, function (res) {
        if (res.code === 200){
    http.get(baseUrl + "/monitor/date", null, function (res) {
        if (res.code === 200) {
            year = res.data.year;
            month = res.data.month;
            day = res.data.day;
@@ -40,9 +40,9 @@
            minute = res.data.minute;
            second = res.data.second;
            week = res.data.week;
        } else if (res.code === 403){
            parent.location.href = baseUrl+"/login";
        }  else {
        } else if (res.code === 403) {
            parent.location.href = baseUrl + "/login";
        } else {
            layer.msg("连接服务器失败", {icon: 2});
        }
    })
@@ -53,8 +53,8 @@
 * 获取其他数据
 */
function getOther() {
    http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId"), ledId: getUrlVal("ledId")}, function (res) {
        if (res.code === 200){
    http.get(baseUrl + "/monitor/other", {crnId: getUrlVal("crnId"), ledId: getUrlVal("ledId")}, function (res) {
        if (res.code === 200) {
            // 左
            $('#xDistance').text(res.data.xDistance);
@@ -84,9 +84,9 @@
                $('#led-p-content').text("");
            }
        } else if (res.code === 403){
            parent.location.href = baseUrl+"/login";
        }  else {
        } else if (res.code === 403) {
            parent.location.href = baseUrl + "/login";
        } else {
            layer.msg("连接服务器失败", {icon: 2});
        }
    })
@@ -120,14 +120,11 @@
function exitFull() {
    if (document.exitFullscreen) {
        document.exitFullscreen();
    }
    else if (document.mozCancelFullScreen) {
    } else if (document.mozCancelFullScreen) {
        document.mozCancelFullScreen();
    }
    else if (document.webkitCancelFullScreen) {
    } else if (document.webkitCancelFullScreen) {
        document.webkitCancelFullScreen();
    }
    else if (document.msExitFullscreen) {
    } else if (document.msExitFullscreen) {
        document.msExitFullscreen();
    }
}
@@ -136,7 +133,8 @@
document.addEventListener("fullscreenchange", function () {
    try {
        fullscreenState.innerHTML = (document.fullscreen) ? "" : "not ";
    } catch (e) {}
    } catch (e) {
    }
}, false);
document.addEventListener("mozfullscreenchange", function () {
    fullscreenState.innerHTML = (document.mozFullScreen) ? "" : "not ";