sigesp 0.9.54-20230904 → 0.9.56-20230904

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7317,10 +7317,15 @@ class SigespService {
7317
7317
  * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
7318
7318
  */
7319
7319
  getPersonal(tipo, dato) {
7320
- let cadena;
7321
- dato ? cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}" : cadena = '';
7322
- return this.http.get(`${this.URL}/dao/sno/personal_dao.php?
7323
- tipo=${tipo}&cadena`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7320
+ let cedula = '';
7321
+ let nombre = '';
7322
+ let apellido = '';
7323
+ if (dato) {
7324
+ cedula = dato.cedula;
7325
+ nombre = dato.nombre;
7326
+ apellido = dato.apellido;
7327
+ }
7328
+ return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&cedula=${cedula}&nombre=${nombre}&apellido=${apellido}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7324
7329
  if (res.success) {
7325
7330
  res.data = res.data.map(e => new MPersonal(e));
7326
7331
  }