BuLi-Tipp Tabelle, Punkterechnung, Rangliste weiter programmiert
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<td>Punkte</td>
|
||||
</tr>
|
||||
<tr v-for="(user, i) in users">
|
||||
<td>{{ i }}</td>
|
||||
<td>{{ i+1 }}</td>
|
||||
<td>
|
||||
<!-- <iframe class="iframeRanglisteDetailansicht"
|
||||
data-src="">Detailansicht User 1</iframe> -->
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user