|
|
@@ -364,10 +364,7 @@ export class MESMHSComponent implements AfterViewInit {
|
|
|
const sleep = (ms: number) =>
|
|
|
new Promise((resolve) => setTimeout(resolve, ms));
|
|
|
await sleep(1000);
|
|
|
- this._mesmhsService
|
|
|
- .obtenerSubordinados(
|
|
|
- this._encService.desencriptar(this.usuario_session.IDUSUARIO)
|
|
|
- )
|
|
|
+ this._mesmhsService.obtenerSubordinados(this._encService.desencriptar(this.usuario_session.IDUSUARIO))
|
|
|
.subscribe(
|
|
|
(res) => {
|
|
|
if (res.status == 'Token is Expired') {
|
|
|
@@ -542,15 +539,9 @@ export class MESMHSComponent implements AfterViewInit {
|
|
|
|
|
|
formatoFechaPeriodo(item: any) {
|
|
|
let arrPeriodoVacacional = [];
|
|
|
-
|
|
|
let fechaPeriodo = item.split('|');
|
|
|
|
|
|
- arrPeriodoVacacional.push(
|
|
|
- 'De ' +
|
|
|
- this.formato(fechaPeriodo[0]) +
|
|
|
- ' a ' +
|
|
|
- this.formato(fechaPeriodo[1])
|
|
|
- );
|
|
|
+ arrPeriodoVacacional.push('De ' + this.formato(fechaPeriodo[0]) + ' a ' + this.formato(fechaPeriodo[1]));
|
|
|
return arrPeriodoVacacional;
|
|
|
}
|
|
|
|