From f89ca17a1a365f5cd349bca3ebf6b2c80f0e534d Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期五, 28 八月 2020 13:47:21 +0800 Subject: [PATCH] #v2.1 --- src/main/webapp/views/console.html | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html index 8ab9945..bf637e3 100644 --- a/src/main/webapp/views/console.html +++ b/src/main/webapp/views/console.html @@ -108,7 +108,6 @@ <!-- 璐ф灦 --> <div class="stock-group"> <div id="site-2" class="site" style="">2</div> - <button class="item">1</button> <button class="item">2</button> <button class="item">3</button> <button class="item">4</button> @@ -169,7 +168,6 @@ <!-- 璐ф灦 --> <div class="stock-group"> <div id="site-4" class="site" style="">4</div> - <button class="item">1</button> <button class="item">2</button> <button class="item">3</button> <button class="item">4</button> @@ -227,7 +225,6 @@ <!-- 璐ф灦 --> <div class="stock-group"> <div id="site-6" class="site" style="">6</div> - <button class="item">1</button> <button class="item">2</button> <button class="item">3</button> <button class="item">4</button> @@ -288,7 +285,6 @@ <!-- 璐ф灦 --> <div class="stock-group"> <div id="site-8" class="site" style="">8</div> - <button class="item">1</button> <button class="item">2</button> <button class="item">3</button> <button class="item">4</button> @@ -683,7 +679,8 @@ 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 + 20) +'px'}, 1000); } } else if (res.code === 403){ window.location.href = baseUrl+"/login"; -- Gitblit v1.9.1