sigesp 0.9.55-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.
- package/bundles/sigesp.umd.js +9 -3
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/sigesp.service.js +10 -4
- package/fesm2015/sigesp.js +9 -3
- package/fesm2015/sigesp.js.map +1 -1
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -7317,9 +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
|
|
7321
|
-
|
|
7322
|
-
|
|
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) => {
|
|
7323
7329
|
if (res.success) {
|
|
7324
7330
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7325
7331
|
}
|