From bf7f18b252078aa07b7df4a2b51a36e320663730 Mon Sep 17 00:00:00 2001 From: yxFwq <1> Date: 星期四, 18 七月 2024 19:00:46 +0800 Subject: [PATCH] # --- src/main/webapp/views/console.html | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 52 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html index 7ad3bef..1a066b7 100644 --- a/src/main/webapp/views/console.html +++ b/src/main/webapp/views/console.html @@ -21,7 +21,7 @@ <h6>AUTOMATIC WAREHOUSE WCS MONITORING DIAGRAM</h6> </div> <div class="head-right"> - <img src="../static/images/zy-logo.png" alt="涓壃" height="44" width="80"> +<!-- <img src="../static/images/zy-logo.png" alt="寰愬伐姹変簯" height="44" width="80">--> </div> </div> <!-- 璐ф灦 + 鍫嗗灈鏈� + 鍏ュ簱绔欑偣 --> @@ -462,6 +462,8 @@ getSystemRunningStatus(); getBarcodeInfo(); getScaleInfo(); + // carAnimate(); + carAnimate2(); // 瀹炴椂璁块棶 setInterval(function () { getCrnInfo(); @@ -744,5 +746,54 @@ $("#site-0" + id).animate({top: targetTop + 'px'}, 1000); } + //RGV杞﹁締鍚勭珯鐐硅窛绂绘暟鎹� + let sitePosition = { + 101: '68px', + 102: '117px', + 122: '183px', + 104: '183px', + 105: '232px', + 118: '297px', + 107: '297px', + 108: '345px', + 119: '355px', + 110: '410px', + 120: '421px', + 111: '459px', + 121: '479px', + 113: '524px', + 123: '556px', + 114: '572px', + 1142: '600px', + 116: '639px', + 117: '687px', + } + + //RGV杞︾Щ鍔ㄥ姩鐢� + function moveSite(siteId, staNo) { + $(siteId).animate({top: sitePosition[staNo]}, 1000); + } + + // moveSite("#site-1", 117);//娴嬭瘯绉诲姩鏂规硶,鍙垹闄� + + // Rgv瀹炴椂鏁版嵁鑾峰彇 + function carAnimate2() { + // console.log("1=============1") + $.ajax({ + url: baseUrl + "/rgv/console/rgv/site/data", + headers: {'token': localStorage.getItem('token')}, + method: 'POST', + success: function (res) { + if (res.code === 200) { + var rgvMap = res.data; + for (var i = 0; i < rgvMap.length; i++) { + moveSite("#site-"+rgvMap[i].id, rgvMap[i].title); + } + } else { + console.log(res.msg); + } + } + }); + } </script> \ No newline at end of file -- Gitblit v1.9.1