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.
@@ -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
- //console.log('respuesta :',res);
6241
- //this.userMenu = res ;
6242
- //sessionStorage.setItem('menu', this.userMenu);
6243
- return res;
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;