sigesp 0.8.54-220105 → 0.8.55-220105
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 +11 -4
- 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 +11 -5
- package/fesm2015/sigesp.js +10 -4
- package/fesm2015/sigesp.js.map +1 -1
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -6236,11 +6236,18 @@
|
|
|
6236
6236
|
* @author Ing. Wilmer Briceno
|
|
6237
6237
|
*/
|
|
6238
6238
|
SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
|
|
6239
|
+
var _this = this;
|
|
6239
6240
|
return this.http.get(this.URL + "/dao/sss/menu_dao.php?id_usuario=" + id_usuario + "&sistema=" + sistema, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6241
|
+
var menuJson = res.data;
|
|
6242
|
+
var stringifiedData = JSON.stringify(menuJson);
|
|
6243
|
+
stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
|
|
6244
|
+
stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
|
|
6245
|
+
//console.log('stringJson : ',this.stringifiedData );
|
|
6246
|
+
var string_menu = "[" + stringifiedData + "\"]";
|
|
6247
|
+
var menu = string_menu;
|
|
6248
|
+
menu = JSON.parse(menu);
|
|
6249
|
+
_this.userMenu = menu;
|
|
6250
|
+
return _this.userMenu;
|
|
6244
6251
|
}));
|
|
6245
6252
|
};
|
|
6246
6253
|
return SigespService;
|