|
@@ -578,8 +578,9 @@ function download(url, filename) {
|
|
|
|
|
|
$(function () {
|
|
|
$('#download_file').click(function () {
|
|
|
- if (rptArchiveObj.currentArchiveUuid) {
|
|
|
- download(`${oss_path}/${rptArchiveObj.currentArchiveUuid}.PDF`, `${rptArchiveObj.currentNode.name} ${rptArchiveObj.currentArchiveDateStr}.pdf`);
|
|
|
+ if (rptArchiveObj.currentArchiveUuid && rptArchiveObj.currentArchivePdfPath) {
|
|
|
+ console.log(rptArchiveObj.currentArchivePdfPath);
|
|
|
+ download(`${rptArchiveObj.currentArchivePdfPath}`, `${rptArchiveObj.currentNode.name} ${rptArchiveObj.currentArchiveDateStr}.pdf`);
|
|
|
} else {
|
|
|
alert('请选择打开一个报表!');
|
|
|
}
|