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 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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