ps-toolkit-ui 1.3.46 → 1.3.47
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 +0 -3
- 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/base.component.js +1 -4
- package/fesm2015/ps-toolkit-ui.js +0 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -7189,17 +7189,14 @@
|
|
|
7189
7189
|
return app.getL("" + c + (a ? "." + a : ''), key, v);
|
|
7190
7190
|
};
|
|
7191
7191
|
this.permissions = this.getPermission(this.c, this.a);
|
|
7192
|
-
console.log(this.permissions, 'this.permissions');
|
|
7193
7192
|
if (this.permissions) {
|
|
7194
7193
|
this.permissions.Area = app.area;
|
|
7195
|
-
console.log(this.permissions.Area, 'this.permissions.Area');
|
|
7196
7194
|
}
|
|
7197
7195
|
}
|
|
7198
7196
|
BaseComponent.prototype.getPermission = function (c, a) {
|
|
7199
7197
|
if (a === void 0) { a = null; }
|
|
7200
7198
|
var p = this.app.currentData.permissions.filter(function (per) { return per.Controller === c && (a == null || per.Action === a) &&
|
|
7201
7199
|
per.Type === exports.PermissionTypeEnum.Item; });
|
|
7202
|
-
console.log(p, 'pppppp');
|
|
7203
7200
|
return p.length > 0 ? this.getPermissionClass(p[0]) : null;
|
|
7204
7201
|
};
|
|
7205
7202
|
BaseComponent.prototype.getPermissionClass = function (p) {
|