From ae4881537a58d1e6200e5e34865ae0741b4f51a4 Mon Sep 17 00:00:00 2001
From: ZY <zc>
Date: 星期二, 30 七月 2024 18:47:05 +0800
Subject: [PATCH] 图标修改

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

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 4678401..8a48028 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -568,7 +568,7 @@
                             siteEl.html(sites[i].siteId);
                         }
 
-                        if (sites[i].siteId === '1' || sites[i].siteId === '2') {
+                        if (sites[i].siteId === '1' || sites[i].siteId === '2' || sites[i].siteId === '3') {
 
                             carAnimate(Number(sites[i].siteId), Number(sites[i].nearbySta));
                         }
@@ -608,7 +608,7 @@
                             case 1:
                             case 2:
                             case 3:
-                                unit = 35;
+                                unit = 18;
                                 offSet = 500;
                                 break;
                             case 5:
@@ -648,7 +648,7 @@
                 if (res.code === 200) {
                     var barcodes = res.data;
                     for (var i = 0; i < barcodes.length; i++) {
-                        $("#code-decoder-data-" + barcodes[i].barcodeId).html(barcodes[i].codeValue);
+                        $("#barcode-"+barcodes[i].barcodeId).html(barcodes[i].codeValue ? barcodes[i].codeValue : "--");
                     }
                 } else if (res.code === 403) {
                     parent.location.href = baseUrl + "/login";
@@ -698,14 +698,14 @@
                 $("#crn-3").animate({left: leftVal + 'px'}, 1000);
                 crn3Position = leftVal;
                 break;
-            case 4:
-                $("#crn-4").animate({left: leftVal + 'px'}, 1000);
-                crn4Position = leftVal;
-                break;
-            case 5:
-                $("#crn-5").animate({left: leftVal + 'px'}, 1000);
-                crn5Position = leftVal;
-                break;
+            // case 4:
+            //     $("#crn-4").animate({left: leftVal + 'px'}, 1000);
+            //     crn4Position = leftVal;
+            //     break;
+            // case 5:
+            //     $("#crn-5").animate({left: leftVal + 'px'}, 1000);
+            //     crn5Position = leftVal;
+            //     break;
             default:
                 break
         }
@@ -715,7 +715,7 @@
     function carAnimate(id, target) {
         // debugger
         var targetTop = 0;
-        if (id === 1 || id === '1' || id === '2' || id === 2) {
+        if (id === 1 || id === '1' || id === '2' || id === 2 || id === '3' || id === 3) {
             switch (target) {
                 case 1:
                     targetTop += 792;

--
Gitblit v1.9.1