This commit is contained in:
2019-12-18 18:25:58 +00:00
parent 037e1f5e93
commit e81c318095
2 changed files with 106 additions and 58 deletions

View File

@@ -35,7 +35,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("DashboardDashboard"),
icon: "tachometer-alt",
route: "/hm-dashboard",
route: "/dashboard",
key: key++
});
@@ -43,7 +43,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("Schedule"),
icon: "calendar-alt",
route: "/hm-schedule/me",
route: "/schedule/me", //Note: "me" is code for current user id in schedule form, any single user id can be substituted for me as well
key: key++
});
@@ -51,7 +51,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("Memo"),
icon: "inbox",
route: "/hm-memo",
route: "/memo",
key: key++
});
@@ -59,7 +59,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("ScheduleMarkerList"),
icon: "sticky-note",
route: "/hm-reminder",
route: "/reminder",
key: key++
});
@@ -69,7 +69,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("Locale"),
icon: "language",
route: "/hm-locale",
route: "/locale",
key: key++
});
@@ -77,7 +77,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("SetLoginPassword"),
icon: "key",
route: "/hm-changepw",
route: "/changepw",
key: key++
});
@@ -85,7 +85,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("NotifySubscriptionList"),
icon: "bullhorn",
route: "/hm-notifysubscriptions",
route: "/notifysubscriptions",
key: key++
});
@@ -116,7 +116,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("ClientList"),
icon: "address-card",
route: "/cu-customers",
route: "/customers",
key: key++
});
@@ -124,7 +124,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("HeadOfficeList"),
icon: "sitemap",
route: "/cu-headoffices",
route: "/headoffices",
key: key++
});
@@ -146,7 +146,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("Schedule"),
icon: "calendar-alt",
route: "/sv-schedule/all",
route: "/schedule", //Note: because there is no trailing ID or "me" value it is stipulating all users and can be further in-filtered by other things in the UI
key: key++
});
@@ -155,7 +155,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("WorkorderServiceList"),
icon: "tools",
route: "/sv-workorders",
route: "/workorders",
key: key++
});
@@ -163,7 +163,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("WorkorderServiceTemplate"),
icon: "stamp",
route: "/sv-workordertemplates",
route: "/workordertemplates",
key: key++
});
@@ -182,7 +182,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("WorkorderQuoteList"),
icon: "edit",
route: "/sv-quotes",
route: "/quotes",
key: key++
});
@@ -190,7 +190,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("WorkorderQuoteTemplate"),
icon: "stamp",
route: "/sv-quotetemplates",
route: "/quotetemplates",
key: key++
});
@@ -209,7 +209,7 @@ export default function initialize() {
subSub.push({
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
icon: "business-time",
route: "/sv-pmlist",
route: "/pmlist",
key: key++
});
@@ -219,7 +219,7 @@ export default function initialize() {
"WorkorderPreventiveMaintenanceTemplate"
),
icon: "stamp",
route: "/sv-pmtemplates",
route: "/pmtemplates",
key: key++
});
@@ -236,7 +236,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("UnitList"),
icon: "fan",
route: "/sv-units",
route: "/units",
key: key++
});
@@ -244,7 +244,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("UnitModels"),
icon: undefined,
route: "/sv-unitmodels",
route: "/unitmodels",
key: key++
});
@@ -252,7 +252,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("ContractList"),
icon: "file-contract",
route: "/sv-contracts",
route: "/contracts",
key: key++
});
@@ -260,7 +260,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("ClientServiceRequestList"),
icon: "child",
route: "/sv-csr",
route: "/csrs",
key: key++
});
@@ -268,7 +268,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("LoanItemList"),
icon: "plug",
route: "/sv-loaners",
route: "/loaners",
key: key++
});
@@ -290,7 +290,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("PartList"),
icon: "cubes",
route: "/in-parts",
route: "/parts",
key: key++
});
@@ -298,7 +298,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("PartByWarehouseInventoryList"),
icon: "pallet",
route: "/in-partinventory",
route: "/partinventorylist",
key: key++
});
@@ -306,7 +306,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("WorkorderItemPartRequestList"),
icon: undefined,
route: "/in-partrequests",
route: "/partrequests",
key: key++
});
@@ -314,7 +314,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("InventoryPurchaseOrders"),
icon: "boxes",
route: "/in-pos",
route: "/polist",
key: key++
});
@@ -324,7 +324,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("InventoryPurchaseOrderReceipts"),
icon: "dolly-flatbed",
route: "/in-poreceipts",
route: "/poreceipts",
key: key++
});
@@ -334,7 +334,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("InventoryPartInventoryAdjustments"),
icon: "dolly",
route: "/in-adjustments",
route: "/adjustments",
key: key++
});
@@ -374,7 +374,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("Accounting"),
icon: "file-invoice-dollar",
route: "/ac-accounting",
route: "/accounting",
key: key++
});
@@ -396,7 +396,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("AdministrationGlobalSettings"),
icon: "cogs",
route: "/ad-globalsettings",
route: "/globalsettings",
key: key++
});
@@ -404,7 +404,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("HelpLicense"),
icon: "ticket-alt",
route: "/ad-license",
route: "/license",
key: key++
});
@@ -412,7 +412,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("UserList"),
icon: "users",
route: "/ad-users",
route: "/users",
key: key++
});
@@ -422,7 +422,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("LocalizedTextDesign"),
icon: "language",
route: "/ad-locale",
route: "/locales",
key: key++
});
@@ -430,7 +430,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("ReportList"),
icon: "th-list",
route: "/ad-reportlist",
route: "/reports",
key: key++
});
@@ -438,7 +438,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("FILES MANAGER"),
icon: "folder",
route: "/ad-filelist",
route: "/files",
key: key++
});
@@ -446,7 +446,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("HISTORY"),
icon: "history",
route: "/ad-history",
route: "/history",
key: key++
});
@@ -454,7 +454,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("KPI CHARTS"),
icon: "chart-line",
route: "/ad-kpi",
route: "/kpi",
key: key++
});
@@ -467,14 +467,6 @@ export default function initialize() {
key++
);
// - OPERATIONS CONSOLE
// - SERVER CONTROL? (close/open server ops? Or does that happen automatically when doing other jobs?)
// - "ARCHIVE" (BACKUP /RESTORE)
// - JOBS (view status of, trigger some maybe)
// - SERVER LOGS
// - METRICS
// - NOTIFICATION CONFIG AND CHECK DELIVERIES
//****************** OPERATIONS
//clear sublevel arrays
subSub = [];
@@ -484,7 +476,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("ARCHIVE DATA"),
icon: "archive",
route: "/op-archive",
route: "/archives",
key: key++
});
@@ -492,7 +484,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("SERVER JOBS"),
icon: "robot",
route: "/op-jobs",
route: "/jobs",
key: key++
});
@@ -500,7 +492,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("Log"),
icon: "history",
route: "/op-log",
route: "/serverlogs",
key: key++
});
@@ -508,7 +500,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("SERVER METRICS"),
icon: "file-medical-alt",
route: "/op-metrics",
route: "/metrics",
key: key++
});
@@ -516,7 +508,7 @@ export default function initialize() {
sub.push({
title: window.$gz.locale.get("NOTIFY CONFIG"),
icon: "bullhorn",
route: "/op-notify",
route: "/notifysettings",
key: key++
});

View File

@@ -60,7 +60,11 @@ const scrollBehavior = function(to, from, savedPosition) {
});
}
};
/**
* https://router.vuejs.org/guide/advanced/lazy-loading.html#grouping-components-in-the-same-chunk
*
*
*/
export default new Router({
mode: "history",
base: process.env.BASE_URL,
@@ -105,6 +109,14 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "inventory" */ "./views/inventory.vue")
},
{
path: "/inventory/widget/edit/:id",
name: "inventory-widget-edit",
component: () =>
import(
/* webpackChunkName: "inventory" */ "./views/inventory-widget-edit.vue"
)
},
{
path: "/service",
name: "service",
@@ -131,14 +143,6 @@ export default new Router({
name: "operations",
component: operations
},
{
path: "/inventory/widget/edit/:id",
name: "inventory-widget-edit",
component: () =>
import(
/* webpackChunkName: "inventory-widget-edit" */ "./views/inventory-widget-edit.vue"
)
},
{
path: "/customize/:formCustomTemplateKey",
name: "customize",
@@ -152,3 +156,55 @@ export default new Router({
}
]
});
/**
*
* Current stub routes:
* C:\data\code\raven-client\ayanova\src\api\initialize.js
38,13: route: "/dashboard",
46,13: route: "/schedule/me", //Note: "me" is code for current user id in schedule form, any single user id can be substituted for me as well
54,13: route: "/memo",
62,13: route: "/reminder",
72,13: route: "/locale",
80,13: route: "/changepw",
88,13: route: "/notifysubscriptions",
96,13: route: undefined,
119,13: route: "/customers",
127,13: route: "/headoffices",
149,13: route: "/schedule", //Note: because there is no trailing ID or "me" value it is stipulating all users and can be further in-filtered by other things in the UI
158,13: route: "/workorders",
166,13: route: "/workordertemplates",
174,13: route: undefined,
185,13: route: "/quotes",
193,13: route: "/quotetemplates",
201,13: route: undefined,
212,13: route: "/pmlist",
222,13: route: "/pmtemplates",
230,13: route: undefined,
239,13: route: "/units",
247,13: route: "/unitmodels",
255,13: route: "/contracts",
263,13: route: "/csrs",
271,13: route: "/loaners",
293,13: route: "/parts",
301,13: route: "/partinventorylist",
309,13: route: "/partrequests",
317,13: route: "/polist",
327,13: route: "/poreceipts",
337,13: route: "/adjustments",
377,13: route: "/accounting",
399,13: route: "/globalsettings",
407,13: route: "/license",
415,13: route: "/users",
425,13: route: "/locales",
433,13: route: "/reports",
441,13: route: "/files",
449,13: route: "/history",
457,13: route: "/kpi",
479,13: route: "/archives",
487,13: route: "/jobs",
495,13: route: "/serverlogs",
503,13: route: "/metrics",
511,13: route: "/notifysettings",
*
*
*/