Pārlūkot izejas kodu

项目上传图片查看引用调整

徐滕 1 nedēļu atpakaļ
vecāks
revīzija
fa443b2940

+ 1 - 1
src/main/webapp/WEB-INF/tags/table/fileUpload.tag

@@ -155,7 +155,7 @@
                                         or fn:containsIgnoreCase(attach.attachmentName,'jpeg')}">
                                     <img src="${attach.temporaryUrl != null ? attach.temporaryUrl : attach.url}"
                                          width="50" height="50"
-                                         onclick="openDialogView('预览','${picturePreviewUrl}${attach.temporaryUrl != null ? attach.temporaryUrl : attach.url}','90%','90%')"
+                                         onclick="openPreview('${attach.temporaryUrl != null ? attach.temporaryUrl : attach.url}',5)"
                                          alt="${attach.attachmentName}" title="${attach.attachmentName}">
                                 </c:when>
                                 <%-- PDF类型 --%>

+ 6 - 6
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/all/adminReportEditFormAlls.jsp

@@ -1864,7 +1864,7 @@
                                                            or fn:containsIgnoreCase(fileAttachment.attachName,'gif')
                                                            or fn:containsIgnoreCase(fileAttachment.attachName,'bmp')
                                                            or fn:containsIgnoreCase(fileAttachment.attachName,'jpeg')}">
-																<img src="${fileAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${fileAttachment.temporaryUrl}','90%','90%')" alt="${fileAttachment.attachName}">
+																<img src="${fileAttachment.temporaryUrl}" width="50" height="50" onclick="openPreview('${fileAttachment.temporaryUrl}',5)" alt="${fileAttachment.attachName}">
 															</c:when>
 															<c:otherwise>
 																<c:choose>
@@ -1885,7 +1885,7 @@
 																				   or fn:containsIgnoreCase(fileAttachment.attachName,'gif')
 																				   or fn:containsIgnoreCase(fileAttachment.attachName,'bmp')
 																				   or fn:containsIgnoreCase(fileAttachment.attachName,'jpeg')}">
-																<img src="${fileAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${fileAttachment.url}','90%','90%')" alt="${fileAttachment.attachName}">
+																<img src="${fileAttachment.url}" width="50" height="50" onclick="openPreview('${fileAttachment.url}',5)" alt="${fileAttachment.attachName}">
 															</c:when>
 															<c:otherwise>
 																<c:choose>
@@ -1996,7 +1996,7 @@
                                                            or fn:containsIgnoreCase(fileGistdata.attachName,'gif')
                                                            or fn:containsIgnoreCase(fileGistdata.attachName,'bmp')
                                                            or fn:containsIgnoreCase(fileGistdata.attachName,'jpeg')}">
-																<img src="${fileGistdata.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${fileGistdata.temporaryUrl}','90%','90%')" alt="${fileGistdata.attachName}">
+																<img src="${fileGistdata.temporaryUrl}" width="50" height="50" onclick="openPreview('${fileGistdata.temporaryUrl}',5)" alt="${fileGistdata.attachName}">
 															</c:when>
 															<c:otherwise>
 																<c:choose>
@@ -2017,7 +2017,7 @@
 																				   or fn:containsIgnoreCase(fileGistdata.attachName,'gif')
 																				   or fn:containsIgnoreCase(fileGistdata.attachName,'bmp')
 																				   or fn:containsIgnoreCase(fileGistdata.attachName,'jpeg')}">
-																<img src="${fileGistdata.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${fileGistdata.url}','90%','90%')" alt="${fileGistdata.attachName}">
+																<img src="${fileGistdata.url}" width="50" height="50" onclick="openPreview('${fileGistdata.url}',5)" alt="${fileGistdata.attachName}">
 															</c:when>
 															<c:otherwise>
 																<c:choose>
@@ -2128,7 +2128,7 @@
                                                            or fn:containsIgnoreCase(fileOther.attachName,'gif')
                                                            or fn:containsIgnoreCase(fileOther.attachName,'bmp')
                                                            or fn:containsIgnoreCase(fileOther.attachName,'jpeg')}">
-																<img src="${fileOther.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${fileOther.temporaryUrl}','90%','90%')" alt="${fileOther.attachName}">
+																<img src="${fileOther.temporaryUrl}" width="50" height="50" onclick="openPreview('${fileOther.temporaryUrl}',5)" alt="${fileOther.attachName}">
 															</c:when>
 															<c:otherwise>
 																<c:choose>
@@ -2149,7 +2149,7 @@
 																				   or fn:containsIgnoreCase(fileOther.attachName,'gif')
 																				   or fn:containsIgnoreCase(fileOther.attachName,'bmp')
 																				   or fn:containsIgnoreCase(fileOther.attachName,'jpeg')}">
-																<img src="${fileOther.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${fileOther.url}','90%','90%')" alt="${fileOther.attachName}">
+																<img src="${fileOther.url}" width="50" height="50" onclick="openPreview('${fileOther.url}',5)" alt="${fileOther.attachName}">
 															</c:when>
 															<c:otherwise>
 																<c:choose>