REST Service for POPCORN - ILIAS
alex
2025-11-28 a380a465ce02059a630ef678fecd6666cbdf8f30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<script setup>
 
import {routerBase} from "@/lib/api"
import dayjs from "dayjs"
 
const props = defineProps({
   kursTn: {
      type: Array,
      required: true,
      default: [],
   }
})
 
</script>
 
<template>
 
   <table>
      <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>
         </tr>
      </thead>
      <tbody>
         <tr v-for="tn in kursTn">
            <td>
               <RouterLink :to="`${routerBase}/ui/user/${tn.usr_id}`">{{ tn.usr_id }}</RouterLink>
            </td>
            <td>{{ tn.login }}</td>
            <td>{{ tn.firstname }}</td>
            <td>{{ tn.lastname }}</td>
            <td>{{ tn.passed }}</td>
            <td>{{ tn.status }}</td>
            <td>{{ dayjs(tn.status_changed).format("DD.MM.YYYY HH:mm:ss") }}</td>
         </tr>
      </tbody>
   </table>
 
 
</template>
 
<style scoped>
 
</style>