Excel sin recibir datos
This commit is contained in:
@@ -290,7 +290,7 @@ const store = reactive({
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify(this.relevant)
|
||||
// body: JSON.stringify(this.relevant)
|
||||
});
|
||||
const blob = await res.blob();
|
||||
window.saveAs(blob, `auditoria_${new Date().toISOString().slice(0, 10)}.xlsx`);
|
||||
@@ -314,8 +314,50 @@ const store = reactive({
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
const detalle = reactive({
|
||||
correo: null,
|
||||
facultad: null,
|
||||
materia: null,
|
||||
carrera: null,
|
||||
nivel: null,
|
||||
horario_grupo: null,
|
||||
|
||||
reset() {
|
||||
this.correo = null
|
||||
this.facultad = null
|
||||
this.materia = null
|
||||
this.carrera = null
|
||||
this.nivel = null
|
||||
this.horario_grupo = null
|
||||
},
|
||||
|
||||
async obtener_detalle(horario_id, profesor_id) {
|
||||
detalle.reset();
|
||||
|
||||
$('div.modal#cargando').modal('show');
|
||||
try {
|
||||
const resultado = await (await fetch(`action/action_auditoria_detalle.php?${new URLSearchParams({ horario_id, profesor_id })}`)).json();
|
||||
|
||||
this.correo = resultado.profesor_correo;
|
||||
this.facultad = resultado.facultad;
|
||||
this.materia = resultado.materia;
|
||||
this.carrera = resultado.carrera;
|
||||
this.nivel = resultado.nivel;
|
||||
this.grupo = resultado.grupo;
|
||||
}
|
||||
catch (error) {
|
||||
console.log('Error:', error)
|
||||
}
|
||||
finally {
|
||||
$('div.modal#cargando').modal('hide');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
createApp({
|
||||
store,
|
||||
detalle,
|
||||
messages: [],
|
||||
get clase_vista() {
|
||||
return store.current.clase_vista;
|
||||
|
||||
Reference in New Issue
Block a user