OOP zu BuLi-Tipp hinzugefügt
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
<script lang="ts">
|
||||
export default {
|
||||
<script lang="js">
|
||||
import * as RitzenbergenLib from '../../ritzenbergenlib';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
users: {
|
||||
type: Array,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
testUsers(){
|
||||
console.log(this.users);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<section class="rangliste" id="rangliste-sektion">
|
||||
<br /><br />
|
||||
|
||||
{{ testUsers }}
|
||||
<h2>Rangliste</h2>
|
||||
<table>
|
||||
<tbody>
|
||||
@@ -26,7 +33,7 @@
|
||||
<!-- <iframe class="iframeRanglisteDetailansicht"
|
||||
data-src="">Detailansicht User 1</iframe> -->
|
||||
|
||||
<span class="as-link">{{ user.name }}</span>
|
||||
<span class="as-link">{{ user.username }}</span>
|
||||
</td>
|
||||
<td>{{ user.points }}</td>
|
||||
</tr>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -3,7 +3,7 @@ import RitzenbergenLib from "../../ritzenbergenlib.ts";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
RitzenbergenLib
|
||||
RitzenbergenLib: RitzenbergenLib.RitzenbergenLib
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -11,14 +11,14 @@ export default {
|
||||
return {
|
||||
openedModals,
|
||||
modaltypes: ["text", "html"],
|
||||
RitzenbergenLib,
|
||||
RitzenbergenLib: RitzenbergenLib.RitzenbergenLib,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
events() {
|
||||
let result: any[]=[];
|
||||
|
||||
$.ajax(RitzenbergenLib.api("get_events.php"),{
|
||||
$.ajax(RitzenbergenLib.RitzenbergenLib.api("get_events.php"),{
|
||||
crossDomain: true,
|
||||
async: false,
|
||||
success: function (data:string) {
|
||||
|
||||
@@ -7,13 +7,13 @@ export default {
|
||||
return {
|
||||
openedModals: [],
|
||||
formValues: [],
|
||||
RitzenbergenLib,
|
||||
RitzenbergenLib: RitzenbergenLib.RitzenbergenLib,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
forms() {
|
||||
let result: any[] = [];
|
||||
$.ajax(RitzenbergenLib.api("/get_forms.php"), {
|
||||
$.ajax(RitzenbergenLib.RitzenbergenLib.api("/get_forms.php"), {
|
||||
async: false,
|
||||
crossDomain: true,
|
||||
success: function (data: string) {
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
},
|
||||
formresults(formid){
|
||||
let result: any[] = [];
|
||||
$.ajax(RitzenbergenLib.api("/get_ergebnisse.php"), {
|
||||
$.ajax(RitzenbergenLib.RitzenbergenLib.api("/get_ergebnisse.php"), {
|
||||
async: false,
|
||||
crossDomain: true,
|
||||
success: function (data: string) {
|
||||
|
||||
Reference in New Issue
Block a user