From c96fbc66ec97d88baf95a75fa18092ccfc3f416c Mon Sep 17 00:00:00 2001
From: zhangchao <zc857179121@qq.com>
Date: 星期一, 26 八月 2024 20:08:43 +0800
Subject: [PATCH] 偶发bug(任务号丢失)

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

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 91ea99a..8a48028 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -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
         }

--
Gitblit v1.9.1