@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.
@@ -682,7 +682,7 @@ class UCSearchComponent {
682
682
  let rowPerPage = this.pageSize;
683
683
  if (IsExportExcel)
684
684
  rowPerPage = 9999;
685
- this.search(this.apiUrl, this.pageNow, rowPerPage, order, this.arrCrit, IsExportExcel, ExtFile);
685
+ this.search(this.apiUrl, this.pageNow, rowPerPage, order, true, this.arrCrit, IsExportExcel, ExtFile);
686
686
  }
687
687
  async reset() {
688
688
  this.searchForm.resetForm({
@@ -690,7 +690,7 @@ class UCSearchComponent {
690
690
  });
691
691
  await this.initiateForm();
692
692
  }
693
- async search(apiUrl, pageNo, rowPerPage, orderBy, addCrit = new Array(), IsExportExcel = false, extFile = "") {
693
+ async search(apiUrl, pageNo, rowPerPage, orderBy, isClickSearch, addCrit = new Array(), IsExportExcel = false, extFile = "") {
694
694
  let request = new RequestCriteriaObj();
695
695
  let arrCrit = new Array();
696
696
  let IsQueryIn = false;
@@ -856,7 +856,10 @@ class UCSearchComponent {
856
856
  arrCrit.push(this.searchInput.addCritInput[i]);
857
857
  }
858
858
  }
859
- request.criteria = arrCrit;
859
+ if (isClickSearch) {
860
+ this.persistCrit = arrCrit;
861
+ }
862
+ request.criteria = this.persistCrit;
860
863
  request.integrationObj = null;
861
864
  if (this.searchInput.isJoinExAPI) {
862
865
  request.integrationObj = this.searchInput.integrationObj;