devarification tests ok
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
@click:prepend="dlgtime = true"
|
@click:prepend="dlgtime = true"
|
||||||
readonly
|
readonly
|
||||||
:error="!!error"
|
:error="!!error"
|
||||||
:data-cy="'ttfpick:' + testId"
|
:data-cy="'ttfpick:' + testId"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-time-picker
|
<v-time-picker
|
||||||
@@ -114,7 +114,7 @@ export default {
|
|||||||
date() {
|
date() {
|
||||||
//this tortuous fuckery is required so that the input and change events only fire on a real change, not initial page load
|
//this tortuous fuckery is required so that the input and change events only fire on a real change, not initial page load
|
||||||
//also it shouldn't signal a change if the values are the same and nothing was effectively changed
|
//also it shouldn't signal a change if the values are the same and nothing was effectively changed
|
||||||
var hasChanged = false;
|
let hasChanged = false;
|
||||||
if (this.date != this.oldDate) {
|
if (this.date != this.oldDate) {
|
||||||
hasChanged = true;
|
hasChanged = true;
|
||||||
}
|
}
|
||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
//2017-08-15T12:10:34.4443084+03:00
|
//2017-08-15T12:10:34.4443084+03:00
|
||||||
var TimePortion = this.timeOnly;
|
let TimePortion = this.timeOnly;
|
||||||
if (!TimePortion) {
|
if (!TimePortion) {
|
||||||
TimePortion = "00:00:00";
|
TimePortion = "00:00:00";
|
||||||
}
|
}
|
||||||
@@ -181,15 +181,15 @@ export default {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
var DatePortion = this.dateOnly;
|
let DatePortion = this.dateOnly;
|
||||||
if (!DatePortion) {
|
if (!DatePortion) {
|
||||||
var v = new Date();
|
let v = new Date();
|
||||||
var fullYear = v.getFullYear();
|
let fullYear = v.getFullYear();
|
||||||
var fullMonth = v.getMonth() + 1;
|
let fullMonth = v.getMonth() + 1;
|
||||||
if (fullMonth < 10) {
|
if (fullMonth < 10) {
|
||||||
fullMonth = "0" + fullMonth.toString();
|
fullMonth = "0" + fullMonth.toString();
|
||||||
}
|
}
|
||||||
var fullDay = v.getDate();
|
let fullDay = v.getDate();
|
||||||
if (fullDay < 10) {
|
if (fullDay < 10) {
|
||||||
fullDay = "0" + fullDay.toString();
|
fullDay = "0" + fullDay.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user