rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas
This commit is contained in:
@@ -695,7 +695,7 @@ export default {
|
||||
selectedRowIds.reverse();
|
||||
}
|
||||
return {
|
||||
ObjectType: ayaType,
|
||||
AType: ayaType,
|
||||
selectedRowIds: selectedRowIds,
|
||||
dataListKey: vm.dataListKey,
|
||||
filterId: vm.activeFilterId,
|
||||
|
||||
@@ -29,10 +29,10 @@ export default {
|
||||
await fetchTranslatedText(vm);
|
||||
//NOTE: if extension doesn't support a particular object add it here to the NoType default
|
||||
if (
|
||||
vm.dataListSelection.ObjectType != 0 &&
|
||||
vm.dataListSelection.ObjectType != window.$gz.type.PartInventoryRestock
|
||||
vm.dataListSelection.AType != 0 &&
|
||||
vm.dataListSelection.AType != window.$gz.type.PartInventoryRestock
|
||||
) {
|
||||
vm.rights = window.$gz.role.getRights(vm.dataListSelection.ObjectType);
|
||||
vm.rights = window.$gz.role.getRights(vm.dataListSelection.AType);
|
||||
}
|
||||
vm.available = vm.rights.change;
|
||||
},
|
||||
|
||||
@@ -27,9 +27,8 @@ export default {
|
||||
methods: {
|
||||
available() {
|
||||
return (
|
||||
this.dataListSelection.ObjectType != 0 &&
|
||||
this.dataListSelection.ObjectType !=
|
||||
window.$gz.type.PartInventoryRestock
|
||||
this.dataListSelection.AType != 0 &&
|
||||
this.dataListSelection.AType != window.$gz.type.PartInventoryRestock
|
||||
);
|
||||
},
|
||||
goHelp() {
|
||||
|
||||
@@ -46,10 +46,10 @@ export default {
|
||||
let vm = this;
|
||||
|
||||
if (
|
||||
vm.dataListSelection.ObjectType != 0 &&
|
||||
vm.dataListSelection.ObjectType != window.$gz.type.PartInventoryRestock
|
||||
vm.dataListSelection.AType != 0 &&
|
||||
vm.dataListSelection.AType != window.$gz.type.PartInventoryRestock
|
||||
) {
|
||||
vm.rights = window.$gz.role.getRights(vm.dataListSelection.ObjectType);
|
||||
vm.rights = window.$gz.role.getRights(vm.dataListSelection.AType);
|
||||
}
|
||||
vm.available = vm.rights.change;
|
||||
},
|
||||
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
resolve: null,
|
||||
reject: null,
|
||||
dataListSelection: {
|
||||
ObjectType: 0,
|
||||
AType: 0,
|
||||
selectedRowIds: [],
|
||||
dataListKey: null
|
||||
},
|
||||
|
||||
@@ -122,16 +122,14 @@ export default {
|
||||
if (reportDataOptions == null) {
|
||||
throw new Error("report-selector:Open missing reportDataOptions");
|
||||
}
|
||||
if (reportDataOptions.ObjectType == null) {
|
||||
throw new Error(
|
||||
"report-selector:Open - ObjectType is missing or empty"
|
||||
);
|
||||
if (reportDataOptions.AType == null) {
|
||||
throw new Error("report-selector:Open - AType is missing or empty");
|
||||
}
|
||||
|
||||
this.reportDataOptions = reportDataOptions;
|
||||
//get report list from server
|
||||
let res = await window.$gz.api.get(
|
||||
`report/list/${reportDataOptions.ObjectType}`
|
||||
`report/list/${reportDataOptions.AType}`
|
||||
);
|
||||
if (res.error) {
|
||||
// throw new Error(res.error);
|
||||
|
||||
Reference in New Issue
Block a user