From 2165f5c087838fa0a72034a7d6f938ee80d1f0e7 Mon Sep 17 00:00:00 2001 From: 16639036659 <577530412@qq.com> Date: 星期五, 25 八月 2023 09:48:55 +0800 Subject: [PATCH] 隐患整改延期 --- src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html index 29adaa0..59799b6 100644 --- a/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html +++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/detailNotJudge.html @@ -160,11 +160,12 @@ imageUrlArray.forEach(function(url, index) { var img = document.createElement('img'); img.setAttribute('src', url); - img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;'); + img.setAttribute('style', 'width: 100px; height: 100px; cursor: pointer;margin: 10px'); img.setAttribute('title', '查看图片'); img.setAttribute('data-id', ids); img.addEventListener('click', function() { - showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); + // showPicture(this.getAttribute('data-id'), 'preRectifyPhoto'); + openPicture(url) }); imageContainer.appendChild(img); }); @@ -175,6 +176,9 @@ var urlLast = showPictureUrl.replace("{type}", type).replace("{id}", id); $.operate.openDetailInfo("查看图片", urlLast); } + function openPicture(url) { + window.open(url) + } </script> </body> -- Gitblit v1.9.2