This commit is contained in:
2019-07-19 18:50:00 +00:00
parent a9704c497d
commit 702e632dde
4 changed files with 7 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ export default {
if (
ctx.formData &&
vm.$gzrole.hasRole(vm.$gzrole.AUTHORIZATION_ROLES.BizAdminFull)
window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
) {
//add customize menu item
//DIVIDER

View File

@@ -168,7 +168,7 @@ export default {
}
},
beforeCreate() {
// console.log("custom-fields-control::BEFORECREATE: TOP");
// console.log("custom-fields-control::BEFORECREATE: TOP");
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (!this.$_) {
@@ -184,7 +184,7 @@ export default {
//var v=this.$store.state.formCustomTemplate[this.formKey];
},
created() {
// console.log("custom-fields-control::BEFORECREATE: TOP");
// console.log("custom-fields-control::BEFORECREATE: TOP");
if (this.$gzdevmode()) {
//debugger;
if (!this.formKey) {

View File

@@ -114,7 +114,7 @@ export default {
})
.then(() => {
//don't have access to local data object until here
that.rights = this.$gzrole.getRights(this, window.$gz.type.Widget);
that.rights = window.$gz.role.getRights(this, window.$gz.type.Widget);
var formSettings = that.$gzform.getFormSettings(FORM_KEY);
/**
* {
@@ -158,7 +158,7 @@ export default {
appError: null,
serverError: {}
},
rights: this.$gzrole.defaultRightsObject(),
rights: window.$gz.role.defaultRightsObject(),
totalItems: 0,
Items: [],
loading: true,

View File

@@ -260,7 +260,7 @@ export default {
});
},
created() {
this.rights = this.$gzrole.getRights(this, window.$gz.type.Widget);
this.rights = window.$gz.role.getRights(this, window.$gz.type.Widget);
this.$gzevent.$on("menu-click", clickHandler);
//id 0 means create a new record don't load one
@@ -343,7 +343,7 @@ export default {
appError: null,
serverError: {}
},
rights: this.$gzrole.defaultRightsObject()
rights: window.$gz.role.defaultRightsObject()
};
},
//WATCHERS