fantasy-ngzorro 1.0.54 → 1.0.55

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.
@@ -1902,6 +1902,7 @@
1902
1902
  */
1903
1903
  function () {
1904
1904
  var _this = this;
1905
+ console.log('this.filterStr', this.filterStr);
1905
1906
  this.tableLoading = true;
1906
1907
  // 如果没有输入搜索字符串,则显示缓存内的所有数据
1907
1908
  if (!this.filterStr) {
@@ -1911,8 +1912,10 @@
1911
1912
  }
1912
1913
  /** @type {?} */
1913
1914
  var filterValue = this.filterStr.trim().toLowerCase();
1915
+ console.log('this.filterValue', filterValue);
1914
1916
  this.isFilterData = true;
1915
1917
  this.filterIndexStore = [];
1918
+ console.log('this.storeFormLinesData', this.storeFormLinesData);
1916
1919
  // 根据搜索字符串过滤数据
1917
1920
  /** @type {?} */
1918
1921
  var filteredData = this.storeFormLinesData.filter((/**
@@ -1927,6 +1930,7 @@
1927
1930
  var item = _c.value;
1928
1931
  /** @type {?} */
1929
1932
  var value = data[item.name] ? data[item.name].toString().toLowerCase() : '';
1933
+ console.log('value', value);
1930
1934
  if (value.includes(filterValue)) {
1931
1935
  _this.filterIndexStore.push(index);
1932
1936
  return true;
@@ -2202,6 +2206,9 @@
2202
2206
  }));
2203
2207
  this.tableLoading = false;
2204
2208
  this.showForm = true;
2209
+ if (this.formLinesData.length === 0) {
2210
+ this.addFormLine();
2211
+ }
2205
2212
  };
2206
2213
  /**
2207
2214
  * @param {?=} index
@@ -2324,6 +2331,7 @@
2324
2331
  if (addIndex !== -1) {
2325
2332
  this.storeFormLinesData.splice(this.filterIndexStore[addIndex - 1] + 1, 0, getNowLines[addIndex]);
2326
2333
  }
2334
+ this.filterIndexStore.push(this.filterIndexStore[addIndex - 1] + 1);
2327
2335
  }
2328
2336
  else {
2329
2337
  // 有删除数据的情况
@@ -2361,6 +2369,20 @@
2361
2369
  }
2362
2370
  }
2363
2371
  }
2372
+ else {
2373
+ // step 2: 没有找到deletedIndex说明删除操作在最后一行
2374
+ /** @type {?} */
2375
+ var filterIndex_1 = this.filterIndexStore[this.filterIndexStore.length - 1];
2376
+ this.storeFormLinesData = this.storeFormLinesData.filter((/**
2377
+ * @param {?} item
2378
+ * @param {?} index
2379
+ * @return {?}
2380
+ */
2381
+ function (item, index) {
2382
+ return index !== filterIndex_1;
2383
+ }));
2384
+ this.filterIndexStore.pop();
2385
+ }
2364
2386
  }
2365
2387
  }
2366
2388
  else {