From 242bbccea6fd21c130f639cf7b9c6aa95d41fe44 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 16 一月 2024 11:12:42 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   32 ++++++++++++++++++++++++++++++--
 1 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 1e78cad..eea7ecc 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -515,8 +515,8 @@
                 } else if (res.code === 403) {
                     parent.location.href = baseUrl + "/login";
                 } else {
+                    alert(res.msg);
                     console.log(res.msg);
-
                 }
             }
         });
@@ -556,7 +556,6 @@
             headers: {'token': localStorage.getItem('token')},
             method: 'POST',
             success: function (res) {
-                console.log(res);
                 if (res.code === 200) {
                     var sites = res.data;
                     for (var i = 0; i < sites.length; i++) {
@@ -745,5 +744,34 @@
         $("#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);//娴嬭瘯绉诲姩鏂规硶,鍙垹闄�
 
 </script>
\ No newline at end of file

--
Gitblit v1.9.1