This commit is contained in:
@@ -18,14 +18,7 @@
|
|||||||
<v-flex v-if="item.type" :key="item.fld" xs12 sm6 lg4 xl3 px-2>
|
<v-flex v-if="item.type" :key="item.fld" xs12 sm6 lg4 xl3 px-2>
|
||||||
<div v-if="item.type === 'date'">
|
<div v-if="item.type === 'date'">
|
||||||
DATE CONTROL HERE
|
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>
|
||||||
<div v-else-if="item.type === 'text'">
|
<div v-else-if="item.type === 'text'">
|
||||||
TEXT CONTROL HERE
|
TEXT CONTROL HERE
|
||||||
@@ -48,7 +41,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/* eslint-disable */
|
/* xeslint-disable */
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/**
|
/**
|
||||||
* v-if="item.hide == false"
|
* v-if="item.hide == false"
|
||||||
@@ -91,34 +84,34 @@ export default {
|
|||||||
this.$emit("change", val);
|
this.$emit("change", val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
// computed: {
|
||||||
todo: make this work with a text field first to make life easier and get the concept rolling then extend out
|
// //todo: make this work with a text field first to make life easier and get the concept rolling then extend out
|
||||||
custom1: {
|
// custom1: {
|
||||||
get: function() {
|
// get: function() {
|
||||||
//TODO: move all this functionality to quick easy methods to call for each custom type
|
// //TODO: move all this functionality to quick easy methods to call for each custom type
|
||||||
//get the cx name of this field
|
// //get the cx name of this field
|
||||||
//get the type of this field expected from the store template
|
// //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
|
// //get the value in the json, co-erce it to the expected type and return it
|
||||||
},
|
// },
|
||||||
set: function(newValue) {
|
// set: function(newValue) {
|
||||||
//get the cx name of this field
|
// //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
|
// //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?
|
// //might need to mark dirty as well or push an event of change?
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
custom2: {
|
// custom2: {
|
||||||
get: function() {
|
// get: function() {
|
||||||
//get the cx name of this field
|
// //get the cx name of this field
|
||||||
//get the type of this field expected from the store template
|
// //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
|
// //get the value in the json, co-erce it to the expected type and return it
|
||||||
},
|
// },
|
||||||
set: function(newValue) {
|
// set: function(newValue) {
|
||||||
//get the cx name of this field
|
// //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
|
// //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?
|
// //might need to mark dirty as well or push an event of change?
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
methods: {},
|
methods: {},
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
//check pre-requisites exist just in case
|
//check pre-requisites exist just in case
|
||||||
|
|||||||
Reference in New Issue
Block a user