ps-toolkit-ui 1.4.8 → 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 +7 -13
- 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/lang.class.js +3 -6
- package/esm2015/lib/classes/request.class.js +2 -2
- package/esm2015/lib/classes/table.class.js +5 -8
- package/fesm2015/ps-toolkit-ui.js +7 -13
- 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
|
@@ -322,18 +322,16 @@
|
|
|
322
322
|
var _this = this;
|
|
323
323
|
if (v === void 0) { v = null; }
|
|
324
324
|
if (k != null && (/^-?\d+$/.test(k) || /^\d+\.\d+$/.test(k))) {
|
|
325
|
-
console.log(area, c, k, v, '=>', k);
|
|
326
325
|
return k;
|
|
327
326
|
}
|
|
328
327
|
var cv = _.get(this.lang, area ? area + "." + c + "." + k : c + "." + k);
|
|
329
328
|
if (!cv) {
|
|
330
|
-
cv = _.get(this.lang, "
|
|
329
|
+
cv = _.get(this.lang, "Public." + c + "." + k);
|
|
331
330
|
}
|
|
332
331
|
if (!cv) {
|
|
333
|
-
cv = _.get(this.lang, "
|
|
332
|
+
cv = _.get(this.lang, "Public." + k);
|
|
334
333
|
}
|
|
335
334
|
if (!cv) {
|
|
336
|
-
console.log(area, c, k, v, '=>', k);
|
|
337
335
|
return k;
|
|
338
336
|
}
|
|
339
337
|
if (v !== null) {
|
|
@@ -346,7 +344,6 @@
|
|
|
346
344
|
cv = cv.replace('{}', this.get(area, c, v, null));
|
|
347
345
|
}
|
|
348
346
|
}
|
|
349
|
-
console.log(area, c, k, v, '=>', cv);
|
|
350
347
|
return cv;
|
|
351
348
|
};
|
|
352
349
|
return LangClass;
|
|
@@ -1338,7 +1335,7 @@
|
|
|
1338
1335
|
}
|
|
1339
1336
|
btn.loading = true;
|
|
1340
1337
|
}
|
|
1341
|
-
this.getClient(table.
|
|
1338
|
+
this.getClient(table.url, table.method, table.searchData(), function (res) {
|
|
1342
1339
|
if (res.status === exports.ResultStatusEnum.Success) {
|
|
1343
1340
|
table.rows = res.result.List;
|
|
1344
1341
|
table.count = res.result.Count;
|
|
@@ -7448,13 +7445,10 @@
|
|
|
7448
7445
|
}
|
|
7449
7446
|
return this.searchForm ? this.searchForm.json(d) : d;
|
|
7450
7447
|
};
|
|
7451
|
-
TableClass.prototype.getUrl = function () {
|
|
7452
|
-
return this.url + 'list';
|
|
7453
|
-
};
|
|
7454
7448
|
TableClass.prototype.showInsertModal = function (cId) {
|
|
7455
7449
|
if (cId === void 0) { cId = null; }
|
|
7456
7450
|
var insertAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.Insert);
|
|
7457
|
-
this.form.url = this.form.baseUrl =
|
|
7451
|
+
this.form.url = this.form.baseUrl = insertAccess.Url + (cId ? '/' + cId : '');
|
|
7458
7452
|
this.form.name = insertAccess.Name;
|
|
7459
7453
|
this.form.method = exports.Method.Post;
|
|
7460
7454
|
this.form.inputs.filter(function (x) { return x.inEditDisabled; }).forEach(function (x) { return x.disabled = false; });
|
|
@@ -7470,7 +7464,7 @@
|
|
|
7470
7464
|
var listAccess = this.permissions.getAccess(exports.PermissionAccessTypeEnum.List);
|
|
7471
7465
|
if (listAccess !== null) {
|
|
7472
7466
|
this.title = listAccess.Name;
|
|
7473
|
-
this.url =
|
|
7467
|
+
this.url = listAccess.Url;
|
|
7474
7468
|
if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
|
|
7475
7469
|
this.load();
|
|
7476
7470
|
}
|
|
@@ -7491,7 +7485,7 @@
|
|
|
7491
7485
|
if (access.AccessType === exports.PermissionAccessTypeEnum.Insert) {
|
|
7492
7486
|
accessInp.class = accessInp.class.replace('blue', 'green');
|
|
7493
7487
|
if (this_1.form) {
|
|
7494
|
-
this_1.form.url = this_1.form.baseUrl =
|
|
7488
|
+
this_1.form.url = this_1.form.baseUrl = access.Url;
|
|
7495
7489
|
if (!this_1.form.onTop) {
|
|
7496
7490
|
accessInp.onClick = function () {
|
|
7497
7491
|
_this.form.onSuccessBase = function () {
|
|
@@ -7513,7 +7507,7 @@
|
|
|
7513
7507
|
};
|
|
7514
7508
|
}
|
|
7515
7509
|
else {
|
|
7516
|
-
accessInp.url =
|
|
7510
|
+
accessInp.url = access.Url;
|
|
7517
7511
|
}
|
|
7518
7512
|
}
|
|
7519
7513
|
}
|