ps-toolkit-ui 1.4.40 → 1.4.43

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.
@@ -2707,16 +2707,16 @@
2707
2707
  if (opt.modal.accordion) {
2708
2708
  var _loop_3 = function (r) {
2709
2709
  if (r.table) {
2710
+ var options = Object.assign(Object.create(Object.getPrototypeOf(_this.row.Options)), _this.row.Options);
2711
+ // const options = JSON.parse(JSON.stringify(this.row.Options));
2712
+ console.log(options);
2710
2713
  var p = new PermissionClass();
2711
2714
  p.RelatedId = _this.row.Data.Id;
2712
2715
  p.Area = _this.table.permissions.Area;
2713
2716
  p.Controller = option.Controller;
2714
2717
  p.Action = r.name;
2715
- console.log(r.name);
2716
- p.Accesses = HelperClass.clone(_this.row.Options.filter(function (x) { return x.ParentId === option.Id; }));
2717
- console.log(p.Accesses);
2718
+ p.Accesses = options.filter(function (x) { return x.ParentId === option.Id; });
2718
2719
  p.Accesses.forEach(function (x) { return x.Url = x.Url.replace('{action}', r.name.toLowerCase()); });
2719
- console.log(p.Accesses);
2720
2720
  r.table.permissions = p;
2721
2721
  if (r.table.form) {
2722
2722
  r.table.form.url = option.Url + 'insert';