Todo
This commit is contained in:
@@ -264,12 +264,6 @@ const store = reactive({
|
||||
|
||||
*/
|
||||
const filters = Object.keys(store.filters).filter((filtro) => store.filters[filtro] || store.filters[filtro]?.length > 0)
|
||||
/*
|
||||
store.current
|
||||
page: 1,
|
||||
maxPages: 10,
|
||||
perPage: 10,
|
||||
*/
|
||||
return this.data.filter((registro: Registro) => {
|
||||
return filters.every((filtro) => {
|
||||
switch (filtro) {
|
||||
@@ -299,9 +293,8 @@ const store = reactive({
|
||||
const bloque = store.bloques_horario.data.find((bloque: Bloque_Horario) => bloque.id === store.filters[filtro]) as Bloque_Horario;
|
||||
return registro.horario_hora < bloque.hora_fin && registro.horario_fin > bloque.hora_inicio;
|
||||
default: {
|
||||
if (store.filters.sin_registro && !registro.registro_fecha_supervisor) return true
|
||||
else if (store.filters.sin_registro) return false
|
||||
return true
|
||||
if (store.filters.sin_registro) return !registro.registro_fecha_supervisor
|
||||
else return registro.registro_fecha_supervisor
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user