@adins/ucsearch 2.9.21 → 2.9.23

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.
@@ -687,7 +687,7 @@ class UCSearchComponent {
687
687
  let rowPerPage = this.pageSize;
688
688
  if (IsExportExcel)
689
689
  rowPerPage = 9999;
690
- this.search(this.apiUrl, this.pageNow, rowPerPage, order, this.arrCrit, IsExportExcel, ExtFile);
690
+ this.search(this.apiUrl, this.pageNow, rowPerPage, order, true, this.arrCrit, IsExportExcel, ExtFile);
691
691
  }
692
692
  reset() {
693
693
  return __awaiter(this, void 0, void 0, function* () {
@@ -697,7 +697,7 @@ class UCSearchComponent {
697
697
  yield this.initiateForm();
698
698
  });
699
699
  }
700
- search(apiUrl, pageNo, rowPerPage, orderBy, addCrit = new Array(), IsExportExcel = false, extFile = "") {
700
+ search(apiUrl, pageNo, rowPerPage, orderBy, isClickSearch, addCrit = new Array(), IsExportExcel = false, extFile = "") {
701
701
  return __awaiter(this, void 0, void 0, function* () {
702
702
  let request = new RequestCriteriaObj();
703
703
  let arrCrit = new Array();
@@ -864,7 +864,10 @@ class UCSearchComponent {
864
864
  arrCrit.push(this.searchInput.addCritInput[i]);
865
865
  }
866
866
  }
867
- request.criteria = arrCrit;
867
+ if (isClickSearch) {
868
+ this.persistCrit = arrCrit;
869
+ }
870
+ request.criteria = this.persistCrit;
868
871
  request.integrationObj = null;
869
872
  if (this.searchInput.isJoinExAPI) {
870
873
  request.integrationObj = this.searchInput.integrationObj;