This commit is contained in:
@@ -43,14 +43,56 @@ export default {
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
}
|
||||
|
||||
//WIKI
|
||||
//WIKI, ATTACHMENTS, RECORD HISTORY
|
||||
if (formAyaType != 0 && formRecordId != 0) {
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Attachments"),
|
||||
icon: "paperclip",
|
||||
key: "app:attachments",
|
||||
data: { ayaType: formAyaType, recordId: formRecordId }
|
||||
});
|
||||
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("WikiPage"),
|
||||
icon: "feather",
|
||||
key: "app:wiki",
|
||||
data: { ayaType: formAyaType, recordId: formRecordId }
|
||||
});
|
||||
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Review"),
|
||||
icon: "calendar-check",
|
||||
key: "app:review",
|
||||
data: { ayaType: formAyaType, recordId: formRecordId }
|
||||
});
|
||||
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("History"),
|
||||
icon: "history",
|
||||
key: "app:history",
|
||||
data: { ayaType: formAyaType, recordId: formRecordId }
|
||||
});
|
||||
}
|
||||
|
||||
//CUSTOMIZE
|
||||
//set custom fields and link to locale text editor
|
||||
|
||||
if (
|
||||
ctx.formData &&
|
||||
ctx.formData.formCustomTemplateKey != undefined &&
|
||||
window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
|
||||
) {
|
||||
//add customize menu item
|
||||
//DIVIDER
|
||||
//Insert the devider between context and global items
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
//customize
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Customize"),
|
||||
icon: "sliders-h",
|
||||
data: ctx.formData.formCustomTemplateKey,
|
||||
key: "app:customize"
|
||||
});
|
||||
}
|
||||
|
||||
//GLOBAL BOTTOM PORTION
|
||||
@@ -61,13 +103,6 @@ export default {
|
||||
|
||||
//global menu items
|
||||
|
||||
//LOGOUT
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Logout"),
|
||||
icon: "sign-out-alt",
|
||||
key: "app:logout"
|
||||
});
|
||||
|
||||
//divider
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
@@ -94,27 +129,12 @@ export default {
|
||||
key: "app:nav:abt",
|
||||
data: "ay-about"
|
||||
});
|
||||
|
||||
//CUSTOMIZE
|
||||
//set custom fields and link to locale text editor
|
||||
|
||||
if (
|
||||
ctx.formData &&
|
||||
ctx.formData.formCustomTemplateKey != undefined &&
|
||||
window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
|
||||
) {
|
||||
//add customize menu item
|
||||
//DIVIDER
|
||||
//Insert the devider between context and global items
|
||||
vm.appBar.menuItems.push({ divider: true, inset: false });
|
||||
//customize
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Customize"),
|
||||
icon: "sliders-h",
|
||||
data: ctx.formData.formCustomTemplateKey,
|
||||
key: "app:customize"
|
||||
});
|
||||
}
|
||||
//LOGOUT
|
||||
vm.appBar.menuItems.push({
|
||||
title: window.$gz.locale.get("Logout"),
|
||||
icon: "sign-out-alt",
|
||||
key: "app:logout"
|
||||
});
|
||||
},
|
||||
///////////////////////////////
|
||||
// CHANGE HANDLER
|
||||
@@ -182,12 +202,30 @@ export default {
|
||||
params: { ayatype: item.data }
|
||||
});
|
||||
break;
|
||||
case "attachments":
|
||||
vm.$router.push({
|
||||
name: "ay-attachments",
|
||||
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
||||
});
|
||||
break;
|
||||
case "wiki":
|
||||
vm.$router.push({
|
||||
name: "ay-wiki",
|
||||
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
||||
});
|
||||
break;
|
||||
case "review":
|
||||
vm.$router.push({
|
||||
name: "ay-review",
|
||||
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
||||
});
|
||||
break;
|
||||
case "history":
|
||||
vm.$router.push({
|
||||
name: "ay-history",
|
||||
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
|
||||
});
|
||||
break;
|
||||
case "logout":
|
||||
vm.$router.push("/login");
|
||||
break;
|
||||
|
||||
@@ -376,13 +376,31 @@ export default new Router({
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ay" */ "./views/ay-customize.vue")
|
||||
},
|
||||
{
|
||||
path: "/ay-attachments/:ayatype/:recordid",
|
||||
name: "ay-attachments",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "home" */ "./views/ay-attachments.vue")
|
||||
},
|
||||
{
|
||||
path: "/ay-wiki/:ayatype/:recordid",
|
||||
name: "ay-wiki",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "home" */ "./views/ay-wiki.vue")
|
||||
},
|
||||
|
||||
{
|
||||
path: "/ay-review/:ayatype/:recordid",
|
||||
name: "ay-review",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "home" */ "./views/ay-review.vue")
|
||||
},
|
||||
{
|
||||
path: "/ay-history/:ayatype/:recordid",
|
||||
name: "ay-history",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "home" */ "./views/ay-history.vue")
|
||||
},
|
||||
//TEST TEST TEST TEST TEST
|
||||
{
|
||||
//TEST WIDGETS
|
||||
path: "/testinventory",
|
||||
|
||||
21
ayanova/src/views/ay-history.vue
Normal file
21
ayanova/src/views/ay-history.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<UnderConstruction />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import UnderConstruction from "../components/underconstruction.vue";
|
||||
//THIS IS THE RECORD HISTORY FEATURE SCREEN FOR AN INDIVIDUAL ITEMS RECORD HISTORY
|
||||
export default {
|
||||
components: {
|
||||
UnderConstruction
|
||||
},
|
||||
beforeCreate() {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "history",
|
||||
title: window.$gz.locale.get("History"),
|
||||
helpUrl: "form-ay-history"
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user