From d1db7fc8d9726687f554b58cc48bbe063bcc28b4 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 20 三月 2023 15:53:24 +0800
Subject: [PATCH] #

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

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index ea259e5..2c3a110 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -28,6 +28,10 @@
         <div class="main-part">
 
         </div>
+        <div style="width: 100px;height: 40px;background-color: rgb(108,167,168);position: absolute;
+            left: 374px;top:133px;z-index: 999"></div>
+        <div style="width: 100px;height: 40px;background-color: rgb(108,167,168);position: absolute;
+            left: 374px;top:380px;z-index: 999"></div>
         <div id="body">
             <!-- 鎬诲紑鍏� -->
             <div class="system-state">
@@ -344,7 +348,6 @@
             url: baseUrl + '/console/barcode/output/site',
             method: 'GET',
             success: function (res) {
-                console.log(res)
                 if (res.code === 200) {
                     tData = eval(res.data);
                     if (tData.length <= 5) {
@@ -569,6 +572,7 @@
                         }
 
                         if (sites[i].siteId === '16' || sites[i].siteId === '016') {
+
                             carAnimate(Number(sites[i].siteId), Number(sites[i].nearbySta));
                         }
                     }
@@ -603,8 +607,8 @@
                         // crns[i].bay = 15;
 
                         var offSet = 0;
-                        unit = 60;
-                        offSet = 325;
+                        unit = 11.5;
+                        offSet = 350;
 
 
                         if(crns[i].bay === 1){
@@ -698,23 +702,39 @@
 
     // 灏忚溅鍋忕Щ鍔ㄧ敾
     function carAnimate(id, target) {
-        var targetTop = 122;
+        // debugger
+        var targetTop = 0;
         if (id === 16 || id === '16' || id === '016') {
             switch (target) {
                 case 1:
-                    targetTop += 160;
+                    targetTop += 827;
                     break;
                 case 2:
-                    targetTop += 140;
+                    targetTop += 765;
                     break;
                 case 3:
-                    targetTop += 80;
+                    targetTop += 651;
                     break;
                 case 4:
-                    targetTop += 40;
+                    targetTop += 589;
+                    break;
+                case 5:
+                    targetTop += 505;
+                    break;
+                case 6:
+                    targetTop += 443;
                     break;
                 case 7:
-                    targetTop += 0;
+                    targetTop += 362;
+                    break;
+                case 8:
+                    targetTop += 297;
+                    break;
+                case 9:
+                    targetTop += 243;
+                    break;
+                case 10:
+                    targetTop += 129;
                     break;
                 default:
                     return;
@@ -722,7 +742,8 @@
         } else {
             return;
         }
-        $("#site-" + id).animate({top: targetTop + 'px'}, 1000);
+
+        $("#site-0" + id).animate({top: targetTop + 'px'}, 1000);
     }
 
 

--
Gitblit v1.9.1