2 Commits 1d367b5917 ... 57fe9c7ac4

Author SHA1 Message Date
  hxy 57fe9c7ac4 Merge remote-tracking branch 'origin/invest-dev-hxy' into invest-dev-hxy 1 day ago
  sunny efdfd996bd 文件资料管理附件点击下载改为预览 1 day ago
1 changed files with 3 additions and 2 deletions
  1. 3 2
      ruoyi-ui/src/views/invest/components/fileItem.vue

+ 3 - 2
ruoyi-ui/src/views/invest/components/fileItem.vue

@@ -165,7 +165,8 @@ export default {
     },
     //点击文件列表中已上传的文件时的钩子
     handlePreview(file) {
-      downloadFileById(file.id).then((response) => {
+      window.open(file.uploadPath, '_blank');
+      /*downloadFileById(file.id).then((response) => {
         const url = window.URL.createObjectURL(new Blob([response])); // 'https://dgt.dgtis.com/oneportal/fileServer/vendor//contractFile/c6503f4c14354692b207553df8f02480.pdf';
         window.open(url, '_blank');
         // const link = document.createElement("a");
@@ -173,7 +174,7 @@ export default {
         // link.setAttribute("download", file.newUploadName);
         // document.body.appendChild(link);
         // link.click();
-      });
+      });*/
     },
   },
 };