2022-07-09 12:44:13 +02:00
|
|
|
<template>
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<thead>
|
2024-09-20 23:08:08 +02:00
|
|
|
<tr>
|
|
|
|
|
<th scope="col">{{ $t('eventlog.Start') }}</th>
|
|
|
|
|
<th scope="col">{{ $t('eventlog.Stop') }}</th>
|
|
|
|
|
<th scope="col">{{ $t('eventlog.Id') }}</th>
|
|
|
|
|
<th scope="col">{{ $t('eventlog.Message') }}</th>
|
|
|
|
|
</tr>
|
2022-07-09 12:44:13 +02:00
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2025-08-26 17:24:20 +02:00
|
|
|
<template v-for="event in eventLogList.events">
|
2022-07-09 12:44:13 +02:00
|
|
|
<tr>
|
2025-08-26 17:24:20 +02:00
|
|
|
<td>{{ timeInHours(event.start_time) }}</td>
|
|
|
|
|
<td>{{ timeInHours(event.end_time) }}</td>
|
|
|
|
|
<td>{{ event.message_id }}</td>
|
|
|
|
|
<td>{{ event.message }}</td>
|
2022-07-09 12:44:13 +02:00
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
2022-10-17 21:26:44 +02:00
|
|
|
import type { EventlogItems } from '@/types/EventlogStatus';
|
2022-12-24 20:35:30 +01:00
|
|
|
import { timestampToString } from '@/utils';
|
|
|
|
|
import { defineComponent, type PropType } from 'vue';
|
2022-07-09 12:44:13 +02:00
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
props: {
|
2022-10-17 21:26:44 +02:00
|
|
|
eventLogList: { type: Object as PropType<EventlogItems>, required: true },
|
2022-07-09 12:44:13 +02:00
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
timeInHours() {
|
|
|
|
|
return (value: number) => {
|
2024-01-15 22:40:23 +01:00
|
|
|
return timestampToString(this.$i18n.locale, value)[0];
|
2022-07-09 12:44:13 +02:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
2024-07-05 21:57:53 +02:00
|
|
|
</script>
|