ps-toolkit-ui 0.0.6 → 0.0.7

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.
@@ -2412,8 +2412,6 @@
2412
2412
  _this.table.form.onSuccessBase = function () {
2413
2413
  _this.table.modal.hide();
2414
2414
  if (_this.table.childrenAutoLoad) {
2415
- console.log(11111);
2416
- console.log(_this.row.ParentId);
2417
2415
  _this.loadParent.emit(_this.row.ParentId);
2418
2416
  }
2419
2417
  else {
@@ -2444,7 +2442,14 @@
2444
2442
  _this.changeRows.emit(_this.row);
2445
2443
  }
2446
2444
  else {
2447
- _this.confirmShow.emit(_this.row.Id);
2445
+ _this.confirmShow.emit({ id: _this.row.Id, accept: function () {
2446
+ if (_this.table.hasChildren && _this.table.childrenAutoLoad && _this.row.ParentId != null) {
2447
+ _this.loadParent.emit(_this.row.ParentId);
2448
+ }
2449
+ else {
2450
+ _this.table.load();
2451
+ }
2452
+ } });
2448
2453
  }
2449
2454
  };
2450
2455
  if (this.table.sortable) {
@@ -2784,11 +2789,8 @@
2784
2789
  TableComponent.prototype.onChangeRows = function (e) {
2785
2790
  return this.changeRows.emit(e);
2786
2791
  };
2787
- TableComponent.prototype.onConfirmShow = function (rowId) {
2788
- var _this = this;
2789
- this.confirm.show(this.table.l('DeleteMessage'), this.table.url + 'Delete/' + rowId, null, function () {
2790
- _this.table.load(null);
2791
- });
2792
+ TableComponent.prototype.onConfirmShow = function (e) {
2793
+ this.confirm.show(this.table.l('DeleteMessage'), this.table.url + 'Delete/' + e.id, null, e.accept);
2792
2794
  };
2793
2795
  TableComponent.prototype.changeSort = function (e, s) {
2794
2796
  if ($__namespace(e.target).closest('.header-search').hasClass('header-search')) {