From 6876084ffc4a01c1eca6a609dec8c176efc59aae Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期四, 22 一月 2026 15:16:45 +0800
Subject: [PATCH] 1
---
zy-acs-cv/src/main/webapp/views/monitor/js/monitor.js | 32 +++++++++++++++-----------------
1 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/zy-acs-cv/src/main/webapp/views/monitor/js/monitor.js b/zy-acs-cv/src/main/webapp/views/monitor/js/monitor.js
index c99b0f8..da07b0f 100644
--- a/zy-acs-cv/src/main/webapp/views/monitor/js/monitor.js
+++ b/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 ";
--
Gitblit v1.9.1