ps-toolkit-ui 0.0.138 → 0.0.139
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 +9 -9
- 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 +10 -10
- package/fesm2015/ps-toolkit-ui.js +9 -9
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -2686,9 +2686,9 @@
|
|
|
2686
2686
|
var p = new PermissionClass();
|
|
2687
2687
|
p.RelatedId = _this.row.Data.Id;
|
|
2688
2688
|
p.Area = _this.table.permissions.Area;
|
|
2689
|
-
p.Controller =
|
|
2689
|
+
p.Controller = option.Controller;
|
|
2690
2690
|
p.Action = r.name;
|
|
2691
|
-
p.Accesses = option.
|
|
2691
|
+
p.Accesses = _this.row.Options.filter(function (x) { return x.ParentId === option.Id; });
|
|
2692
2692
|
r.table.permissions = p;
|
|
2693
2693
|
if (r.table.form) {
|
|
2694
2694
|
r.table.form.url = p.getUrl() + 'Insert';
|
|
@@ -2714,26 +2714,26 @@
|
|
|
2714
2714
|
p.Area = this_1.table.permissions.Area;
|
|
2715
2715
|
p.Controller = 'Print';
|
|
2716
2716
|
p.Action = option.Action;
|
|
2717
|
-
opt.url = '/Report' + p.getUrl() + '/
|
|
2717
|
+
opt.url = '/Report' + p.getUrl() + '/' + this_1.row.Data.Id;
|
|
2718
2718
|
opt.urlNewTab = true;
|
|
2719
2719
|
}
|
|
2720
2720
|
else if (option.InputAction === exports.PermissionInputActionEnum.File) {
|
|
2721
2721
|
var p = new PermissionClass();
|
|
2722
2722
|
p.RelatedId = this_1.table.permissions.RelatedId;
|
|
2723
2723
|
p.Area = this_1.table.permissions.Area;
|
|
2724
|
-
p.Controller =
|
|
2725
|
-
p.Action =
|
|
2726
|
-
opt.url = '/File' + p.getUrl() + '/
|
|
2724
|
+
p.Controller = option.Controller;
|
|
2725
|
+
p.Action = option.Action;
|
|
2726
|
+
opt.url = '/File' + p.getUrl() + '/' + this_1.row.Data.Id;
|
|
2727
2727
|
opt.urlNewTab = true;
|
|
2728
2728
|
}
|
|
2729
2729
|
else if (option.InputAction === exports.PermissionInputActionEnum.Confirm) {
|
|
2730
|
-
opt.onClick = function (
|
|
2730
|
+
opt.onClick = function () {
|
|
2731
2731
|
var p = new PermissionClass();
|
|
2732
2732
|
p.RelatedId = _this.table.permissions.RelatedId;
|
|
2733
2733
|
p.Area = _this.table.permissions.Area;
|
|
2734
|
-
p.Controller =
|
|
2734
|
+
p.Controller = option.Controller;
|
|
2735
2735
|
p.Action = option.Action;
|
|
2736
|
-
_this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' +
|
|
2736
|
+
_this.table.showConfirm(_this.table.l(option.Action + 'Confirm'), p.getUrl() + '/' + _this.row.Data.Id, null, function () {
|
|
2737
2737
|
_this.table.load();
|
|
2738
2738
|
});
|
|
2739
2739
|
};
|