Commit 3c0ac995 authored by 黄奎's avatar 黄奎

页面修改

parent 000cb91e
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
background-color: #E95252; background-color: #E95252;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
width: 80px; width: 90px;
text-align: center; text-align: center;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
...@@ -499,7 +499,6 @@ ...@@ -499,7 +499,6 @@
var fileName = title + "_2023.pdf"; var fileName = title + "_2023.pdf";
this.pdfLoading = true; this.pdfLoading = true;
let urlObj = this.domainManager(); let urlObj = this.domainManager();
let msg = this.getPostMsg();
var ocrUrl = urlObj.ocrUrl + "/Home/DownloadFileForPdf?url=" + encodeURIComponent(path); var ocrUrl = urlObj.ocrUrl + "/Home/DownloadFileForPdf?url=" + encodeURIComponent(path);
this.$http({ this.$http({
headers: { headers: {
...@@ -507,12 +506,10 @@ ...@@ -507,12 +506,10 @@
}, },
method: 'get', method: 'get',
url: ocrUrl, url: ocrUrl,
data: { data: {},
},
responseType: 'arraybuffer' responseType: 'arraybuffer'
}).then(res => { }).then(res => {
console.log(res, "res"); this.pdfLoading = false;
let blob = new Blob([res.data], { let blob = new Blob([res.data], {
type: "application/pdf" type: "application/pdf"
}) })
...@@ -521,7 +518,6 @@ ...@@ -521,7 +518,6 @@
link.href = url; link.href = url;
link.setAttribute("download", fileName); link.setAttribute("download", fileName);
link.click(); link.click();
this.pdfLoading = false;
}).catch(err => { }).catch(err => {
this.pdfLoading = false this.pdfLoading = false
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment