From 52b04a90a2a74926bd53e762f9936d5a7c521f12 Mon Sep 17 00:00:00 2001 From: rchrist Date: Mon, 6 May 2019 17:46:26 +0200 Subject: [PATCH] some work at profile component --- frontend/src/pages/Profile.vue | 88 ++++++++++++++--------- frontend/src/pages/Register.vue | 120 +++++++++++++++++--------------- 2 files changed, 119 insertions(+), 89 deletions(-) diff --git a/frontend/src/pages/Profile.vue b/frontend/src/pages/Profile.vue index c588040..e3f4dd4 100644 --- a/frontend/src/pages/Profile.vue +++ b/frontend/src/pages/Profile.vue @@ -61,35 +61,45 @@ -

Teammitglieder

- -
-

Einladungen

- -
- +
+

Teammitglieder

+ +
+

Einladungen

+ +
+ +
+
+

Teamstatus

+

{{currentTeamStatus}}

+ +
+ +
-
-

Teamstatus

-

{{currentTeamStatus}}

- -
- +
+ +
+
+
@@ -119,7 +129,6 @@ data() { return { tab: 'profile', - startedCaches: [], inviteMail: "", currentTeamStatus: "Dienstag 15:00 Treffen zum Blumencache", teamStatus: "", @@ -129,6 +138,10 @@ teamName: null, teamRanking: null, dropDownSelectedItem: null, + boolMyTeam: true, + boolInvites: false, + boolCreateTeam: false, + newTeamName: "", columns: [ { name: 'desc', @@ -233,12 +246,12 @@ this.data[0].userData = this.userName; this.email = JSON.parse(localStorage.getItem('userMail')); this.data[1].userData = this.email; - this.getPersonalRanking(); + this.userRanking = 1234; this.data[2].userData = this.userRanking; this.teamName = "BuGa19Community"; this.data[3].userData = this.teamName; this.dropDownSelectedItem = this.teamName; - this.teamRanking = "2019"; + this.teamRanking = 2019; this.data[4].userData = this.teamRanking; }, methods: { @@ -248,7 +261,7 @@ }, getPersonalRanking() { const token = JSON.parse(localStorage.getItem('userToken')).token; - this.$axios.get('/api/getRankingPlace', {params: {token}}) + this.$axios.get('/api/getRankingPlace', {token}) .then((response) => { this.userRanking = response.data; console.log(response.data); @@ -308,8 +321,19 @@ dropDownSelectItem(item) { if (item === 'team') { this.dropDownSelectedItem = this.teamName; + this.boolMyTeam = true; + this.boolInvites = false; + this.boolCreateTeam = false; + } else if (item === 'Offene Teameinladungen') { + this.dropDownSelectedItem = item; + this.boolMyTeam = false; + this.boolInvites = true; + this.boolCreateTeam = false; } else { this.dropDownSelectedItem = item; + this.boolMyTeam = false; + this.boolInvites = false; + this.boolCreateTeam = true; } }, } diff --git a/frontend/src/pages/Register.vue b/frontend/src/pages/Register.vue index a1d5b2c..93f0e8f 100644 --- a/frontend/src/pages/Register.vue +++ b/frontend/src/pages/Register.vue @@ -7,57 +7,62 @@
+ label="Nutzername eingeben" + :rules="[val=>val.length>=2||'Name muss mindestens 2 Zeichen lang sein!']"/>
-
-
-
- -
+
+
+
+
-
-
-
- -
+
+
+
+
+
-
-
-
- -
+
+
+
+
+
-
-
-
- -
+
+
+
+
+
-
-
-
- -
+
+
+
+
+
+
@@ -65,23 +70,23 @@