From aa7e48e0c3bb800bae361aca11f5164c950855c8 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 23 五月 2024 13:40:58 +0800
Subject: [PATCH] #海康摄像头

---
 zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js |   39 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 38 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js b/zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js
index 83b1da3..6daaf54 100644
--- a/zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js
+++ b/zy-asrs-wms/src/main/webapp/static/js/stoMan/stoQue.js
@@ -41,7 +41,7 @@
                 },width:80}
             ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳'}
             ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', width: 180}
-            ,{ fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate'}
+            ,{ fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width: 300}
         ]],
         request: {
             pageName: 'curr',
@@ -166,6 +166,43 @@
                 }
                 locDetlToLayer(data.locNo);
                 break;
+            // 鏌ョ湅鍥剧墖
+            case 'showPic':
+                let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;">';
+                $.ajax({
+                    url: baseUrl+"/locMast/picUrl",
+                    headers: {'token': localStorage.getItem('token')},
+                    data: {
+                        locNo: data.locNo
+                    },
+                    method: 'GET',
+                    traditional:true,
+                    success: function (res) {
+                        if (res.code === 200){
+                            res.data.forEach((item) => {
+                                let tmp = '<img width="600" src="' + item + '" />\'';
+                                imgHtml += tmp;
+                            })
+                            imgHtml += "</div>";
+
+                            layer.open({
+                                type: 1,
+                                title: '鏌ョ湅鍥剧墖',
+                                area: [top.detailWidth, top.detailHeight],
+                                shadeClose: true,
+                                content: imgHtml,
+                                success: function(layero, index){
+                                }
+                            });
+
+                        } else if (res.code === 403){
+                            top.location.href = baseUrl+"/";
+                        } else {
+                            layer.msg(res.msg)
+                        }
+                    }
+                });
+                break;
         }
     });
 

--
Gitblit v1.9.1