ps-toolkit-ui 1.8.11 → 1.8.14

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.
@@ -2875,15 +2875,13 @@
2875
2875
  var _loop_3 = function (r) {
2876
2876
  if (r.table) {
2877
2877
  var options = JSON.parse(JSON.stringify(_this.row.Options));
2878
- var rowOption_1 = options.find(function (x) { return x.ParentId === option.Id && x.Action === option.Action; });
2879
- console.log(options.filter(function (x) { return x.ParentId === rowOption_1.Id; }));
2878
+ var rowOption_1 = options.find(function (x) { return x.ParentId === option.Id && x.Action === r.name; });
2880
2879
  var p = new PermissionClass();
2881
2880
  p.RelatedId = _this.row.Data.Id;
2882
2881
  p.Area = _this.table.permissions.Area;
2883
2882
  p.Controller = option.Controller;
2884
2883
  p.Action = r.name;
2885
2884
  p.Accesses = options.filter(function (x) { return x.ParentId === rowOption_1.Id; });
2886
- p.Accesses.forEach(function (x) { return x.Url = x.Url.replace('{action}', r.name.toLowerCase()); });
2887
2885
  console.log(p);
2888
2886
  r.table.permissions = p;
2889
2887
  if (r.table.form) {