-
Asistencia ID: {{ asistencia.id }}
+
+
Asistencia ID: {{ asistencia.id }}
+
+
+
{{ asistencia.estado || 'N/A' }}
@@ -24,9 +28,11 @@
import { defineProps, defineEmits, computed } from 'vue';
import { useAsistenciasStore } from '../../stores/useAsistencias';
import { useUi } from '../../stores/useUi.js';
+import { useRealtimeStore } from '../../stores/useRealtime';
import NucleoDataCard from '../ui/NucleoDataCard.vue';
const ui = useUi();
+const realtime = useRealtimeStore();
const props = defineProps({
asistencia: {
@@ -74,6 +80,10 @@ const deleteAsistenciaInternal = async () => {
}
};
+const lastOp = computed(() =>
+ realtime.getLatestOperation('Asistencia', props.asistencia.id)
+);
+
const getStatusClass = (status) => {
if (!status) return 'bg-gray-400 text-white'; // Default for N/A, ensuring text is visible
const statusNormalized = status.toLowerCase().replace(/\s+/g, '-');
diff --git a/ui/src/components/empleados/cardEmpleado.vue b/ui/src/components/empleados/cardEmpleado.vue
index f186c0e..103b272 100644
--- a/ui/src/components/empleados/cardEmpleado.vue
+++ b/ui/src/components/empleados/cardEmpleado.vue
@@ -16,7 +16,11 @@
:style="{ borderColor: ui.accentColorEmpleados }"
/>
-
{{ employee.name }}
+
+
{{ employee.name }}
+
+
+
ID: {{ employee.id }}
@@ -46,14 +50,16 @@