BuLi-Tipp weiter gemacht

This commit is contained in:
R40fendt
2025-04-23 12:29:36 +02:00
parent f450567cc7
commit 6bc82f96a2
6 changed files with 404 additions and 164 deletions

View File

@@ -0,0 +1,61 @@
<script lang="ts">
export default {
props: {
users: {
type: Array,
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>
<template>
<section class="buli-table" id="buli-table">
<br /><br />
<h2>Punktetabelle</h2>
<div id="load-table-btn-container">
<button id="load-table-btn">Punkte ausrechnen</button>
</div>
<table>
<tbody>
<tr>
<td>Tag</td>
<td v-for="user in users">{{ user.name }}</td>
</tr>
<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>
</tr>
<tr>
<td>Summe</td>
<td v-for="user in users">{{ user.points }}</td>
</tr>
</tbody>
</table>
</section>
</template>
<style scoped>
@import "../../assets/css/bulitipp2.css";
</style>