|
@@ -189,10 +189,12 @@ function handleReportPublishCancle(item){
|
|
|
// type 1-pdf 2-长图
|
|
|
function downloadPdfImg(item,type){
|
|
|
showReportItemOpt.value=false
|
|
|
+ let name = `${item.Title}${moment().format('YYYYMMDD')}`
|
|
|
if(type == 1){
|
|
|
- window.open(item.DetailPdfUrl,"_blank")
|
|
|
+ // window.open(item.DetailPdfUrl,"_blank")
|
|
|
+ startDownload(item.DetailPdfUrl,`${name}.pdf`)
|
|
|
}else{
|
|
|
- startDownload(item.DetailImgUrl,`${item.Title}.jpeg`)
|
|
|
+ startDownload(item.DetailImgUrl,`${name}.jpeg`)
|
|
|
}
|
|
|
}
|
|
|
|