From a849cf9cf800cc9a56296ea6eb76d4bed59c9958 Mon Sep 17 00:00:00 2001 From: 18516761980 <4761516tqsxp> Date: 星期一, 21 九月 2020 16:00:21 +0800 Subject: [PATCH] # --- src/main/webapp/views/console.html | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html index 5ff2bb3..1cd0fb9 100644 --- a/src/main/webapp/views/console.html +++ b/src/main/webapp/views/console.html @@ -534,8 +534,10 @@ for (var i = 0; i < crns.length; i++){ 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 * ($('.item').eq(0).width()+4)) +'px'}, 1000); + + var unit = $('.item').eq(0).width()+4; + crnEl.animate({left: (crns[i].bay * unit + 50) +'px'}, 1000); + // crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000); } } else if (res.code === 403){ parent.location.href = baseUrl+"/login"; -- Gitblit v1.9.1