From b291d46184e69b11cd9fa045e6d06be084d4203b Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期四, 18 十二月 2025 20:38:36 +0800
Subject: [PATCH] 大屏标语配置,及大屏推送
---
fzzy-igdss-web/src/main/resources/static/common/igds-common.js | 97 +++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 82 insertions(+), 15 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/static/common/igds-common.js b/fzzy-igdss-web/src/main/resources/static/common/igds-common.js
index 7213f8f..f899319 100644
--- a/fzzy-igdss-web/src/main/resources/static/common/igds-common.js
+++ b/fzzy-igdss-web/src/main/resources/static/common/igds-common.js
@@ -58,7 +58,8 @@
// 鍙戠敓浜嗛敊璇簨浠�
socket.onerror = function () {
- alert("Socket error鈥︹��");
+ // alert("Socket error鈥︹��");
+ console.log("Socket error鈥︹��");
};
$(window).unload(function () {
@@ -216,23 +217,89 @@
* @param pageTag
*/
function changePage(pageTag) {
- var url = "../dept-board/index";
+ var url = "/group/board";
- if ("inout" == pageTag) {
- url = "../dept-board/inout";
- }
- if ("ai" == pageTag) {
- url = "../dept-board/ai";
- }
- if ("video" == pageTag) {
- url = "../dept-board/video";
- }
- //鍚庡彴绠$悊棣栭〉
- if ("backstage" == pageTag) {
- url = "../index";
- window.parent.open(url, "_self");
+ if ("logout" == pageTag) {
+ window.top.location.href = "/logout";
return;
}
+ if ("index" == pageTag) {
+ url = "/group/index";
+ }
+ if ("gis" == pageTag) {
+ url = "/group/gis";
+ }
+ if ("video" == pageTag) {
+ url = "/group/video";
+ }
+ if ("sys" == pageTag) {
+ url = "/index?deptId=" + deptId;
+ }
window.location.href = url;
}
+
+/**
+ * 鍒濆鏍囪鏁版嵁
+ */
+function initDicSlogan() {
+ if (dicSlogan) {
+ if (dicSlogan.color == "red") {
+ $("#sloganText").css({
+ color: "#DE2910"
+ });
+ } else {
+ $("#sloganText").css({
+ color: "#7ddfff"
+ });
+ }
+ $("#sloganText").text(dicSlogan.content);
+ }
+}
+
+//娴忚鍣ㄥ叏灞�
+var fullscreen = false;
+
+function changeScreen() {
+ const element = document.documentElement
+ // 濡傛灉鏄叏灞忕姸鎬�
+ if (fullscreen) {
+ // 濡傛灉娴忚鍣ㄦ湁杩欎釜Function
+ if (document.exitFullscreen) {
+ document.exitFullscreen()
+ } else if (document.webkitCancelFullScreen) {
+ document.webkitCancelFullScreen()
+ } else if (document.mozCancelFullScreen) {
+ document.mozCancelFullScreen()
+ } else if (document.msExitFullscreen) {
+ document.msExitFullscreen()
+ }
+ } else {
+ // 濡傛灉娴忚鍣ㄦ湁杩欎釜Function
+ if (element.requestFullscreen) {
+ element.requestFullscreen()
+ } else if (element.webkitRequestFullScreen) {
+ element.webkitRequestFullScreen()
+ } else if (element.mozRequestFullScreen) {
+ element.mozRequestFullScreen()
+ } else if (element.msRequestFullscreen) {
+ element.msRequestFullscreen()
+ }
+ }
+ // 鍒ゆ柇鍏ㄥ睆鐘舵�佺殑鍙橀噺
+ fullscreen = !fullscreen
+}
+
+function exitFullScreen() {
+ // 濡傛灉娴忚鍣ㄦ湁杩欎釜Function
+ if (document.exitFullscreen) {
+ document.exitFullscreen()
+ } else if (document.webkitCancelFullScreen) {
+ document.webkitCancelFullScreen()
+ } else if (document.mozCancelFullScreen) {
+ document.mozCancelFullScreen()
+ } else if (document.msExitFullscreen) {
+ document.msExitFullscreen()
+ }
+ fullscreen = false;
+}
--
Gitblit v1.9.3