Commit a4f06606 authored by zhengke's avatar zhengke

修改

parent 749c0d27
......@@ -212,7 +212,7 @@ export function downloadLocalFile(fileName, filePath) {
const a = document.createElement('a');
a.setAttribute('download', '');
var url = process.env.API;
a.setAttribute('href', url + '/Upload/DownloadFileForPdf?fileName=' + fileName + '&fPath=' + filePath);
a.setAttribute('href', url + '/Upload/DownloadFileForPdf?fileName=' + fileName + '.pdf&fPath=' + filePath);
a.click();
}
......
......@@ -332,7 +332,7 @@
}
GetDownLoadEducationContract(msg).then(res => {
if (res.Code == 1) {
let sign=item.ContractNo;
let sign=item.StudentName+'-'+item.ContractNo;
downloadLocalFile(sign,res.Data);
}
})
......
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