This commit is contained in:
2021-06-30 19:17:14 +00:00
parent 5e54d8e4ec
commit ceb79a48ca
6 changed files with 180 additions and 114 deletions

View File

@@ -56,12 +56,12 @@ async function clickHandler(menuItem) {
let m = window.$gz.menu.parseMenuItem(menuItem);
if (m.owner == FORM_KEY && !m.disabled) {
switch (m.key) {
case "new":
m.vm.$router.push({
name: "cust-user",
params: { recordid: 0 }
});
break;
// case "new":
// m.vm.$router.push({
// name: "cust-user",
// params: { recordid: 0 }
// });
// break;
case "extensions":
let res = await m.vm.$refs.extensions.open(
m.vm.$refs.gzdatatable.getDataListSelection(window.$gz.type.User)
@@ -140,15 +140,15 @@ function generateMenu(vm) {
}
};
if (vm.rights.change) {
menuOptions.menuItems.push({
title: "New",
icon: "$ayiPlus",
surface: true,
key: FORM_KEY + ":new",
vm: vm
});
}
// if (vm.rights.change) {
// menuOptions.menuItems.push({
// title: "New",
// icon: "$ayiPlus",
// surface: true,
// key: FORM_KEY + ":new",
// vm: vm
// });
// }
//REPORTS
//Report not Print, print is a further option