This commit is contained in:
2021-12-27 20:51:38 +00:00
parent 5fda6c261a
commit 78a8758d11

View File

@@ -152,7 +152,7 @@ export default {
//Meta data from client for use by report script
reportDataOptions.ClientMeta = window.$gz.api.reportClientMetaData();
this.rendering = true;
const reportUrl = null;
var reportUrl = null;
try {
let jobId = await window.$gz.api.upsert(
"report/render-job",
@@ -196,7 +196,7 @@ export default {
console.log("Parsing:", v);
const o = JSON.parse(v);
reportUrl = window.$gz.api.reportDownloadUrl(
o.reportFileName
o.reportfilename
);
}
}
@@ -225,6 +225,7 @@ export default {
}
//job ran to completion, get the report file name and fetch it
if (reportUrl) {
console.log("Attempting to open report url:", reportUrl);
if (window.open(reportUrl, "Report") == null) {
this.reject(
"Problem displaying report in new window. Browser must allow pop-ups to view reports; check your browser setting"