From 3d6e22ee9a4eb70d9ce4e7a71fb4893a8c6f6056 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 30 六月 2023 15:30:45 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 8d69b6c..e79c633 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -604,15 +604,15 @@
var offSet = 0;
unit = -28.5;
- offSet = 1710; //145
+ offSet = 276; //145
- crnEl.animate({left: offSet + 'px'}, 1000);
- // if(crns[i].bay === 1){
- // crnEl.animate({left: offSet + 'px'}, 1000);
- // } else {
- // crnEl.animate({left: (offSet - unit + (crns[i].bay * unit)) + 'px'}, 1000);
- // }
+ // crnEl.animate({left: offSet + 'px'}, 1000);
+ if(crns[i].bay === 1){
+ crnEl.animate({left: offSet + 'px'}, 1000);
+ } else {
+ crnEl.animate({left: (offSet - unit + (crns[i].bay * unit)) + 'px'}, 1000);
+ }
}
} else if (res.code === 403) {
@@ -634,7 +634,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";
--
Gitblit v1.9.1