ps-toolkit-ui 1.4.10 → 1.4.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 +5 -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/classes/request.class.js +2 -2
- package/esm2015/lib/classes/table.class.js +5 -9
- package/fesm2015/ps-toolkit-ui.js +5 -9
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/table.class.d.ts +0 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
}
|
|
1336
1336
|
btn.loading = true;
|
|
1337
1337
|
}
|
|
1338
|
-
this.getClient(table.
|
|
1338
|
+
this.getClient(table.url, table.method, table.searchData(), function (res) {
|
|
1339
1339
|
if (res.status === exports.ResultStatusEnum.Success) {
|
|
1340
1340
|
table.rows = res.result.List;
|
|
1341
1341
|
table.count = res.result.Count;
|
|
@@ -7445,13 +7445,10 @@
|
|
|
7445
7445
|
}
|
|
7446
7446
|
return this.searchForm ? this.searchForm.json(d) : d;
|
|
7447
7447
|
};
|
|
7448
|
-
TableClass.prototype.getUrl = function () {
|
|
7449
|
-
return this.url + 'list';
|
|
7450
|
-
};
|
|
7451
7448
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7452
7449
|
if (cId === void 0) { cId = null; }
|
|
7453
7450
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7454
|
-
this.form.url = this.form.baseUrl =
|
|
7451
|
+
this.form.url = this.form.baseUrl = insertAccess.Url + (cId ? '/' + cId : '');
|
|
7455
7452
|
this.form.name = insertAccess.Name;
|
|
7456
7453
|
this.form.method = exports.Method.Post;
|
|
7457
7454
|
this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
|
|
@@ -7465,10 +7462,9 @@
|
|
|
7465
7462
|
this.permission = true;
|
|
7466
7463
|
if (this.permissions) {
|
|
7467
7464
|
var listAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.List);
|
|
7468
|
-
console.log(listAccess);
|
|
7469
7465
|
if (listAccess !== null) {
|
|
7470
7466
|
this.title = listAccess.Name;
|
|
7471
|
-
this.url =
|
|
7467
|
+
this.url = listAccess.Url;
|
|
7472
7468
|
if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
|
|
7473
7469
|
this.load();
|
|
7474
7470
|
}
|
|
@@ -7489,7 +7485,7 @@
|
|
|
7489
7485
|
if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
|
|
7490
7486
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7491
7487
|
if (this_1.form) {
|
|
7492
|
-
this_1.form.url = this_1.form.baseUrl =
|
|
7488
|
+
this_1.form.url = this_1.form.baseUrl = access.Url;
|
|
7493
7489
|
if (!this_1.form.onTop) {
|
|
7494
7490
|
accessInp.onClick = function () {
|
|
7495
7491
|
_this.form.onSuccessBase = function () {
|
|
@@ -7511,7 +7507,7 @@
|
|
|
7511
7507
|
};
|
|
7512
7508
|
}
|
|
7513
7509
|
else {
|
|
7514
|
-
accessInp.url =
|
|
7510
|
+
accessInp.url = access.Url;
|
|
7515
7511
|
}
|
|
7516
7512
|
}
|
|
7517
7513
|
}
|