BuLi-Tipp Tabelle, Punkterechnung, Rangliste weiter programmiert

This commit is contained in:
R40fendt
2025-05-03 22:48:27 +02:00
parent 6bc82f96a2
commit 1c1069a7a3
6 changed files with 76 additions and 65 deletions

View File

@@ -1,26 +1,20 @@
<script lang="ts">
export default {
props: {
users: {
type: Array,
type: Array<any>,
required: true,
},
spieltage: {
type: null,
required: true,
},
},
computed: {
spieltage() {
let result=[
[5,10,15,20,25,30],
[5,10,15,20,25,30],
[5,10,15,20,25,30]
];
return result;
},
},
methods: {
tagessumme(spieltag:number, user:number){
return 5;
}
}
};
</script>
@@ -29,22 +23,22 @@ export default {
<br /><br />
<h2>Punktetabelle</h2>
<div id="load-table-btn-container">
<!--<div id="load-table-btn-container">
<button id="load-table-btn">Punkte ausrechnen</button>
</div>
</div>-->
<table>
<tbody>
<tr>
<td>Tag</td>
<td v-for="user in users">{{ user.name }}</td>
<td v-for="spieltag in spieltage[0]">{{ spieltag.user.name }}</td>
</tr>
<tr v-for="spieltag,i in spieltage">
<tr v-for="spieltag, i in spieltage">
<td>{{ i+1 }}</td>
<!-- Modal -->
<!-- Open BTN -->
<td class="as-link" v-for="userpoints in spieltag">{{ userpoints }}</td>
<td class="as-link" v-for="userpoints in spieltag">{{ userpoints.points }}</td>
</tr>
<tr>