From 17463cab256dba2036e316fa7bc90d6e8d1db1d5 Mon Sep 17 00:00:00 2001
From: 18516761980 <56479841@qq.com>
Date: 星期二, 16 八月 2022 13:50:57 +0800
Subject: [PATCH] #

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

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 5f1796a..bc675bd 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -595,29 +595,15 @@
                     for (var i = 0; i < crns.length; i++) {
                         var crnEl = $("#crn-" + crns[i].crnId);
                         crnEl.attr("class", "machine " + crns[i].crnStatus);
-                        var unit = 0;//($('.item').eq(0).width() + 13) / 2;
+                        var unit = 20.6;//($('.item').eq(0).width() + 13) / 2;
                         if (crns[i].bay < 0) {
-                            crns[i].bay = 1
+                            crns[i].bay = 1;
                         }
                         // crnEl.animate({left: (crns[i].bay * unit) + 'px'}, 1000);
                         // crns[i].bay = 1;
 
-                        var offSet = 0;
-                        switch (i) {
-                            case 0:
-                                unit = 34;
-                                offSet = 337;
-                                break;
-                            case 1:
-                                unit = 68;
-                                offSet = 337;
-                                break;
-                            case 2:
-                                unit = 17;
-                                offSet = 337;
-                                break;
-                        }
-
+                        var offSet = 390;
+                        // crns[i].bay = 41;
                         if(crns[i].bay === 1){
                             crnEl.animate({left: offSet + 'px'}, 1000);
                         } else {

--
Gitblit v1.9.1