This commit is contained in:
2020-09-14 18:20:03 +00:00
parent a82ac9c985
commit a3c8d99c84

View File

@@ -336,9 +336,10 @@ export default {
//trigger that to open in a new window and continue on to normal home page //trigger that to open in a new window and continue on to normal home page
if (toPath.startsWith("/viewreport")) { if (toPath.startsWith("/viewreport")) {
(async function() { (async function() {
var searchParams = new URLSearchParams(toPath); let searchParams = new URLSearchParams(vm.$route.params.search);
debugger; let objectId = parseInt(searchParams.get("oid"));
await window.$gz.api.renderReport(1, 1); //objectid,reportid let reportId = parseInt(searchParams.get("rid"));
await window.$gz.api.renderReport(objectId, reportId); //objectid,reportid
})(); })();
vm.$router.push(vm.$store.state.homePage); vm.$router.push(vm.$store.state.homePage);
} else { } else {