ps-toolkit-ui 1.4.30 → 1.4.33

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.
@@ -2654,9 +2654,8 @@
2654
2654
  _this.changeRows.emit(_this.row.Data);
2655
2655
  }
2656
2656
  else {
2657
- console.log(option, 'option option option');
2658
2657
  _this.confirmShow.emit({
2659
- action: _this.table.permissions.Action,
2658
+ action: option.Action,
2660
2659
  url: _this.getOptionUrl(option.Url, _this.table.permissions.RelatedId, _this.row.Data.Id),
2661
2660
  accept: function () {
2662
2661
  if (_this.table.hasChildren && _this.table.childrenAutoLoad && _this.row.Data.ParentId != null) {
@@ -2716,6 +2715,7 @@
2716
2715
  p.Controller = option.Controller;
2717
2716
  p.Action = r.name;
2718
2717
  p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
2718
+ console.log(p.Accesses, 'p.Accesses');
2719
2719
  r.table.permissions = p;
2720
2720
  if (r.table.form) {
2721
2721
  r.table.form.url = option.Url + 'insert';
@@ -2751,7 +2751,7 @@
2751
2751
  p.Area = _this.table.permissions.Area;
2752
2752
  p.Controller = option.Controller;
2753
2753
  p.Action = option.Action;
2754
- _this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), option.Url + '/' + _this.row.Data.Id, null, function () {
2754
+ _this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), option.Url.replace('{}', _this.row.Data.Id), null, function () {
2755
2755
  _this.table.load();
2756
2756
  });
2757
2757
  };