From 4681e76c08febdf1a2311a6070c98e98f12a1bde Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期一, 26 九月 2022 14:53:29 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 312f877..4a5d9fe 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -22,7 +22,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="wcs" height="44" width="80">
         </div>
     </div>
     <!-- 璐ф灦 + 鍫嗗灈鏈� + 鍏ュ簱绔欑偣 -->
@@ -599,9 +599,11 @@
 </script>
 <script type="text/javascript">
     // 寮圭獥绔欑偣淇℃伅
-    $('.site').on('click', function () {
+    $('.site').on('click', function (e) {
         var id = this.id.split("-")[1];
         $("#siteWindow").attr("style", "display:block;");//鏄剧ずdiv
+        $("#siteWindow").css('left', e.pageX+20);
+        $("#siteWindow").css('top', e.pageY+20);
         $("#crnWindow").attr("style", "display:none;");
         $("#locWindow").attr("style", "display:none;");
         $(".detailed").empty();
@@ -630,9 +632,11 @@
 
     });
     // 鍫嗗灈鏈轰俊鎭�
-    $('.machine').on('click', function () {
+    $('.machine').on('click', function (e) {
         var id = this.id.split("-")[1];
         $("#crnWindow").attr('style', 'display:block;');
+        $("#crnWindow").css('left', e.pageX+20);
+        $("#crnWindow").css('top', e.pageY+20);
         $("#siteWindow").attr("style", "display:none;");
         $("#locWindow").attr("style", "display:none;");
         $('.detailed').empty();
@@ -661,7 +665,7 @@
 
     })
     // 鍫嗗灈鏈轰俊鎭�
-    $('.loc').on('click', function () {
+    $('.loc').on('click', function (e) {
         var id = this.id.split("-")[1];
         $.ajax({
             url: baseUrl + "/console/loc/detail",
@@ -675,6 +679,8 @@
             success: function (res) {
                 if (res.code === 200) {
                     $("#locWindow").attr('style', 'display:block;');
+                    $("#locWindow").css('left', e.pageX+10);
+                    $("#locWindow").css('top', e.pageY+10);
                     $("#siteWindow").attr("style", "display:none;");
                     $("#crnWindow").attr("style", "display:none;");
                     $('.detailed').empty();

--
Gitblit v1.9.1