From 0a48088be18e19f20cdfdfd5eb3553585bc87cfb Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期二, 02 六月 2020 08:24:20 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 8b0fb49..41d6737 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -416,7 +416,7 @@
     setInterval(function () {
         getSitesInfo();
         getCrnInfo();
-    }, 1000);
+    }, 500);
 
     // 杈撻�佽澶囧疄鏃舵暟鎹幏鍙�
     function getSitesInfo(){
@@ -461,6 +461,24 @@
         });
     }
 
+    // 鎵爜鍣ㄥ疄鏃舵暟鎹幏鍙�
+    function getBarcodeInfo(){
+        $.ajax({
+            url: baseUrl+ "/console/latest/data/barcode",
+            headers: {'token': localStorage.getItem('token')},
+            method: 'POST',
+            success: function (res) {
+                if (res.code === 200){
+
+                } else if (res.code === 403){
+                    top.location.href = baseUrl+"/login";
+                }  else {
+                    alert(res.msg);
+                }
+            }
+        });
+    }
+
     // 鍫嗗灈鏈哄亸绉诲姩鐢�
     function crnAnimate(id, leftVal) {
         switch (id) {

--
Gitblit v1.9.1