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 += '
' +