Commit 00277f09 authored by 黄奎's avatar 黄奎

页面修改

parent 6f9844d3
...@@ -1256,7 +1256,7 @@ ...@@ -1256,7 +1256,7 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
...@@ -1024,7 +1024,7 @@ ...@@ -1024,7 +1024,7 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
...@@ -386,7 +386,6 @@ ...@@ -386,7 +386,6 @@
<template> <template>
<div class="TD_MainContent" v-loading="pdfLoading"> <div class="TD_MainContent" v-loading="pdfLoading">
<a id="contractDownLoad" ></a>
<div class="container-fluid"> <div class="container-fluid">
<div class="block mtop15"> <div class="block mtop15">
<div class="blockTitle"> <div class="blockTitle">
...@@ -1047,9 +1046,9 @@ ...@@ -1047,9 +1046,9 @@
this.pdfLoading = false this.pdfLoading = false
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let sign = title + "V2" let sign = title + "V2"
const a = document.getElementById('contractDownLoad'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
let sign = title let sign = title
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
}, 1000) }, 1000)
......
...@@ -434,7 +434,7 @@ ...@@ -434,7 +434,7 @@
let sign = item.T_ContractNum; let sign = item.T_ContractNum;
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
let sign = item.CustomerName+"_合同.doc"; let sign = item.CustomerName+"_合同.doc";
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.doc&&fPath=' + res.data.data); '.doc&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
...@@ -397,7 +397,7 @@ ...@@ -397,7 +397,7 @@
a.setAttribute( a.setAttribute(
"href", "href",
urlObj.DomainUrl + urlObj.DomainUrl +
"/api/file/DownloadFileForPdfNew?fileName=" + "/api/file/DownloadFileForPdf?fileName=" +
sign + sign +
".pdf&&fPath=" + ".pdf&&fPath=" +
res.data.data res.data.data
......
...@@ -830,7 +830,7 @@ ...@@ -830,7 +830,7 @@
let sign = title let sign = title
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
}, 1000) }, 1000)
...@@ -1107,7 +1107,7 @@ ...@@ -1107,7 +1107,7 @@
let sign = title + "V3" let sign = title + "V3"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
...@@ -1181,7 +1181,7 @@ ...@@ -1181,7 +1181,7 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
...@@ -1255,7 +1255,7 @@ ...@@ -1255,7 +1255,7 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
...@@ -1376,7 +1376,7 @@ ...@@ -1376,7 +1376,7 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.doc&&fPath=' + res.data.data); '.doc&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
...@@ -519,7 +519,7 @@ ...@@ -519,7 +519,7 @@
let sign = title + "V2" let sign = title + "V2"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.doc&&fPath=' + res.data.data); '.doc&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,7 @@
this.pdfLoading = true; this.pdfLoading = true;
let urlObj = this.domainManager(); let urlObj = this.domainManager();
var ocrUrl = ""; var ocrUrl = "";
ocrUrl = urlObj.ocrUrl + "/Home/DownloadFileForPdfNew?configId=" + msg.configId + "&url=" + ocrUrl = urlObj.ocrUrl + "/Home/DownloadFileForPdf?configId=" + msg.configId + "&url=" +
encodeURIComponent(path); encodeURIComponent(path);
this.$http({ this.$http({
headers: { headers: {
......
...@@ -976,7 +976,7 @@ ...@@ -976,7 +976,7 @@
let sign = title + "V3" let sign = title + "V3"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data); '.pdf&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
...@@ -1050,7 +1050,7 @@ ...@@ -1050,7 +1050,7 @@
let sign = title+"V3" let sign = title+"V3"
const a = document.createElement('a'); const a = document.createElement('a');
a.setAttribute('download', ''); a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdfNew?fileName=' + sign + a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.doc&&fPath=' + res.data.data); '.doc&&fPath=' + res.data.data);
a.click(); a.click();
} else { } else {
......
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