This commit is contained in:
2019-12-06 20:16:29 +00:00
parent 8f8d71fe1c
commit 674d839cd7

View File

@@ -12,9 +12,16 @@
READONLY: {{ formState.readOnly }}
<br />
</div> -->
<div>
<!-- <div>
FAF
{{ obj }}
</div>
<v-divider></v-divider>
<div>
CUSTOM TEMPLATE
{{ tempTemplate }}
</div>
<v-divider></v-divider> -->
<v-row v-if="this.formState.ready">
<v-col>
<v-form ref="form">
@@ -62,8 +69,6 @@
item-value="id"
:label="lt('FormfieldDataType')"
></v-select>
<v-divider></v-divider>
{{ item }}
</v-card>
</v-col>
</template>
@@ -138,7 +143,8 @@ export default {
appError: null,
serverError: {}
},
rights: window.$gz.role.defaultRightsObject()
rights: window.$gz.role.defaultRightsObject(),
tempTemplate: window.$gz.store.state.formCustomTemplate["widget"]
};
},
//WATCHERS
@@ -266,7 +272,11 @@ function initDataObject(vm) {
//handle non-existent template item (expected)
if (templateItem === undefined || templateItem === null) {
templateItem = { required: false, hide: false, type: "text" };
templateItem = {
required: false,
hide: faf.custom ? true : false, //hide if custom because it's not set to display if it's not present, all others are stock fields
type: "text"
};
}
// var canHide=faf.hideable && templateItem.required!==true;