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 ( if (
ctx.formData && ctx.formData &&
vm.$gzrole.hasRole(vm.$gzrole.AUTHORIZATION_ROLES.BizAdminFull) window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
) { ) {
//add customize menu item //add customize menu item
//DIVIDER //DIVIDER

View File

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

View File

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

View File

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