|
|
@@ -44,7 +44,8 @@ export class MESMHSComponent implements AfterViewInit {
|
|
|
|
|
|
filteredOptions!: Observable<any>;
|
|
|
filteredOptionsAux!: Observable<any>;
|
|
|
-
|
|
|
+ showUsers = true;
|
|
|
+ showUsersAdmin = true;
|
|
|
constructor(
|
|
|
public dialog: MatDialog,
|
|
|
private _mesmhsService: MESMHSService,
|
|
|
@@ -325,6 +326,7 @@ export class MESMHSComponent implements AfterViewInit {
|
|
|
});
|
|
|
|
|
|
this.subordinados = arr_user;
|
|
|
+ this.showUsersAdmin = arr_user.length > 0 ? true : false;
|
|
|
|
|
|
this.subordinadosAux = arr_user.map((option: any) => {
|
|
|
return option.USUARIO + ' (' + option.IDUSUARIO + ')';
|
|
|
@@ -369,8 +371,9 @@ export class MESMHSComponent implements AfterViewInit {
|
|
|
res.response.length > 0 ? res.msg : 'No hay datos para mostrar'
|
|
|
);
|
|
|
this.dataSource.data = [];
|
|
|
- this.subordinados = [];
|
|
|
+ this.subordinados = res;
|
|
|
this.data_empty = true;
|
|
|
+ this.showUsers = true;
|
|
|
}
|
|
|
},
|
|
|
(error) => {
|
|
|
@@ -493,7 +496,6 @@ export class MESMHSComponent implements AfterViewInit {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
|
|
|
private getDateWithString(fecha: string) {
|
|
|
let fechaAux = fecha.split('-');
|