This commit is contained in:
@@ -150,87 +150,87 @@ export default function initialize() {
|
||||
key: key++
|
||||
});
|
||||
|
||||
//WORKORDERS GROUP SUBITEMS
|
||||
|
||||
//WORKORDERS LIST (was service workorders)
|
||||
subSub.push({
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("WorkorderServiceList"),
|
||||
icon: "tools",
|
||||
route: "/svc-workorders",
|
||||
key: key++
|
||||
});
|
||||
|
||||
//WORKORDER TEMPLATES LIST
|
||||
subSub.push({
|
||||
title: window.$gz.locale.get("WorkorderServiceTemplate"),
|
||||
icon: "stamp",
|
||||
route: "/svc-workorder-templates",
|
||||
key: key++
|
||||
});
|
||||
// //WORKORDER TEMPLATES LIST
|
||||
//this will be an item inside the workorders NEW menu or grid or wherever but it's not top level worthy
|
||||
// subSub.push({
|
||||
// title: window.$gz.locale.get("WorkorderServiceTemplate"),
|
||||
// icon: "stamp",
|
||||
// route: "/svc-workorder-templates",
|
||||
// key: key++
|
||||
// });
|
||||
|
||||
//WORKORDERS GROUP
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("WorkorderServiceList"),
|
||||
icon: "tools",
|
||||
route: undefined,
|
||||
navItems: subSub,
|
||||
key: key++
|
||||
});
|
||||
// //WORKORDERS GROUP
|
||||
// sub.push({
|
||||
// title: window.$gz.locale.get("WorkorderServiceList"),
|
||||
// icon: "tools",
|
||||
// route: undefined,
|
||||
// navItems: subSub,
|
||||
// key: key++
|
||||
// });
|
||||
|
||||
//QUOTE GROUP SUBITEMS
|
||||
subSub = [];
|
||||
|
||||
//QUOTE LIST
|
||||
subSub.push({
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("WorkorderQuoteList"),
|
||||
icon: "edit",
|
||||
route: "/svc-quotes",
|
||||
key: key++
|
||||
});
|
||||
|
||||
//QUOTE TEMPLATES LIST
|
||||
subSub.push({
|
||||
title: window.$gz.locale.get("WorkorderQuoteTemplate"),
|
||||
icon: "stamp",
|
||||
route: "/svc-quote-templates",
|
||||
key: key++
|
||||
});
|
||||
// //QUOTE TEMPLATES LIST
|
||||
// subSub.push({
|
||||
// title: window.$gz.locale.get("WorkorderQuoteTemplate"),
|
||||
// icon: "stamp",
|
||||
// route: "/svc-quote-templates",
|
||||
// key: key++
|
||||
// });
|
||||
|
||||
//QUOTE GROUP
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("WorkorderQuoteList"),
|
||||
icon: "edit",
|
||||
route: undefined,
|
||||
navItems: subSub,
|
||||
key: key++
|
||||
});
|
||||
// //QUOTE GROUP
|
||||
// sub.push({
|
||||
// title: window.$gz.locale.get("WorkorderQuoteList"),
|
||||
// icon: "edit",
|
||||
// route: undefined,
|
||||
// navItems: subSub,
|
||||
// key: key++
|
||||
// });
|
||||
|
||||
//PM GROUP SUBITEMS
|
||||
subSub = [];
|
||||
//subSub = [];
|
||||
//PM LIST
|
||||
subSub.push({
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
|
||||
icon: "business-time",
|
||||
route: "/svc-pm-list",
|
||||
key: key++
|
||||
});
|
||||
|
||||
//PM TEMPLATES LIST
|
||||
subSub.push({
|
||||
title: window.$gz.locale.get(
|
||||
"WorkorderPreventiveMaintenanceTemplate"
|
||||
),
|
||||
icon: "stamp",
|
||||
route: "/svc-pm-templates",
|
||||
key: key++
|
||||
});
|
||||
// //PM TEMPLATES LIST
|
||||
// subSub.push({
|
||||
// title: window.$gz.locale.get(
|
||||
// "WorkorderPreventiveMaintenanceTemplate"
|
||||
// ),
|
||||
// icon: "stamp",
|
||||
// route: "/svc-pm-templates",
|
||||
// key: key++
|
||||
// });
|
||||
|
||||
//PM GROUP
|
||||
sub.push({
|
||||
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
|
||||
icon: "business-time",
|
||||
route: undefined,
|
||||
navItems: subSub,
|
||||
key: key++
|
||||
});
|
||||
// //PM GROUP
|
||||
// sub.push({
|
||||
// title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
|
||||
// icon: "business-time",
|
||||
// route: undefined,
|
||||
// navItems: subSub,
|
||||
// key: key++
|
||||
// });
|
||||
|
||||
//UNITS subitem
|
||||
sub.push({
|
||||
|
||||
@@ -76,7 +76,7 @@ export default new Router({
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "home" */ "./views/home-dashboard.vue")
|
||||
},
|
||||
{ path: "/", redirect: "/login" },
|
||||
{ path: "/", redirect: "/login" }, //If someone goes blindly to the root of the app, then it should go to login
|
||||
{
|
||||
path: "/home-schedule",
|
||||
name: "home-schedule",
|
||||
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
"FormFieldDataTypesTrueFalse"
|
||||
];
|
||||
|
||||
window.$gz.locale.fetch(ltKeysRequired).then(next());
|
||||
window.$gz.locale.fetch(ltKeysRequired).then(next);
|
||||
},
|
||||
beforeCreate() {
|
||||
var vm = this;
|
||||
|
||||
@@ -258,15 +258,8 @@ export default {
|
||||
|
||||
window.$gz.locale.fetch(ltKeysRequired).then(
|
||||
//ensure cached any form customizations for this particular form
|
||||
window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(next())
|
||||
window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(next)
|
||||
);
|
||||
|
||||
// //very important as this in conjunction with the menu options means
|
||||
// //navigation guards work properly by just sending people here
|
||||
// next(() => {
|
||||
// auth.logout();
|
||||
// next();
|
||||
// });
|
||||
},
|
||||
beforeCreate() {
|
||||
var vm = this;
|
||||
@@ -707,14 +700,7 @@ var JUST_DELETED = false;
|
||||
//////////////////////
|
||||
//
|
||||
//
|
||||
// function initForm(vm) {
|
||||
// return fetchLocaleText(vm).then(
|
||||
// populatePickLists(vm).then(
|
||||
// window.$gz.formcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
|
||||
// )
|
||||
// );
|
||||
// }
|
||||
|
||||
//
|
||||
function initForm(vm) {
|
||||
return populatePickLists(vm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user