|
@@ -389,11 +389,18 @@ function download(url, filename) {
|
|
|
|
|
|
$(function () {
|
|
|
$('#download_file').click(function () {
|
|
|
- console.log(rptArchiveObj.currentArchiveUuid);
|
|
|
if (rptArchiveObj.currentArchiveUuid) {
|
|
|
download(`https://measure-sign-pdf.oss-cn-shenzhen.aliyuncs.com/archive/${rptArchiveObj.currentArchiveUuid}.PDF`, `${rptArchiveObj.currentNode.name} ${rptArchiveObj.currentArchiveDateStr}.pdf`);
|
|
|
} else {
|
|
|
alert('请选择打开一个报表!');
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#print_file').click(function () {
|
|
|
+ if (rptArchiveObj.currentArchiveUuid) {
|
|
|
+ $('#iframe_made iframe')[0].contentWindow.print();
|
|
|
+ } else {
|
|
|
+ alert('请选择打开一个报表!');
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|