This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user