fantasy-ngzorro 1.0.40 → 1.0.41

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.
@@ -1792,12 +1792,14 @@
1792
1792
  */
1793
1793
  function () {
1794
1794
  var _this = this;
1795
+ this.tableLoading = true;
1795
1796
  /** @type {?} */
1796
1797
  var filterValue = this.filterStr.trim().toLowerCase();
1797
1798
  // 如果没有输入搜索字符串,则显示所有数据
1798
1799
  if (!filterValue) {
1799
1800
  this.hideForm();
1800
1801
  this.addExistingFormLines(this.formLinesData);
1802
+ this.tableLoading = false;
1801
1803
  return;
1802
1804
  }
1803
1805
  // 根据搜索字符串过滤数据
@@ -1807,32 +1809,25 @@
1807
1809
  * @return {?}
1808
1810
  */
1809
1811
  function (data) {
1810
- /** @type {?} */
1811
- var values = Object.entries(data).reduce((/**
1812
- * @param {?} acc
1813
- * @param {?} __1
1814
- * @return {?}
1815
- */
1816
- function (acc, _a) {
1817
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
1818
- if (_this.formLines.some((/**
1819
- * @param {?} item
1820
- * @return {?}
1821
- */
1822
- function (item) { return item.name === key; }))) {
1823
- acc[key] = value ? value.toString().toLowerCase() : '';
1812
+ var e_1, _a;
1813
+ try {
1814
+ for (var _b = __values(_this.formLines), _c = _b.next(); !_c.done; _c = _b.next()) {
1815
+ var item = _c.value;
1816
+ /** @type {?} */
1817
+ var value = data[item.name] ? data[item.name].toString().toLowerCase() : '';
1818
+ if (value.includes(filterValue)) {
1819
+ return true;
1820
+ }
1824
1821
  }
1825
- return Object.values(acc).map((/**
1826
- * @param {?} value
1827
- * @return {?}
1828
- */
1829
- function (value) { return value ? value.toString().toLowerCase() : ''; }));
1830
- }), {});
1831
- return values.some((/**
1832
- * @param {?} val
1833
- * @return {?}
1834
- */
1835
- function (val) { return val.includes(filterValue); }));
1822
+ }
1823
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1824
+ finally {
1825
+ try {
1826
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1827
+ }
1828
+ finally { if (e_1) throw e_1.error; }
1829
+ }
1830
+ return false;
1836
1831
  }));
1837
1832
  // 如果没有匹配的数据,则显示空白表单行
1838
1833
  if (filteredData.length === 0) {
@@ -1843,6 +1838,7 @@
1843
1838
  this.hideForm();
1844
1839
  this.addExistingFormLines(filteredData);
1845
1840
  }
1841
+ this.tableLoading = false;
1846
1842
  };
1847
1843
  /**
1848
1844
  * @return {?}