From 3c4cbaf126dc092e750d98a2379a17f8b78afcad Mon Sep 17 00:00:00 2001 From: Tim Zieger Date: Fri, 29 May 2020 17:34:23 +0200 Subject: [PATCH] pickers --- frontend/src/views/CreateTimerecord.vue | 142 +++++++++++++++--- frontend/src/views/EditTimerecord.vue | 187 +++++++++++++++++++----- frontend/src/views/TimeRecordItem.vue | 2 +- frontend/src/views/TimeRecords.vue | 29 ++-- 4 files changed, 290 insertions(+), 70 deletions(-) diff --git a/frontend/src/views/CreateTimerecord.vue b/frontend/src/views/CreateTimerecord.vue index 0906892..f6c61af 100644 --- a/frontend/src/views/CreateTimerecord.vue +++ b/frontend/src/views/CreateTimerecord.vue @@ -4,22 +4,7 @@

Details

- - + - + + + + + + + Cancel + OK + + + + + + + + + Cancel + OK + + + + + + + + + + + + + + + + + +
Add
@@ -49,6 +147,12 @@ import { baseUri } from "../variables"; export default { name: "CreateTimeTrackAccount", data: () => ({ + timestart: null, + menutime: false, + timeend: null, + menutime2: false, + menu: false, + menu2: false, user: sessionStorage.getItem("timeTrackAccountListUserId"), newstartdate: "", newenddate: "", @@ -60,7 +164,7 @@ export default { addRecord() { var account = ""; var accountxhttp = new XMLHttpRequest(); - + accountxhttp.onreadystatechange = function() { if ((this.status == 200) & (this.readyState == 4)) { //account = @@ -95,6 +199,8 @@ export default { ) { var xhttp = new XMLHttpRequest(); var suc; + this.newstartdate = this.newstartdate + "T" + this.timestart; + this.newenddate = this.newenddate + "T" + this.timeend; xhttp.onreadystatechange = function() { if ((this.status == 201) & (this.readyState == 4)) { suc = true; diff --git a/frontend/src/views/EditTimerecord.vue b/frontend/src/views/EditTimerecord.vue index a0b2b3d..a9b8bf8 100644 --- a/frontend/src/views/EditTimerecord.vue +++ b/frontend/src/views/EditTimerecord.vue @@ -1,10 +1,8 @@