diff --git a/ruoyi-admin/src/main/resources/templates/system/tdmeeting/detail.html b/ruoyi-admin/src/main/resources/templates/system/tdmeeting/detail.html index 5b231be..5e6cfe2 100644 --- a/ruoyi-admin/src/main/resources/templates/system/tdmeeting/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/tdmeeting/detail.html @@ -12,7 +12,7 @@
- +
@@ -22,7 +22,7 @@
- +
@@ -58,7 +58,7 @@
- +
@@ -81,17 +81,16 @@
+
- -
- - 选择文件 - 更改 - - - - - [[*{fileName}]] + +
+ + 文件下载 + + + [[*{fileName}]] +
@@ -126,35 +125,12 @@ minView: "month", autoclose: true }); - //文件上传 - $('#fileUrlId').on('change.bs.fileinput ', function (e) { - // 处理自己的业务 - var file = e.target.files[0]; - var data = new FormData(); - data.append("file", file); - $.ajax({ - type: "POST", - url: ctx + "common/upload", - data: data, - cache: false, - contentType: false, - processData: false, - dataType: 'json', - success: function(result) { - if (result.code == web_status.SUCCESS) { - $("#fileUrl").val(result.url); - $("#fileName").val(result.originalFilename); - } else { - $("#fileUrl").val(""); - $("#fileName").val(""); - } - }, - error: function(error) { - $.modal.alertWarning("文件上传失败。"); - } - }); - }); + function downloadFile(){ + var fileUrl = $("#fileUrl").val(); + window.location.href = ctx + "common/download/resource?resource=" + encodeURI(fileUrl) ; + } +