From d9131e43a1fa8fe4d5e086d02d4037997cb13bde Mon Sep 17 00:00:00 2001 From: lsh <1> Date: 星期二, 16 一月 2024 19:15:52 +0800 Subject: [PATCH] # --- src/main/webapp/views/console.html | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html index eea7ecc..e18345c 100644 --- a/src/main/webapp/views/console.html +++ b/src/main/webapp/views/console.html @@ -462,6 +462,8 @@ getSystemRunningStatus(); getBarcodeInfo(); getScaleInfo(); + // carAnimate(); + carAnimate2(); // 瀹炴椂璁块棶 setInterval(function () { getCrnInfo(); @@ -772,6 +774,26 @@ $(siteId).animate({top: sitePosition[staNo]}, 1000); } - moveSite("#site-1", 117);//娴嬭瘯绉诲姩鏂规硶,鍙垹闄� + // moveSite("#site-1", 117);//娴嬭瘯绉诲姩鏂规硶,鍙垹闄� + + // Rgv瀹炴椂鏁版嵁鑾峰彇 + function carAnimate2() { + // console.log("1=============1") + $.ajax({ + url: baseUrl + "/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