This commit is contained in:
@@ -43,11 +43,13 @@
|
||||
{{ item.key }}
|
||||
</v-card-subtitle>
|
||||
<v-checkbox
|
||||
v-model="item.hideable"
|
||||
v-model="getTemplateItemForField(item.key).visible"
|
||||
:label="lt('FormFieldVisible')"
|
||||
:ref="item.key"
|
||||
:disabled="!canHide(item)"
|
||||
></v-checkbox>
|
||||
<v-divider></v-divider>
|
||||
{{ item }}
|
||||
</v-card>
|
||||
</v-col>
|
||||
</template>
|
||||
@@ -158,6 +160,29 @@ export default {
|
||||
},
|
||||
canDuplicate: function() {
|
||||
return this.formState.valid && !this.formState.dirty;
|
||||
},
|
||||
getTemplateItemForField: function(customTemplateFieldKey) {
|
||||
//first check template
|
||||
var templateItem = window.$gz.formCustomTemplate.getFieldTemplateValue(
|
||||
this.formCustomTemplateKey,
|
||||
availableFieldItem.key
|
||||
);
|
||||
if(templateItem==undefined){
|
||||
templateItem=
|
||||
}
|
||||
return templateItem;
|
||||
},
|
||||
fullName: {
|
||||
// getter
|
||||
get: function() {
|
||||
return this.firstName + " " + this.lastName;
|
||||
},
|
||||
// setter
|
||||
set: function(newValue) {
|
||||
var names = newValue.split(" ");
|
||||
this.firstName = names[0];
|
||||
this.lastName = names[names.length - 1];
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
|
||||
Reference in New Issue
Block a user