ps-toolkit-ui 1.13.97 → 1.13.99

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.
@@ -8839,17 +8839,24 @@
8839
8839
  }
8840
8840
  var _loop_2 = function (option) {
8841
8841
  var opt = new InputClass(this_2.environment, this_2.l, option.Name, option.Icon, exports.InputType.Icon, 'm-r-10-p');
8842
- opt.onClick = function () {
8843
- var p = new PermissionClass();
8844
- p.RelatedId = _this.permissions.RelatedId;
8845
- p.Area = _this.permissions.Area;
8846
- p.Controller = option.Controller;
8847
- p.Action = option.Action;
8848
- var data = { Ids: _this.data().map(function (x) { return x.Id; }) };
8849
- _this.showConfirm(_this.l(option.Action + 'ConfirmMulti', data.Ids.length), _this.getOptionUrl(option.Url, _this.permissions.RelatedId, ''), data, function () {
8850
- _this.load();
8851
- });
8852
- };
8842
+ if (option.AccessType === exports.PermissionAccessTypeEnum.Report) {
8843
+ opt.queryParams = { Ids: this_2.data().map(function (x) { return x.Id; }) };
8844
+ opt.url = this_2.getOptionUrl(option.Url, this_2.permissions.RelatedId, '');
8845
+ opt.urlNewTab = true;
8846
+ }
8847
+ else {
8848
+ opt.onClick = function () {
8849
+ var p = new PermissionClass();
8850
+ p.RelatedId = _this.permissions.RelatedId;
8851
+ p.Area = _this.permissions.Area;
8852
+ p.Controller = option.Controller;
8853
+ p.Action = option.Action;
8854
+ var data = { Ids: _this.data().map(function (x) { return x.Id; }) };
8855
+ _this.showConfirm(_this.l(option.Action + 'ConfirmMulti', data.Ids.length), _this.getOptionUrl(option.Url, _this.permissions.RelatedId, ''), data, function () {
8856
+ _this.load();
8857
+ });
8858
+ };
8859
+ }
8853
8860
  this_2.extraButtons.push(opt);
8854
8861
  };
8855
8862
  var this_2 = this;