From 61694606d640cac824c36ee5bca709b6cc0ecb10 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 21 十一月 2020 16:44:49 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/monitor/js/monitor.js |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/monitor/js/monitor.js b/src/main/webapp/views/monitor/js/monitor.js
index e4da56e..ac48e85 100644
--- a/src/main/webapp/views/monitor/js/monitor.js
+++ b/src/main/webapp/views/monitor/js/monitor.js
@@ -7,11 +7,14 @@
 var week = '鏄熸湡涓�';
 
 setInterval(function () {
-    getOther();
     setDate();
     initlineChart();
     initPieChart();
 }, 1000);
+
+setInterval(function () {
+    getOther();
+}, 500);
 
 function setDate() {
     getDate();
@@ -70,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 {

--
Gitblit v1.9.1