From 4026b1594d31cd40c7273e1cc3e121e8b4744bc0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 25 八月 2020 15:01:16 +0800
Subject: [PATCH] #

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

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 4fa7e1f..8197622 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -85,21 +85,13 @@
     </div>
 
 
-    <!-- 宸﹁緭閫佺嚎 -->
-
-    <!-- 鍙拌溅1 -->
+    <!----------- 宸﹁緭閫佺嚎 ---------->
 
     <!-- 鍙拌溅杞ㄩ亾 -->
-    <div id="car-track-1" class="car-track" style="position: absolute; top: 122px; left: 100px; width: 100px; height: 200px; background: url(../static/image/bg.jpg);"></div>
+    <div id="car-track-1" class="car-track"></div>
 
     <!-- 鍙拌溅瀹炰緥 -->
-    <div id="site-8" class="site car" style="
-        position: absolute;
-        top: 122px;
-        left: 100px;
-        width: 100px;
-        height: 40px;
-        line-height: 40px">8</div>
+    <div id="site-8" class="site car">8</div>
 
     <!-- 绗竴鍒楋紙瀹藉害 100px锛� -->
     <div class="site-row site-row-1">
@@ -540,7 +532,7 @@
                         var crnEl = $("#crn-"+crns[i].crnId);
                         crnEl.attr("class", "machine " + crns[i].crnStatus);
                         // crnAnimate(crns[i].crnId, crns[i].offset);
-                        crnEl.animate({left: (crns[i].bay * 30) +'px'}, 1000);
+                        crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000);
                     }
                 } else if (res.code === 403){
                     window.location.href = baseUrl+"/login";

--
Gitblit v1.9.1