From 632bde0f32999a2b319b706e23d90bc1b5dd8cc2 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期二, 21 四月 2026 17:22:56 +0800
Subject: [PATCH] 1.新增拍照功能

---
 src/main/webapp/static/js/locMast/locMast.js |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/locMast/locMast.js b/src/main/webapp/static/js/locMast/locMast.js
index 7fc6049..8a26d37 100644
--- a/src/main/webapp/static/js/locMast/locMast.js
+++ b/src/main/webapp/static/js/locMast/locMast.js
@@ -69,7 +69,7 @@
             ,{field: 'locType2$', align: 'center',title: '瀹界獎绫诲瀷', hide:true}
             ,{field: 'locType3$', align: 'center',title: '杞婚噸绫诲瀷', hide:true}
 
-            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:100}
+            ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:160}
         ]],
         request: {
             pageName: 'curr',
@@ -267,6 +267,23 @@
                     }
                 });
                 break;
+            case 'viewPhoto':
+                $.ajax({
+                    url: baseUrl + "/photo/loc/auth",
+                    headers: {'token': localStorage.getItem('token')},
+                    data: {locNo: data.locNo},
+                    method: 'GET',
+                    success: function (res) {
+                        if (res.code === 200) {
+                            showPhotoViewer(layer, res.data);
+                        } else if (res.code === 403) {
+                            top.location.href = baseUrl + "/";
+                        } else {
+                            layer.msg(res.msg);
+                        }
+                    }
+                });
+                break;
             // 缂栬緫
             case 'edit':
                 layer.open({

--
Gitblit v1.9.1