Ocultar domingos

This commit is contained in:
2023-09-04 14:50:00 +00:00
parent c0ce381118
commit a761df59a7
6 changed files with 124 additions and 76 deletions

View File

@@ -51,6 +51,7 @@ const store = reactive({
maxDate: new Date(`${periodo_data.fecha_final}:00:00:00`),
dateFormat: "yy-mm-dd",
showAnim: "slide",
beforeShowDay: (date) => [(date.getDay() != 0), ""]
});
const fecha = $("#fecha"), inicio = $("#fecha_inicio"), fin = $("#fecha_fin");
fecha.datepicker("setDate", new Date(`${periodo_data.fecha_final}:00:00:00`));
@@ -97,8 +98,8 @@ const store = reactive({
},
printEstados() {
if (store.filters.estados.length > 0)
document.querySelector('#estados').innerHTML = store.filters.estados.map((estado) => `<span class="mx-2 badge badge-${store.estados.getEstado(estado).estado_color}">
<i class="${store.estados.getEstado(estado).estado_icon}"></i> ${store.estados.getEstado(estado).nombre}
document.querySelector('#estados').innerHTML = store.filters.estados.map((estado) => `<span class="mx-2 badge badge-${store.estados.getEstado(estado).estado_color}">
<i class="${store.estados.getEstado(estado).estado_icon}"></i> ${store.estados.getEstado(estado).nombre}
</span>`).join('');
else
document.querySelector('#estados').innerHTML = `Todos los registros`;
@@ -175,6 +176,7 @@ const store = reactive({
});
this.data = await res.json();
this.loading = false;
store.current.page = 1;
},
invertir() {
this.data = this.data.reverse();