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/locDetl/locDetl.js | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index 8612fe7..a6f4b17 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -47,6 +47,7 @@
cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
,{field: 'memo', align: 'center',title: '澶囨敞', hide: false}
,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
+ ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:160}
)
return cols;
}
@@ -297,6 +298,29 @@
table.on('tool(locDetl)', function(obj){
var data = obj.data;
switch (obj.event) {
+ case 'viewPhoto':
+ if (!data.pic) {
+ layer.msg('鏆傛棤鐓х墖');
+ break;
+ }
+ $.ajax({
+ url: baseUrl + "/photo/resolve/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: JSON.stringify({pic: data.pic}),
+ dataType:'json',
+ contentType:'application/json;charset=UTF-8',
+ method: 'POST',
+ 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 'detail':
layer.open({
--
Gitblit v1.9.1