niujiuru 2 дней назад
Родитель
Сommit
f38a6fb0da

+ 3 - 2
web-ui.service/web/static/js/page2.js

@@ -197,6 +197,8 @@ function getNetworkStatus() {
       document.getElementById("var4").textContent = "--";
       document.getElementById("var5").textContent = "--";
     });
+
+  getNetLogLevel();
 }
 
 function startNetStatusRefresh() {
@@ -208,7 +210,7 @@ function startNetStatusRefresh() {
 
   netStatusTimer = setInterval(() => {
     getNetworkStatus();
-  }, 5000);
+  }, 3000);
 }
 
 function stopNetStatusRefresh() {
@@ -223,7 +225,6 @@ function initPage2() {
   getNetInfo1();
   getNetInfo2();
   getNetInfo3();
-  getNetLogLevel();
   connectLog("yfkj-networkd.service", "text4");
 }
 

+ 2 - 1
web-ui.service/web/static/js/page3.js

@@ -139,6 +139,8 @@ function getTimeStatus() {
       document.getElementById("var5").textContent = "--";
       document.getElementById("var6").textContent = "--";
     });
+
+  getTimeLogLevel();
 }
 
 function startTimeStatusRefresh() {
@@ -162,7 +164,6 @@ function stopTimeStatusRefresh() {
 
 function initPage3() {
   startTimeStatusRefresh()
-  getTimeLogLevel();
   connectLog("yfkj-timesyncd.service", "text1");
 }
 

+ 3 - 3
web-ui.service/web/static/js/page4.js

@@ -113,7 +113,6 @@ function restartGnssService() {
 
 let gnssStatusTimer = null;
 function getGnssStatus() {
-  console.log("getGnssStatus");
   fetch("/api/gnss/status")
     .then(async r => {
       if (!r.ok) {
@@ -134,6 +133,8 @@ function getGnssStatus() {
       document.getElementById("var2").textContent = "--";
       document.getElementById("var3").textContent = "--";
     });
+
+  getGnssLogLevel();
 }
 
 function startGnssStatusRefresh() {
@@ -145,7 +146,7 @@ function startGnssStatusRefresh() {
 
   gnssStatusTimer = setInterval(() => {
     getGnssStatus();
-  }, 5000);
+  }, 3000);
 }
 
 function stopGnssStatusRefresh() {
@@ -157,7 +158,6 @@ function stopGnssStatusRefresh() {
 
 function initPage4() {
   startGnssStatusRefresh()
-  getGnssLogLevel();
   connectLog("yfkj-gnss.service", "text1");
 }