From 2018128b2a35fd5ba34db2e8ca34ccc2108bbffc Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Mon, 17 Nov 2025 19:01:15 +0000
Subject: [PATCH] GS-2373
---
vue/src/pages/KursDetailLp.vue | 63 +++++++++++++++++++++++++------
1 files changed, 50 insertions(+), 13 deletions(-)
diff --git a/vue/src/pages/KursDetailLp.vue b/vue/src/pages/KursDetailLp.vue
index c47772e..4208125 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,11 @@
<!-- <pre>{{ kursLp }}</pre>-->
+ <h2>Combined <small>{{kursLp?.length || 0}}</small></h2>
+ <p>Kombinierter Lernfortschritt aus allen Unterobjekten die zum LF beitragen.</p>
<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>
@@ -90,14 +93,10 @@
<!-- <th>passed</th>-->
<th>status</th>
<th>status_changed</th>
- <th>status_overwrite</th>
</tr>
</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,10 +105,48 @@
<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>
+ <p>Lernfortschritt nicht kombiniert.</p>
+ <table class="w100p">
+ <thead>
+ <tr>
+ <th>usr_id</th>
+ <th>login</th>
+ <th>firstname</th>
+ <th>lastname</th>
+<!-- <th>passed</th>-->
+ <th>item_id</th>
+ <th>status</th>
+ <th>status_changed</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>
+ <a :href="`${iliasBase}/goto.php?target=${item.type}_${item.item_id}`" target="_blank">
+ {{ item.item_id }}
+ <LinkExtern />
+ </a>
+<!-- {{ item.item_id }}-->
+ </td>
+ <td>{{ item.status }}</td>
+ <td>{{ dayjs(item.status_changed).format("DD.MM.YYYY HH:mm:ss") }}</td>
</tr>
</tbody>
</table>
@@ -166,7 +203,7 @@
display flex
flex-direction column
gap .33em
- padding .33em
+ padding .33em .6em
background-color #eeeeee;
--
Gitblit v1.8.0