Todo
This commit is contained in:
@@ -187,12 +187,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) => {
|
||||
return filters.every((filtro) => {
|
||||
switch (filtro) {
|
||||
@@ -224,11 +218,10 @@ const store = reactive({
|
||||
const bloque = store.bloques_horario.data.find((bloque) => bloque.id === store.filters[filtro]);
|
||||
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