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

---
 src/main/webapp/views/console.html     |    4 ++--
 src/main/webapp/static/css/console.css |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/css/console.css b/src/main/webapp/static/css/console.css
index fac613f..9a038bd 100644
--- a/src/main/webapp/static/css/console.css
+++ b/src/main/webapp/static/css/console.css
@@ -307,7 +307,7 @@
     position: absolute;
     background-color:#333!important;
     color: #333 !important;
-    width: 90%;
+    width: 95%;
     margin-top: 10px;
 }
 
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 6b1f177..b5f6220 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -683,7 +683,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";
@@ -830,7 +830,7 @@
 
 
     // 鍙拌溅鐐瑰嚮浜嬩欢
-    $(document).on("click", ".car", function () {
+    $(document).on("click", ".item", function () {
         var value = prompt('鐩爣绔欙細', "1");
         if (value == null) {
             alert('涓嶈兘涓虹┖锛�');

--
Gitblit v1.9.1