This commit is contained in:
2020-12-23 21:24:24 +00:00
parent 5caf2acb23
commit d114d7175b
6 changed files with 64 additions and 11 deletions

View File

@@ -33,7 +33,7 @@
</v-dialog>
</v-col>
<v-col xs6>
<v-dialog v-model="dlgtime" width="290px">
<v-dialog v-model="dlgtime" width="300px">
<template v-slot:activator="{ on }">
<v-text-field
v-on="on"
@@ -58,6 +58,10 @@
$ay.t("Delete")
}}</v-btn>
<v-spacer></v-spacer>
<v-btn text color="primary" @click="setNow()">{{
$ay.t("Now")
}}</v-btn>
<v-spacer></v-spacer>
<v-btn text color="primary" @click="dlgtime = false">{{
$ay.t("OK")
}}</v-btn>
@@ -119,6 +123,11 @@ export default {
}
},
methods: {
setNow() {
let v = window.$gz.locale.nowUTC8601String().split("T")[1];
this.updateTimeValue(v);
this.dlgtime = false;
},
allErrors() {
let ret = "";
if (this.error != null) {

View File

@@ -2,7 +2,7 @@
<v-row>
<template v-if="!readonly">
<v-col cols="12">
<v-dialog v-model="dlgtime" width="290px">
<v-dialog v-model="dlgtime" width="300px">
<template v-slot:activator="{ on }">
<v-text-field
v-on="on"
@@ -26,6 +26,10 @@
$ay.t("Delete")
}}</v-btn>
<v-spacer></v-spacer>
<v-btn text color="primary" @click="setNow()">{{
$ay.t("Now")
}}</v-btn>
<v-spacer></v-spacer>
<v-btn text color="primary" @click="dlgtime = false">{{
$ay.t("OK")
}}</v-btn>
@@ -88,6 +92,11 @@ export default {
}
},
methods: {
setNow() {
let v = window.$gz.locale.nowUTC8601String().split("T")[1];
this.updateTimeValue(v);
this.dlgtime = false;
},
allErrors() {
let ret = "";
if (this.error != null) {