This commit is contained in:
2019-07-18 19:09:54 +00:00
parent 68558301ac
commit 0c515fc3d4

View File

@@ -12,7 +12,7 @@
</span> </span>
</div> </div>
<hr /> <hr />
<div> <div>
<v-layout align-center justify-left row wrap> <v-layout align-center justify-left row wrap>
<template v-for="item in this.$store.state.formCustomTemplate[formKey]"> <template v-for="item in this.$store.state.formCustomTemplate[formKey]">
@@ -31,7 +31,7 @@
</div> </div>
<div v-else-if="item.type === 'text'"> <div v-else-if="item.type === 'text'">
<v-textarea <v-textarea
v-model="$data[item.dataKey]" v-model="_self[item.dataKey]"
:readonly="readOnly" :readonly="readOnly"
:label="lt(item.fld)" :label="lt(item.fld)"
auto-grow auto-grow
@@ -94,8 +94,8 @@ CUSTOM FIELD DATA:
export default { export default {
data() { data() {
return { return {
c1:null, c1: null,
c2: "Here is my WidgetCustom2 Data!", //c2: "Here is my WidgetCustom2 Data!",
c3: null, c3: null,
c4: null, c4: null,
c5: null, c5: null,
@@ -124,16 +124,20 @@ export default {
this.$emit("change", val); this.$emit("change", val);
} }
}, },
computed: {
c2: {
get: function() {
debugger;
return "this is my test";
},
set: function(newValue) {
debugger;
}
}
},
methods: { methods: {
lt: function(ltkey) { lt: function(ltkey) {
return this.$gzlocale.get(ltkey); return this.$gzlocale.get(ltkey);
},
bindName: function() {
return this.obj.c2;
},
translateFieldNameToDataObjectKeyName: function(fldName){
return "c2";
} }
}, },
beforeCreate() { beforeCreate() {