ps-toolkit-ui 1.4.46 → 1.4.49

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.
@@ -2670,7 +2670,7 @@
2670
2670
  };
2671
2671
  }
2672
2672
  else if (option.AccessType === exports.PermissionAccessTypeEnum.Report) {
2673
- opt.url = '/Report' + option.Url + '/' + this_2.row.Data.Id;
2673
+ opt.url = '/report' + option.Url.replace('{}', this_2.row.Data.Id);
2674
2674
  opt.urlNewTab = true;
2675
2675
  }
2676
2676
  else if (option.InputAction === exports.PermissionInputActionEnum.Link || option.InputAction === exports.PermissionInputActionEnum.LinkNewTab) {
@@ -7450,6 +7450,10 @@
7450
7450
  var listAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.List);
7451
7451
  if (listAccess !== null) {
7452
7452
  this.title = listAccess.Name;
7453
+ console.log(listAccess);
7454
+ console.log(listAccess.Url);
7455
+ console.log(this.permissions.RelatedId);
7456
+ console.log(listAccess.Url.replace('{}', this.permissions.RelatedId));
7453
7457
  this.url = listAccess.Url.replace('{}', this.permissions.RelatedId);
7454
7458
  if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
7455
7459
  this.load();
@@ -7504,8 +7508,7 @@
7504
7508
  p.Controller = 'print';
7505
7509
  p.Action = _this.permissions.Controller + (_this.permissions.Action ? _this.permissions.Action : '');
7506
7510
  var params = $$1.param(_this.searchData(true));
7507
- window.open('/report' + access.Url + (_this.permissions.RelatedId ? '/' + _this.permissions.RelatedId : '') +
7508
- (params ? '?' + params : ''), '_blank');
7511
+ window.open('/report' + access.Url.replace('{}', _this.permissions.RelatedId) + (params ? '?' + params : ''), '_blank');
7509
7512
  };
7510
7513
  }
7511
7514
  else if (access.InputAction === exports.PermissionInputActionEnum.OnClick) {