From 760a9308de1bb471b97d58726eb523d5c01b9888 Mon Sep 17 00:00:00 2001 From: wanggeng888 <450292408@qq.com> Date: Tue, 16 Mar 2021 16:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/template/normal/page/list.ftl | 2 +- src/main/resources/template/normal/page/save.ftl | 10 +++++----- src/main/resources/template/normal/page/update.ftl | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/resources/template/normal/page/list.ftl b/src/main/resources/template/normal/page/list.ftl index 9991c71..8836b4d 100644 --- a/src/main/resources/template/normal/page/list.ftl +++ b/src/main/resources/template/normal/page/list.ftl @@ -111,7 +111,7 @@ if(downloadFile.length > 0) { downloadFile += ' | '; } - downloadFile += '点击下载' + downloadFile += '点击下载' } return downloadFile; <#elseif field.formFieldValue == "date"> diff --git a/src/main/resources/template/normal/page/save.ftl b/src/main/resources/template/normal/page/save.ftl index 8e9a775..a9a4726 100644 --- a/src/main/resources/template/normal/page/save.ftl +++ b/src/main/resources/template/normal/page/save.ftl @@ -115,7 +115,7 @@ {{# for(var i = 0, item = files[i]; item = files[i++];) { }}
- + {{# if(item.fileType == 'doc' || item.fileType == 'docx') { }} {{# } else if(item.fileType == 'xls' || item.fileType == 'xlsx') { }} @@ -167,7 +167,7 @@ {{# for(var i = 0, item = files[i]; item = files[i++];) { }}
- + @@ -226,7 +226,7 @@ {{# var files = d[fileName];}} {{# for(var i = 0, item = files[i]; item = files[i++];) { }}
- + @@ -326,7 +326,7 @@ return; } - top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), { + top.restAjax.get(top.restAjax.path('api/file/list', []), { ids: ids }, null, function(code, data) { refreshDownloadTemplet(fileName, data); @@ -346,7 +346,7 @@ variable: 'player', flashplayer: false, video: { - file: 'route/file/downloadfile/true/'+ item.fileId, + file: 'route/file/download/true/'+ item.fileId, type: 'video/mp4' } }); diff --git a/src/main/resources/template/normal/page/update.ftl b/src/main/resources/template/normal/page/update.ftl index bc8b05a..f5a0cf6 100644 --- a/src/main/resources/template/normal/page/update.ftl +++ b/src/main/resources/template/normal/page/update.ftl @@ -115,7 +115,7 @@ {{# for(var i = 0, item = files[i]; item = files[i++];) { }}
- + {{# if(item.fileType == 'doc' || item.fileType == 'docx') { }} {{# } else if(item.fileType == 'xls' || item.fileType == 'xlsx') { }} @@ -167,7 +167,7 @@ {{# for(var i = 0, item = files[i]; item = files[i++];) { }}
- + @@ -226,7 +226,7 @@ {{# var files = d[fileName];}} {{# for(var i = 0, item = files[i]; item = files[i++];) { }}
- + @@ -328,7 +328,7 @@ return; } - top.restAjax.get(top.restAjax.path('api/file/listfilebyfileid', []), { + top.restAjax.get(top.restAjax.path('api/file/list', []), { ids: ids }, null, function(code, data) { refreshDownloadTemplet(fileName, data); @@ -348,7 +348,7 @@ variable: 'player', flashplayer: false, video: { - file: 'route/file/downloadfile/true/'+ item.fileId, + file: 'route/file/download/true/'+ item.fileId, type: 'video/mp4' } });