From 14b1f6f87b7bb4416a065c5e64f887c6a1ba64d5 Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期二, 27 九月 2022 13:04:37 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 9beeef1..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();
@@ -694,7 +700,7 @@
                                 res.data[val] = "鍦ㄥ簱娴嬭瘯涓�"
                                 break;
                             case "LOC_ERROR" :
-                                res.data[val] = "寮傚父"
+                                res.data[val] = "寮傚父鎶ヨ"
                                 break;
                             case "LOC_EMPTY" :
                                 res.data[val] = "绌哄簱浣�"

--
Gitblit v1.9.1