Browse Source

pdf单文件预览下载

hanzhen 3 years ago
parent
commit
b368f83073
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/static/page/archive/show.html

+ 2 - 2
src/main/resources/static/page/archive/show.html

@@ -184,11 +184,11 @@
                         if (i == 0) {
                         if (i == 0) {
                             html += '<li class="layui-bg-green">' +
                             html += '<li class="layui-bg-green">' +
                                 '<a title="' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '" pdf_src="' + pef_src + '">' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '</a>' +
                                 '<a title="' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '" pdf_src="' + pef_src + '">' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '</a>' +
-                                '<a style="text-align: right;"download="' + item.fileName + '" href="' + 'http://66.1.21.158:9091/' + item.filePath + '/' + item.fileName + '">预览</a></li>'
+                                '<a style="text-align: right;"download="' + item.fileName + '" href="' + 'http://66.1.21.158:9091/' + item.filePath + '/' + item.fileName + '">下载</a></li>'
                             $("#pdf_show").prop('src', pef_src)
                             $("#pdf_show").prop('src', pef_src)
                         } else {
                         } else {
                             html += '<li><a title="' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '" pdf_src="' + pef_src + '">' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '</a>' +
                             html += '<li><a title="' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '" pdf_src="' + pef_src + '">' + (i + 1) + '、' + (item.jnml ? item.jnml : '档案文件') + '</a>' +
-                                '<a style="text-align: right;" download="' + item.fileName + '" href="' + 'http://66.1.21.158:9091/' + item.filePath + '/' + item.fileName + '">预览</a></li>'
+                                '<a style="text-align: right;" download="' + item.fileName + '" href="' + 'http://66.1.21.158:9091/' + item.filePath + '/' + item.fileName + '">下载</a></li>'
                         }
                         }
                     }
                     }
                     $("#file_list").append(html)
                     $("#file_list").append(html)