ps-toolkit-ui 1.8.10 → 1.8.11
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.
- package/bundles/ps-toolkit-ui.umd.js +4 -5
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/row/table.row.component.js +5 -6
- package/fesm2015/ps-toolkit-ui.js +4 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2875,17 +2875,16 @@
|
|
|
2875
2875
|
var _loop_3 = function (r) {
|
|
2876
2876
|
if (r.table) {
|
|
2877
2877
|
var options = JSON.parse(JSON.stringify(_this.row.Options));
|
|
2878
|
-
|
|
2879
|
-
console.log(options);
|
|
2880
|
-
console.log(option);
|
|
2881
|
-
console.log(options.filter(function (x) { return x.ParentId === option.Id; }));
|
|
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; }));
|
|
2882
2880
|
var p = new PermissionClass();
|
|
2883
2881
|
p.RelatedId = _this.row.Data.Id;
|
|
2884
2882
|
p.Area = _this.table.permissions.Area;
|
|
2885
2883
|
p.Controller = option.Controller;
|
|
2886
2884
|
p.Action = r.name;
|
|
2887
|
-
p.Accesses = options.filter(function (x) { return x.ParentId ===
|
|
2885
|
+
p.Accesses = options.filter(function (x) { return x.ParentId === rowOption_1.Id; });
|
|
2888
2886
|
p.Accesses.forEach(function (x) { return x.Url = x.Url.replace('{action}', r.name.toLowerCase()); });
|
|
2887
|
+
console.log(p);
|
|
2889
2888
|
r.table.permissions = p;
|
|
2890
2889
|
if (r.table.form) {
|
|
2891
2890
|
r.table.form.url = option.Url + 'insert';
|