This commit is contained in:
2019-07-12 19:00:19 +00:00
parent ad17801d30
commit 276c7f334f
5 changed files with 64 additions and 11 deletions

View File

@@ -164,6 +164,7 @@
<v-flex xs12 px-2>
<gz-custom-fields
:formKey="formCustomTemplateKey"
v-model="obj.customFields"
:readonly="this.formState.readOnly"
ref="customFields"
@@ -201,6 +202,7 @@
const FORM_KEY = "inventory-widget-edit";
const FORM_BASE_URL = "Widget/";
const FORM_CUSTOM_TEMPLATE_KEY = "widget";
export default {
beforeCreate() {
@@ -270,6 +272,7 @@ export default {
components: {},
data() {
return {
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
pickLists: {
roles: []
},
@@ -621,14 +624,24 @@ function initForm(vm) {
//
//
function populatePickLists(vm) {
return vm.$gzapi
.get("AyaEnumPickList/list/authorizationroles") //roles
.then(res => {
if (res.error) {
throw res.error;
}
vm.pickLists.roles = res.data;
});
return vm.$gzapi.get("AyaEnumPickList/list/authorizationroles").then(res => {
if (res.error) {
throw res.error;
}
vm.pickLists.roles = res.data;
});
}
//////////////////////
//
//
function fetchFormCustomTemplate(vm) {
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(res => {
if (res.error) {
throw res.error;
}
vm.pickLists.roles = res.data;
});
}
//////////////////////