This commit is contained in:
2019-07-18 15:31:39 +00:00
parent c623fdad59
commit 6d76bc1af8

View File

@@ -18,14 +18,7 @@
<v-flex v-if="item.type" :key="item.fld" xs12 sm6 lg4 xl3 px-2>
<div v-if="item.type === 'date'">
DATE CONTROL HERE
<gz-date-time-picker
:label="this.$gzlocale.get('item.fld')"
v-model="obj.startDate"
:readonly="this.formState.readOnly"
ref="startDate"
:error-messages="this.$gzform.serverErrors(this, 'startDate')"
@change="onChange('startDate')"
></gz-date-time-picker>
</div>
<div v-else-if="item.type === 'text'">
TEXT CONTROL HERE
@@ -48,7 +41,7 @@
</template>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* eslint-disable */
/* xeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* v-if="item.hide == false"
@@ -91,34 +84,34 @@ export default {
this.$emit("change", val);
}
},
computed: {
todo: make this work with a text field first to make life easier and get the concept rolling then extend out
custom1: {
get: function() {
//TODO: move all this functionality to quick easy methods to call for each custom type
//get the cx name of this field
//get the type of this field expected from the store template
//get the value in the json, co-erce it to the expected type and return it
},
set: function(newValue) {
//get the cx name of this field
//store the value in the json or update it with the textual representation of this field's data
//might need to mark dirty as well or push an event of change?
}
},
custom2: {
get: function() {
//get the cx name of this field
//get the type of this field expected from the store template
//get the value in the json, co-erce it to the expected type and return it
},
set: function(newValue) {
//get the cx name of this field
//store the value in the json or update it with the textual representation of this field's data
//might need to mark dirty as well or push an event of change?
}
}
},
// computed: {
// //todo: make this work with a text field first to make life easier and get the concept rolling then extend out
// custom1: {
// get: function() {
// //TODO: move all this functionality to quick easy methods to call for each custom type
// //get the cx name of this field
// //get the type of this field expected from the store template
// //get the value in the json, co-erce it to the expected type and return it
// },
// set: function(newValue) {
// //get the cx name of this field
// //store the value in the json or update it with the textual representation of this field's data
// //might need to mark dirty as well or push an event of change?
// }
// },
// custom2: {
// get: function() {
// //get the cx name of this field
// //get the type of this field expected from the store template
// //get the value in the json, co-erce it to the expected type and return it
// },
// set: function(newValue) {
// //get the cx name of this field
// //store the value in the json or update it with the textual representation of this field's data
// //might need to mark dirty as well or push an event of change?
// }
// }
// },
methods: {},
beforeCreate() {
//check pre-requisites exist just in case