This commit is contained in:
2020-09-14 16:17:39 +00:00
parent ad7c7052e3
commit 36e5e974ec

View File

@@ -106,7 +106,7 @@ export default {
return {
input: {
username: "superuser",
password: "l3tm3in",
password: "l3tm3in"
},
hasSmallLogo: false,
hasMediumLogo: false,
@@ -123,115 +123,115 @@ export default {
{
name: "AyaNova SuperUser - all",
l: "superuser",
p: "l3tm3in",
p: "l3tm3in"
},
{
name: "Accounting",
l: "Accounting",
p: "Accounting",
p: "Accounting"
},
{
name: "Business admin",
l: "BizAdminFull",
p: "BizAdminFull",
p: "BizAdminFull"
},
{
name: "Business admin - limited",
l: "BizAdminLimited",
p: "BizAdminLimited",
p: "BizAdminLimited"
},
{
name: "Customer",
l: "CustomerFull",
p: "CustomerFull",
p: "CustomerFull"
},
{
name: "Customer - limited",
l: "CustomerLimited",
p: "CustomerLimited",
p: "CustomerLimited"
},
{
name: "Dispatcher",
l: "DispatchFull",
p: "DispatchFull",
p: "DispatchFull"
},
{
name: "Dispatcher - limited",
l: "DispatchLimited",
p: "DispatchLimited",
p: "DispatchLimited"
},
{
name: "Head office",
l: "HeadOffice",
p: "HeadOffice",
p: "HeadOffice"
},
{
name: "Inventory",
l: "InventoryFull",
p: "InventoryFull",
p: "InventoryFull"
},
{
name: "Inventory - limited",
l: "InventoryLimited",
p: "InventoryLimited",
p: "InventoryLimited"
},
{
name: "Operations",
l: "OpsAdminFull",
p: "OpsAdminFull",
p: "OpsAdminFull"
},
{
name: "Operations - limited",
l: "OpsAdminLimited",
p: "OpsAdminLimited",
p: "OpsAdminLimited"
},
{
name: "Sales",
l: "SalesFull",
p: "SalesFull",
p: "SalesFull"
},
{
name: "Sales - limited",
l: "SalesLimited",
p: "SalesLimited",
p: "SalesLimited"
},
{
name: "Subcontractor",
l: "SubContractorFull",
p: "SubContractorFull",
p: "SubContractorFull"
},
{
name: "Subcontractor - limited",
l: "SubContractorLimited",
p: "SubContractorLimited",
p: "SubContractorLimited"
},
{
name: "Technician",
l: "TechFull",
p: "TechFull",
p: "TechFull"
},
{
name: "Technician - limited",
l: "TechLimited",
p: "TechLimited",
p: "TechLimited"
},
{
name: "Translation - Deutsch / German",
l: "de",
p: "de",
p: "de"
},
{
name: "Translation - Español / Spanish",
l: "es",
p: "es",
p: "es"
},
{
name: "Translation - Français / French",
l: "fr",
p: "fr",
},
],
},
p: "fr"
}
]
}
};
},
async created() {
@@ -260,7 +260,7 @@ export default {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "",
title: "",
title: ""
});
try {
let res = await window.$gz.api.get("notify/hello");
@@ -280,14 +280,14 @@ export default {
this.input.password = item.p;
this.input.username = item.l;
},
trialHelpClick: function () {
trialHelpClick: function() {
//open help nav for trial login
window.$gz.eventBus.$emit("menu-click", {
key: "app:help",
data: "ay-start-trial-login",
data: "ay-start-trial-login"
});
},
onEnterUserName: function () {
onEnterUserName: function() {
//move focus to password
document.getElementsByName("password")[0].focus();
},
@@ -303,7 +303,7 @@ export default {
"auth",
{
login: vm.input.username,
password: vm.input.password,
password: vm.input.password
},
true
);
@@ -320,7 +320,7 @@ export default {
(vm.$store.state.globalSettings.licenseStatus == 3 ||
vm.$store.state.globalSettings.licenseStatus == 4)
) {
(async function () {
(async function() {
await window.$gz.dialog.displayLTModalNotificationMessage(
"MaintenanceExpiredNote",
"MaintenanceExpired",
@@ -337,10 +337,10 @@ export default {
if (toPath.startsWith("/viewreport")) {
alert("stub: open report");
vm.$router.push(vm.$store.state.homePage);
} else {
//otherwise open the url indicated
vm.$router.push(vm.$route.params.topath);
}
//otherwise open the url indicated
vm.$router.push(vm.$route.params.topath);
} else {
vm.$router.push(vm.$store.state.homePage);
}
@@ -376,7 +376,7 @@ export default {
}
}
}
},
}
},
beforeRouteEnter(to, from, next) {
//very important as this in conjunction with the menu options means
@@ -386,6 +386,6 @@ export default {
processLogout();
next();
});
},
}
};
</script>