HUGE REFACTOR / CLEANUP

if there is a issue it's probably something in here that was changed
This commit is contained in:
2021-09-28 20:19:44 +00:00
parent 51eddfede9
commit d0afdd9855
238 changed files with 3127 additions and 8614 deletions

View File

@@ -2,7 +2,6 @@ import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
/* Xeslint-disable */
// scrollBehavior:
// - only available in html5 history mode
@@ -154,14 +153,6 @@ export default new Router({
/* webpackChunkName: "ay-common" */ "./views/home-notifications.vue"
)
},
// {
// path: "/home-notify-direct/:userIdList?",
// name: "home-notify-direct",
// component: () =>
// import(
// /* webpackChunkName: "ay-common" */ "./views/home-notify-direct.vue"
// )
// },
{
path: "/home-notify-direct",
name: "home-notify-direct",
@@ -1065,13 +1056,13 @@ export default new Router({
path: "/viewreport",
beforeEnter: async (to, from, next) => {
//open report links have a query string /viewreport?oid=[objectid]&rid=[reportid]
let objectId = parseInt(to.query.oid);
let reportId = parseInt(to.query.rid);
const objectId = parseInt(to.query.oid);
const reportId = parseInt(to.query.rid);
let res = await window.$gz.api.renderReport(objectId, reportId, true);
const res = await window.$gz.api.renderReport(objectId, reportId, true);
if (res.error) {
//log the error and do a popup for it
let msg = `/viewReport, query ${JSON.stringify(
const msg = `/viewReport, query ${JSON.stringify(
to.query
)}, server error: ${JSON.stringify(res.error)}`;
window.$gz.eventBus.$emit("notify-error", msg);