2022-07-11 18:32:06 +00:00
|
|
|
<template>
|
2022-08-24 08:37:03 +00:00
|
|
|
<TablaBuscadorPrestamo
|
|
|
|
:actualizarTabla="actualizarTabla"
|
|
|
|
:operador="operador"
|
|
|
|
activos
|
2022-09-20 18:07:13 +00:00
|
|
|
mostrarSelectModuloA
|
2022-08-24 08:37:03 +00:00
|
|
|
columnaBotonCancelar
|
|
|
|
columnaHoraFin
|
|
|
|
filaRetraso
|
|
|
|
/>
|
2022-07-11 18:32:06 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-08-24 08:37:03 +00:00
|
|
|
import TablaBuscadorPrestamo from '@/components/tablaBuscador/TablaBuscadorPrestamo'
|
2022-07-11 18:32:06 +00:00
|
|
|
|
|
|
|
export default {
|
2022-08-24 08:37:03 +00:00
|
|
|
components: { TablaBuscadorPrestamo },
|
2023-01-09 17:29:31 +00:00
|
|
|
props: { operador: { type: Object, required: true, default: () => ({}) } },
|
2022-07-11 18:32:06 +00:00
|
|
|
data() {
|
2022-08-24 08:37:03 +00:00
|
|
|
return { actualizarTabla: false }
|
2022-07-11 18:32:06 +00:00
|
|
|
},
|
2022-10-03 02:55:30 +00:00
|
|
|
mounted() {
|
2022-07-11 23:54:56 +00:00
|
|
|
this.socket = this.$nuxtSocket({
|
|
|
|
name: 'main',
|
|
|
|
path: process.env.path,
|
|
|
|
})
|
|
|
|
this.socket.on('actualizar-operador', (data) => {
|
2022-08-24 08:37:03 +00:00
|
|
|
if (this.operador.institucion.id_institucion === data.id_institucion)
|
|
|
|
this.actualizarTabla = !this.actualizarTabla
|
2022-07-11 23:54:56 +00:00
|
|
|
})
|
|
|
|
},
|
2022-07-11 18:32:06 +00:00
|
|
|
}
|
|
|
|
</script>
|