OOP zu BuLi-Tipp hinzugefügt

This commit is contained in:
R40fendt
2025-05-06 10:28:26 +02:00
parent 85db79ba5d
commit 3323ee1f8f
8 changed files with 83 additions and 32 deletions

View File

@@ -6,13 +6,15 @@ export default {
type: Array,
required: true,
},
spieltage: {
ts: {
type: null,
required: true,
},
},
computed: {
myts(){
console.log(this.ts, this.users);
}
},
methods: {
}
@@ -21,7 +23,7 @@ export default {
<template>
<section class="buli-table" id="buli-table">
<br /><br />
{{ myts }}
<h2>Punktetabelle</h2>
<!--<div id="load-table-btn-container">
<button id="load-table-btn">Punkte ausrechnen</button>
@@ -30,15 +32,15 @@ export default {
<tbody>
<tr>
<td>Tag</td>
<td v-for="spieltag in spieltage[0]">{{ spieltag.user.name }}</td>
<td v-for="spieltag in ts[0]">{{ spieltag.user.username }}</td>
</tr>
<tr v-for="spieltag, i in spieltage">
<td>{{ parseInt(i)+1 }}</td>
<tr v-for="spieltag, i in ts">
<td>{{ i+1 }}</td>
<!-- Modal -->
<!-- Open BTN -->
<td class="as-link" v-for="userpoints in spieltag">{{ userpoints.points }}</td>
<td class="as-link" v-for="userpoints in spieltag">{{ userpoints.tsPoints }}</td>
</tr>
<tr>