From 2588ff8fd840d6e8eb5b7e1b4208f644d5a52324 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期四, 06 十一月 2025 13:39:25 +0800
Subject: [PATCH] 并板调整

---
 src/main/webapp/static/js/locDetl/locDetl.js |  100 +++++++++++++++++++++++++++-----------------------
 1 files changed, 54 insertions(+), 46 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index 7130954..2aca998 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -17,12 +17,20 @@
         ,{field: 'brand', align: 'center',title: '鍝佺墝', hide: true}
         ,{field: 'unit', align: 'center',title: '鍗曚綅', hide: true}
         ,{field: 'price', align: 'center',title: '鍗曚环', hide: true}
-        // ,{fixed: 'right', title:'绠�鍥�', align: 'center', toolbar: '#operate1', width: 300}
-        ,{field: 'right', align: 'center',title: '绠�鍥�', templet:function(row){
-                var html = "<img  src='http://127.0.0.1:8080/czkhasrs/previewImage?maktx=" +row.maktx+"'/>";
+        //,{fixed: 'right', title:'绠�鍥�', align: 'center', toolbar: '#operate1', width: 300}
+        // ,{fixed: 'right', align: 'center',title: '绠�鍥�', templet:function(row){
+        //         var html = "<img  src='http://127.0.0.1:8080/czkhasrs/previewImage?maktx=" +row.maktx+"'/>";
+        //         return html;
+        // }}
 
-                return html;
-            }}
+
+
+        // ,{fixed: 'right', align: 'center', title: '绠�鍥�', templet: function(row){
+        //         var html = "<a href='http://127.0.0.1:8080/czkhasrs/previewImage?maktx=" + row.maktx + "' target='_blank' rel='noopener noreferrer'>鏌ョ湅绠�鍥�</a>";
+        //         return html;
+        // }}
+
+
         ,{field: 'units', align: 'center',title: '鍗曚綅閲�', hide: true}
         ,{field: 'barcode', align: 'center',title: '鏉$爜', hide: true}
         ,{field: 'origin', align: 'center',title: '浜у湴', hide: true}
@@ -377,47 +385,47 @@
                 }
                 break;
             // 鏌ョ湅绠�鍥�
-            case 'showPic':
-                let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;flex-wrap: wrap;">';
-                $.ajax({
-                    url: baseUrl+"/previewImage",
-                    headers: {'token': localStorage.getItem('token')},
-                    data: {
-                        maktx: data.maktx
-                    },
-                    method: 'GET',
-                    traditional:true,
-                    success: function (res) {
-                        if (res.code === 200){
-                            res.data.forEach((item) => {
-                                let maktx = item.maktx;
-                                let pics = item.pics;
-                                pics.forEach((pic) => {
-                                    let tmp = '<div><div><img width="600" src="' + pic + '" /></div><div>' + maktx + '</div></div>';
-                                    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)
-                        }
-                    }
-                });
-                console.log(imgHtml)
-                break;
+            // case 'showPic':
+            //     let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;flex-wrap: wrap;">';
+            //     $.ajax({
+            //         url: baseUrl+"/previewImage",
+            //         headers: {'token': localStorage.getItem('token')},
+            //         data: {
+            //             maktx: data.maktx
+            //         },
+            //         method: 'GET',
+            //         traditional:true,
+            //         success: function (res) {
+            //             if (res.code === 200){
+            //                 res.data.forEach((item) => {
+            //                     let maktx = item.maktx;
+            //                     let pics = item.pics;
+            //                     pics.forEach((pic) => {
+            //                         let tmp = '<div><div><img width="600" src="' + pic + '" /></div><div>' + maktx + '</div></div>';
+            //                         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)
+            //             }
+            //         }
+            //     });
+            //     console.log(imgHtml)
+            //     break;
 
         }
     });

--
Gitblit v1.9.1