From 8e8a4947987280d0ec39bbc7b1722a22f9c5aab3 Mon Sep 17 00:00:00 2001 From: duxp Date: Sun, 8 Oct 2023 17:07:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A2=84=E8=A7=88=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/base/affairs/viewFiles.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cyx-admin/src/main/resources/templates/base/affairs/viewFiles.html b/cyx-admin/src/main/resources/templates/base/affairs/viewFiles.html index 665cdf8..9400105 100644 --- a/cyx-admin/src/main/resources/templates/base/affairs/viewFiles.html +++ b/cyx-admin/src/main/resources/templates/base/affairs/viewFiles.html @@ -147,6 +147,20 @@ }) }); + //图片预览 + $(".pre_view_list").on("click",'.pre_img',function () { + let _url = $(this).attr('data-img'); + layer.open({ + title:'预览图片', + area:['80%','80%'], + type:1, + content:'
', + success(res){ + + }, + }) + }); + //文件下载 $(".pre_view_list").on("click",'.down_load_file',function () { let _url = $(this).attr('data-url'); @@ -215,7 +229,7 @@ let _nameFile = item.name.substr(item.name.lastIndexOf('/')+1,item.name.length-1); if(item.name.indexOf('png') > -1 || item.name.indexOf('jpg')>-1){ _file_list_str += '
' + - '
('+(index+1)+') '+_nameFile+'
' + + '
('+(index+1)+') '+_nameFile+'
' + '
下载删除
'; }else if(item.name.indexOf('pdf') > -1){ _file_list_str += '
' +