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.
@@ -1335,7 +1335,7 @@
1335
1335
  }
1336
1336
  btn.loading = true;
1337
1337
  }
1338
- this.getClient(table.getUrl(), table.method, table.searchData(), function (res) {
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 = this.url + 'insert' + (cId ? '/' + cId : '');
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 = this.permissions.getUrl();
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 = this_1.url + 'insert';
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 = this_1.url + 'insert';
7510
+ accessInp.url = access.Url;
7515
7511
  }
7516
7512
  }
7517
7513
  }