|
|
|
@ -10,7 +10,7 @@ export class HelpFileService {
|
|
|
|
|
|
|
|
|
|
constructor(private http:HttpClient,) { } |
|
|
|
|
|
|
|
|
|
helpFile:any = 'api/ObjectMetadata/help/cjhelp.pdf'; //下载文件的url地址
|
|
|
|
|
helpFile:any = 'api/ObjectMetadata/help/数据采集平台手册.pdf'; //下载文件的url地址
|
|
|
|
|
download:any; //下载的文件
|
|
|
|
|
|
|
|
|
|
//获取下载文件信息
|
|
|
|
@ -34,7 +34,7 @@ export class HelpFileService {
|
|
|
|
|
let link = document.createElement("a"); |
|
|
|
|
link.style.display = "none"; |
|
|
|
|
link.href = url; |
|
|
|
|
link.setAttribute("download", '数据采集平台使用说明.pdf'); |
|
|
|
|
link.setAttribute("download", '数据采集平台手册.pdf'); |
|
|
|
|
document.body.appendChild(link); |
|
|
|
|
link.click(); |
|
|
|
|
}) |
|
|
|
@ -67,7 +67,7 @@ export class HelpFileService {
|
|
|
|
|
let link = document.createElement("a"); |
|
|
|
|
link.style.display = "none"; |
|
|
|
|
link.href = url; |
|
|
|
|
link.setAttribute("download", '数据采集平台使用说明.pdf'); |
|
|
|
|
link.setAttribute("download", '数据采集平台手册.pdf'); |
|
|
|
|
document.body.appendChild(link); |
|
|
|
|
link.click(); |
|
|
|
|
} |
|
|
|
|