From 975adcb893f3ea7b71ac2236db5d0232eb2691f0 Mon Sep 17 00:00:00 2001
From: pjb <pjb123456>
Date: 星期日, 03 八月 2025 15:48:27 +0800
Subject: [PATCH] 出库限制去捆绑机器任务数
---
src/main/webapp/views/monitor/js/monitor.js | 77 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/views/monitor/js/monitor.js b/src/main/webapp/views/monitor/js/monitor.js
index d874890..c99b0f8 100644
--- a/src/main/webapp/views/monitor/js/monitor.js
+++ b/src/main/webapp/views/monitor/js/monitor.js
@@ -53,7 +53,7 @@
* 鑾峰彇鍏朵粬鏁版嵁
*/
function getOther() {
- http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId")}, function (res) {
+ http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId"), ledId: getUrlVal("ledId")}, function (res) {
if (res.code === 200){
// 宸�
@@ -73,6 +73,17 @@
// crnChartOption.series[3].data[0].value = (Math.random()*2).toFixed(2) - 0;
crnChart.setOption(crnChartOption);
+ // 涓笅
+ if (res.data.isShow) {
+ $('#banner').hide();
+ $('#led-content').show();
+ $('#led-p-content').text(res.data.content);
+ } else {
+ $('#led-content').hide();
+ $('#banner').show();
+ $('#led-p-content').text("");
+ }
+
} else if (res.code === 403){
parent.location.href = baseUrl+"/login";
} else {
@@ -82,3 +93,67 @@
}
+// 鍏ㄥ睆 -----------------------------------------------------------------------
+
+//寮�濮嬪叏灞�
+function full() {
+ var docElm = document.documentElement;
+ //W3C
+ if (docElm.requestFullscreen) {
+ docElm.requestFullscreen();
+ }
+ //FireFox
+ else if (docElm.mozRequestFullScreen) {
+ docElm.mozRequestFullScreen();
+ }
+ //Chrome绛�
+ else if (docElm.webkitRequestFullScreen) {
+ docElm.webkitRequestFullScreen();
+ }
+ //IE11
+ else if (elem.msRequestFullscreen) {
+ elem.msRequestFullscreen();
+ }
+}
+
+//閫�鍑哄叏灞�
+function exitFull() {
+ if (document.exitFullscreen) {
+ document.exitFullscreen();
+ }
+ else if (document.mozCancelFullScreen) {
+ document.mozCancelFullScreen();
+ }
+ else if (document.webkitCancelFullScreen) {
+ document.webkitCancelFullScreen();
+ }
+ else if (document.msExitFullscreen) {
+ document.msExitFullscreen();
+ }
+}
+
+//浜嬩欢鐩戝惉
+document.addEventListener("fullscreenchange", function () {
+ try {
+ fullscreenState.innerHTML = (document.fullscreen) ? "" : "not ";
+ } catch (e) {}
+}, false);
+document.addEventListener("mozfullscreenchange", function () {
+ fullscreenState.innerHTML = (document.mozFullScreen) ? "" : "not ";
+}, false);
+document.addEventListener("webkitfullscreenchange", function () {
+ fullscreenState.innerHTML = (document.webkitIsFullScreen) ? "" : "not ";
+}, false);
+document.addEventListener("msfullscreenchange", function () {
+ fullscreenState.innerHTML = (document.msFullscreenElement) ? "" : "not ";
+}, false);
+document.onkeyup = function (e) {
+ if (window.event)//濡傛灉window.event瀵硅薄瀛樺湪锛屽氨浠ユ浜嬩欢瀵硅薄涓哄噯
+ e = window.event;
+ var key = e.charCode || e.keyCode;
+ if (key === 13 || key === 49 || key === 97) {
+ full();
+ } else if (key === 50 || key === 98) {
+ exitFull();
+ }
+}
--
Gitblit v1.9.1