This commit is contained in:
@@ -522,9 +522,23 @@ export default new Router({
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ay-common" */ "./views/ay-history.vue")
|
||||
},
|
||||
//SPECIAL ROUTES
|
||||
{
|
||||
//REPORT VIEW FROM URL
|
||||
path: "/viewreport",
|
||||
beforeEnter: (to, from, next) => {
|
||||
(async function() {
|
||||
//open report links have a query string /viewreport?oid=[objectid]&rid=[reportid]
|
||||
let objectId = parseInt(to.query.oid);
|
||||
let reportId = parseInt(to.query.rid);
|
||||
await window.$gz.api.renderReport(objectId, reportId, true);
|
||||
})();
|
||||
|
||||
next(false);
|
||||
}
|
||||
},
|
||||
|
||||
//TEST TEST TEST TEST TEST
|
||||
|
||||
{
|
||||
//NEW TEST GZ DATA TABLE
|
||||
path: "/widgets",
|
||||
|
||||
Reference in New Issue
Block a user