ps-toolkit-ui 1.13.98 → 1.14.0
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 +19 -11
- 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/classes/table.class.js +20 -12
- package/fesm2015/ps-toolkit-ui.js +19 -11
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -8839,17 +8839,25 @@
|
|
|
8839
8839
|
}
|
|
8840
8840
|
var _loop_2 = function (option) {
|
|
8841
8841
|
var opt = new InputClass(this_2.environment, this_2.l, option.Name, option.Icon, exports.InputType.Icon, 'm-r-10-p');
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8842
|
+
if (option.AccessType === exports.PermissionAccessTypeEnum.Report) {
|
|
8843
|
+
opt.onClick = function () {
|
|
8844
|
+
var params = $$1.param({ Ids: _this.data().map(function (x) { return x.Id; }) });
|
|
8845
|
+
window.open('/report' + _this.getOptionUrl(option.Url, _this.permissions.RelatedId, '') + (params ? '?' + params : ''), '_blank');
|
|
8846
|
+
};
|
|
8847
|
+
}
|
|
8848
|
+
else {
|
|
8849
|
+
opt.onClick = function () {
|
|
8850
|
+
var p = new PermissionClass();
|
|
8851
|
+
p.RelatedId = _this.permissions.RelatedId;
|
|
8852
|
+
p.Area = _this.permissions.Area;
|
|
8853
|
+
p.Controller = option.Controller;
|
|
8854
|
+
p.Action = option.Action;
|
|
8855
|
+
var data = { Ids: _this.data().map(function (x) { return x.Id; }) };
|
|
8856
|
+
_this.showConfirm(_this.l(option.Action + 'ConfirmMulti', data.Ids.length), _this.getOptionUrl(option.Url, _this.permissions.RelatedId, ''), data, function () {
|
|
8857
|
+
_this.load();
|
|
8858
|
+
});
|
|
8859
|
+
};
|
|
8860
|
+
}
|
|
8853
8861
|
this_2.extraButtons.push(opt);
|
|
8854
8862
|
};
|
|
8855
8863
|
var this_2 = this;
|