|
|
@@ -1,26 +0,0 @@
|
|
|
-var printType = getParameter("printType");
|
|
|
-// 无该参数,默认为PREVIEW
|
|
|
-if (!printType || printType == 0) {
|
|
|
- printType = 'PREVIEW';
|
|
|
-}
|
|
|
-
|
|
|
-// 预览或者进入预览页后打印
|
|
|
-if (printType == 'PREVIEW' || printType == 'PRINT') {
|
|
|
- window.location.href = "preview" + window.location.search;
|
|
|
-}
|
|
|
-// 导出pdf
|
|
|
-else if (printType == 'PDF') {
|
|
|
- window.location = downloadUrl("pdf");
|
|
|
- setTimeout("closeWindow()", 3000);
|
|
|
-}
|
|
|
-// 导出纯数据excel
|
|
|
-else if (printType == 'EXCEL') {
|
|
|
- window.location = downloadUrl("xls_with_only_data");
|
|
|
- setTimeout("closeWindow()", 3000);
|
|
|
-}
|
|
|
-
|
|
|
-var closeWindow = function() {
|
|
|
- window.opener = null;
|
|
|
- window.open('', '_self');
|
|
|
- window.close();
|
|
|
-};
|