sigesp 0.8.60-220113 → 0.8.61-220113
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 +5 -13
- 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 +6 -14
- package/fesm2015/sigesp.js +5 -13
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +4 -4
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -5744,21 +5744,13 @@ class SigespService {
|
|
|
5744
5744
|
}));
|
|
5745
5745
|
}
|
|
5746
5746
|
/**
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5747
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
5748
|
+
* @return Json data
|
|
5749
|
+
* @author Ing. Wilmer Briceno
|
|
5750
|
+
*/
|
|
5751
5751
|
getJsonMenu(id_usuario, sistema) {
|
|
5752
5752
|
return this.http.get(`${this.URL}/dao/sss/menu_dao.php?id_usuario=${id_usuario}&sistema=${sistema}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
5753
|
-
|
|
5754
|
-
var stringifiedData = JSON.stringify(menuJson);
|
|
5755
|
-
stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
|
|
5756
|
-
stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
|
|
5757
|
-
//console.log('stringJson : ',this.stringifiedData );
|
|
5758
|
-
var string_menu = "[" + stringifiedData + "\"]";
|
|
5759
|
-
var menu = string_menu;
|
|
5760
|
-
menu = JSON.parse(menu);
|
|
5761
|
-
this.userMenu = menu;
|
|
5753
|
+
this.userMenu = res.data;
|
|
5762
5754
|
return this.userMenu;
|
|
5763
5755
|
}));
|
|
5764
5756
|
}
|