This commit is contained in:
2019-07-18 22:24:30 +00:00
parent a5c77af06c
commit 2137d57e76
2 changed files with 36 additions and 42 deletions

View File

@@ -165,8 +165,7 @@
<v-flex xs12 px-2>
<gz-custom-fields
:formKey="formCustomTemplateKey"
v-bind:customfielddata.sync="obj.customFields"
v-bind:value.sync="obj.customFields"
:readOnly="this.formState.readOnly"
ref="customFields"
:error-messages="this.$gzform.serverErrors(this, 'customFields')"
@@ -199,7 +198,7 @@
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */
/* eslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "inventory-widget-edit";
@@ -208,7 +207,7 @@ const FORM_CUSTOM_TEMPLATE_KEY = "widget";
export default {
beforeCreate() {
//console.log("BEFORECREATE: TOP");
console.log("BEFORECREATE: TOP");
var vm = this;
initForm(this)
.then(() => {
@@ -618,11 +617,17 @@ var JUST_DELETED = false;
//////////////////////
//
//
// function initForm(vm) {
// return fetchLocaleText(vm).then(
// populatePickLists(vm).then(
// vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
// )
// );
// }
function initForm(vm) {
return fetchLocaleText(vm).then(
populatePickLists(vm).then(
vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
)
return vm.$gzformcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(fetchLocaleText(vm).then(
populatePickLists(vm))
);
}