Explorar o código

Merge branch 'master' of http://git.keao.tech/SupplyChain/front

xuefy %!s(int64=3) %!d(string=hai) anos
pai
achega
89e49b346d
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      front-vue/src/views/service/credit/creditDetail.vue

+ 10 - 1
front-vue/src/views/service/credit/creditDetail.vue

@@ -500,7 +500,16 @@ export default {
     handleDownload(row) {
       const pfiUrl = row.pfiUrl;
       if (pfiUrl != null && pfiUrl != "") {
-        window.open(pfiUrl + "/" + getToken());
+            const pfiFileName = row.pfiFileName;
+            this.queryParamsDown.pfiUrl = pfiUrl;
+            this.download(
+                "sc-service/creditLine/jpgAuthorization",
+                {
+                    ...this.queryParamsDown
+                },
+                pfiFileName
+            );
+        // window.open(pfiUrl + "/" + getToken());
       } else {
         this.$message({
           message: "该附件不存在!",