fantasy-ngzorro 1.1.30 → 1.1.32

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.
@@ -3533,22 +3533,6 @@
3533
3533
  */
3534
3534
  function () {
3535
3535
  var _this = this;
3536
- // 首先把isShow为false数据剔除掉
3537
- this.tableCols = this.tableCols.filter((/**
3538
- * @param {?} item
3539
- * @return {?}
3540
- */
3541
- function (item) {
3542
- // 如果对象没有 isShow 属性,则默认为 true,保留该对象
3543
- if (!item.hasOwnProperty('isShow')) {
3544
- return true;
3545
- }
3546
- // 如果对象有 isShow 属性,则检查其值是否为 true
3547
- return item.isShow === true;
3548
- }));
3549
- if (!this.tableCols || this.tableCols.length === 0) {
3550
- return;
3551
- }
3552
3536
  this.userSession = this.commonSessionService.getSession('__jy_authorization_session__');
3553
3537
  // 用于开发环境调试
3554
3538
  if (!this.userSession) {
@@ -3556,6 +3540,10 @@
3556
3540
  userCode: 'dev'
3557
3541
  };
3558
3542
  }
3543
+ this.deleteHideItem();
3544
+ if (!this.tableCols || this.tableCols.length === 0) {
3545
+ return;
3546
+ }
3559
3547
  this.localforage.ready().then((/**
3560
3548
  * @return {?}
3561
3549
  */
@@ -3566,6 +3554,7 @@
3566
3554
  * @return {?}
3567
3555
  */
3568
3556
  function (e) {
3557
+ console.log('localforage加载异常step1', e);
3569
3558
  throw 'localforage加载异常';
3570
3559
  }));
3571
3560
  };
@@ -3588,6 +3577,10 @@
3588
3577
  this.resetStatus();
3589
3578
  }
3590
3579
  if (changes['tableCols'] && JSON.stringify(changes['tableCols'].currentValue) !== JSON.stringify(changes['tableCols'].previousValue)) {
3580
+ this.deleteHideItem();
3581
+ if (!this.tableCols || this.tableCols.length === 0) {
3582
+ return;
3583
+ }
3591
3584
  this.localforage.ready().then((/**
3592
3585
  * @return {?}
3593
3586
  */
@@ -3598,10 +3591,32 @@
3598
3591
  * @return {?}
3599
3592
  */
3600
3593
  function (e) {
3594
+ console.log('localforage加载异常step2', e);
3601
3595
  throw 'localforage加载异常';
3602
3596
  }));
3603
3597
  }
3604
3598
  };
3599
+ /**
3600
+ * @return {?}
3601
+ */
3602
+ HdTableComponent.prototype.deleteHideItem = /**
3603
+ * @return {?}
3604
+ */
3605
+ function () {
3606
+ // 首先把isShow为false数据剔除掉
3607
+ this.tableCols = this.tableCols.filter((/**
3608
+ * @param {?} item
3609
+ * @return {?}
3610
+ */
3611
+ function (item) {
3612
+ // 如果对象没有 isShow 属性,则默认为 true,保留该对象
3613
+ if (!item.hasOwnProperty('isShow')) {
3614
+ return true;
3615
+ }
3616
+ // 如果对象有 isShow 属性,则检查其值是否为 true
3617
+ return item.isShow === true;
3618
+ }));
3619
+ };
3605
3620
  /**
3606
3621
  * @param {?} sort
3607
3622
  * @return {?}