|
@@ -416,16 +416,26 @@ let rptControlObj = {
|
|
|
params.orientation = ((zTreeOprObj.checkedRptTplNodes.length > 1)?null:me.getCurrentOrientation());
|
|
params.orientation = ((zTreeOprObj.checkedRptTplNodes.length > 1)?null:me.getCurrentOrientation());
|
|
|
params.custCfg = zTreeOprObj.reportPageCfg;
|
|
params.custCfg = zTreeOprObj.reportPageCfg;
|
|
|
params.option = "normal";
|
|
params.option = "normal";
|
|
|
|
|
+ $.bootstrapLoading.start();
|
|
|
CommonAjax.postEx("report_api/createExcelFilesInOneBook", params, 20000, true, function(result){
|
|
CommonAjax.postEx("report_api/createExcelFilesInOneBook", params, 20000, true, function(result){
|
|
|
if (result) {
|
|
if (result) {
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
let uuIdUrls = [];
|
|
let uuIdUrls = [];
|
|
|
let uuIdUrl = "/report_api/getFileByUUID/" + result.uuid + "/" + stringUtil.replaceAll(result.reportName, "#", "_") + "/xlsx";
|
|
let uuIdUrl = "/report_api/getFileByUUID/" + result.uuid + "/" + stringUtil.replaceAll(result.reportName, "#", "_") + "/xlsx";
|
|
|
uuIdUrls.push(uuIdUrl);
|
|
uuIdUrls.push(uuIdUrl);
|
|
|
downloadReport(uuIdUrls);
|
|
downloadReport(uuIdUrls);
|
|
|
} else {
|
|
} else {
|
|
|
- //
|
|
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}
|
|
}
|
|
|
- }, null, null
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ function(failRst){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
|
|
+ console.log(failRst);
|
|
|
|
|
+ },
|
|
|
|
|
+ function(exceptionRst){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
|
|
+ console.log(exceptionRst);
|
|
|
|
|
+ }
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -446,8 +456,10 @@ let rptControlObj = {
|
|
|
params.isOneSheet = true;
|
|
params.isOneSheet = true;
|
|
|
params.custCfg = zTreeOprObj.reportPageCfg;
|
|
params.custCfg = zTreeOprObj.reportPageCfg;
|
|
|
params.option = "normal";
|
|
params.option = "normal";
|
|
|
|
|
+ $.bootstrapLoading.start();
|
|
|
CommonAjax.postEx("report_api/createExcelFiles", params, 20000, true, function(result){
|
|
CommonAjax.postEx("report_api/createExcelFiles", params, 20000, true, function(result){
|
|
|
if (result) {
|
|
if (result) {
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
let uuIdUrls = [];
|
|
let uuIdUrls = [];
|
|
|
for (let uuIdObj of result) {
|
|
for (let uuIdObj of result) {
|
|
|
let uuIdUrl = "/report_api/getFileByUUID/" + uuIdObj.uuid + "/" + stringUtil.replaceAll(uuIdObj.reportName, "#", "_") + "/xlsx";
|
|
let uuIdUrl = "/report_api/getFileByUUID/" + uuIdObj.uuid + "/" + stringUtil.replaceAll(uuIdObj.reportName, "#", "_") + "/xlsx";
|
|
@@ -455,9 +467,17 @@ let rptControlObj = {
|
|
|
}
|
|
}
|
|
|
downloadReport(uuIdUrls);
|
|
downloadReport(uuIdUrls);
|
|
|
} else {
|
|
} else {
|
|
|
- //
|
|
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
}
|
|
}
|
|
|
- }, null, null
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ function(failRst){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
|
|
+ console.log(failRst);
|
|
|
|
|
+ },
|
|
|
|
|
+ function(exceptionRst){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
|
|
+ console.log(exceptionRst);
|
|
|
|
|
+ }
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -519,6 +539,7 @@ let rptControlObj = {
|
|
|
},
|
|
},
|
|
|
getPDFPre: function () {
|
|
getPDFPre: function () {
|
|
|
let me = rptControlObj;
|
|
let me = rptControlObj;
|
|
|
|
|
+ $.bootstrapLoading.start();
|
|
|
if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
if (rptTplObj.pdfFont['SmartSimsun'].length === 2) {
|
|
|
me.getPDFEx();
|
|
me.getPDFEx();
|
|
|
} else {
|
|
} else {
|
|
@@ -543,6 +564,7 @@ let rptControlObj = {
|
|
|
params.rpt_ids = rptIds.join(",");
|
|
params.rpt_ids = rptIds.join(",");
|
|
|
CommonAjax.postEx("report_api/getMultiReports", params, 30000, true,
|
|
CommonAjax.postEx("report_api/getMultiReports", params, 30000, true,
|
|
|
function(result){
|
|
function(result){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
let pageSize = rptControlObj.getCurrentPageSize();
|
|
let pageSize = rptControlObj.getCurrentPageSize();
|
|
|
for (let idx = 0; idx < result.length; idx++) {
|
|
for (let idx = 0; idx < result.length; idx++) {
|
|
|
let pageData = result[idx];
|
|
let pageData = result[idx];
|
|
@@ -550,10 +572,12 @@ let rptControlObj = {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
function(failRst){
|
|
function(failRst){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
sessionStorage.currentPageData = null;
|
|
sessionStorage.currentPageData = null;
|
|
|
console.log(failRst);
|
|
console.log(failRst);
|
|
|
},
|
|
},
|
|
|
function(exceptionRst){
|
|
function(exceptionRst){
|
|
|
|
|
+ $.bootstrapLoading.end();
|
|
|
sessionStorage.currentPageData = null;
|
|
sessionStorage.currentPageData = null;
|
|
|
console.log(exceptionRst);
|
|
console.log(exceptionRst);
|
|
|
}
|
|
}
|