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