centrado stepper y invertido orden de logs
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
let modaldata:string = $state("");
|
let modaldata:string = $state("");
|
||||||
let showmodal:boolean =$state(false);
|
let showmodal:boolean =$state(false);
|
||||||
let ll:LogDto|any = $state({});
|
let ll:LogDto|any = $state({});
|
||||||
let cantpag:number = $state(100);
|
let cantpag:number = $state(0);
|
||||||
|
|
||||||
onMount(()=>{
|
onMount(()=>{
|
||||||
obtenerLogs();
|
obtenerLogs();
|
||||||
@@ -105,5 +105,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<PaginacionStepper currentPag={pagina} {cantpag} {queryPag}/>
|
<div class="d-flex justify-content-center">
|
||||||
</div>
|
<PaginacionStepper currentPag={pagina} {cantpag} {queryPag}/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class RepositorioLogs: RepositorioBase<RepositorioLogs> {
|
|||||||
|
|
||||||
public IQueryable<Log>? ObtenerLogsPaginado(int pag) {
|
public IQueryable<Log>? ObtenerLogsPaginado(int pag) {
|
||||||
var con = Context;
|
var con = Context;
|
||||||
var l = con.Logs.Skip(10*pag).Take(10);
|
var l = con.Logs.OrderByDescending(x=>x.Fecha).Skip(10*pag).Take(10);
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user