From 875be59deb262cee488565f5a8b1746bc4660571 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Thu, 23 Oct 2025 15:24:27 +0000
Subject: [PATCH] GS-2375
---
vue/src/pages/KursDetailLp.vue | 51 +++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 41 insertions(+), 10 deletions(-)
diff --git a/vue/src/pages/KursDetailLp.vue b/vue/src/pages/KursDetailLp.vue
index c47772e..cad8134 100644
--- a/vue/src/pages/KursDetailLp.vue
+++ b/vue/src/pages/KursDetailLp.vue
@@ -22,8 +22,9 @@
const kursId = route.params.kursId
document.title = `Kurs LP ${kursId} | globus-ilias-rest`
-const kurs = ref(null)
-const kursLp = ref(null)
+const kurs = ref([])
+const kursLp = ref([])
+const kursLpRaw = ref([])
const error = ref(null)
onMounted(init)
@@ -40,7 +41,10 @@
const dataKursLp = await getKursLp(kursId)
console.log({dataKursLp})
kursLp.value = dataKursLp
- // kursLp.value = [...dataKursLp,...dataKursLp,...dataKursLp]
+
+ const dataKursLpRaw = await getKursLp(kursId, true)
+ console.log({dataKursLpRaw})
+ kursLpRaw.value = dataKursLpRaw
}
</script>
@@ -77,12 +81,10 @@
<!-- <pre>{{ kursLp }}</pre>-->
+ <h2>Combined <small>{{kursLp?.length || 0}}</small></h2>
<table class="w100p">
<thead>
<tr>
-<!-- <th>ref_id</th>-->
-<!-- <th>obj_id</th>-->
- <!-- <th>title</th>-->
<th>usr_id</th>
<th>login</th>
<th>firstname</th>
@@ -95,9 +97,6 @@
</thead>
<tbody>
<tr v-for="item in kursLp">
-<!-- <td>{{ item.ref_id }}</td>-->
-<!-- <td>{{ item.obj_id }}</td>-->
- <!-- <td>{{item.title}}</td>-->
<td>
<RouterLink :to="`${routerBase}/ui/user/${item.usr_id}`">
{{ item.usr_id }}
@@ -106,7 +105,39 @@
<td>{{ item.login }}</td>
<td>{{ item.firstname }}</td>
<td>{{ item.lastname }}</td>
-<!-- <td>{{ item.passed }}</td>-->
+ <td>{{ item.status }}</td>
+ <td>{{ dayjs(item.status_changed).format("DD.MM.YYYY HH:mm:ss") }}</td>
+ <td>{{ item.status_overwrite }}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <br>
+
+ <h2>Raw <small>{{kursLpRaw?.length || 0}}</small></h2>
+ <table class="w100p">
+ <thead>
+ <tr>
+ <th>usr_id</th>
+ <th>login</th>
+ <th>firstname</th>
+ <th>lastname</th>
+<!-- <th>passed</th>-->
+ <th>status</th>
+ <th>status_changed</th>
+ <th>status_overwrite</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr v-for="item in kursLpRaw">
+ <td>
+ <RouterLink :to="`${routerBase}/ui/user/${item.usr_id}`">
+ {{ item.usr_id }}
+ </RouterLink>
+ </td>
+ <td>{{ item.login }}</td>
+ <td>{{ item.firstname }}</td>
+ <td>{{ item.lastname }}</td>
<td>{{ item.status }}</td>
<td>{{ dayjs(item.status_changed).format("DD.MM.YYYY HH:mm:ss") }}</td>
<td>{{ item.status_overwrite }}</td>
--
Gitblit v1.8.0