Improve search

This commit is contained in:
Peter Maquiran
2021-01-29 17:13:15 +01:00
parent 0b86c30f82
commit 9fd01796a9
3 changed files with 27 additions and 3 deletions
+1
View File
@@ -1,6 +1,7 @@
<!-- HEADER--> <!-- HEADER-->
<ion-header class="ion-no-border header-main d-flex ion-justify-content-between"> <ion-header class="ion-no-border header-main d-flex ion-justify-content-between">
<ion-progress-bar type="indeterminate" class="loader" *ngIf="showLoader"></ion-progress-bar>
<ion-form> <ion-form>
<div class="d-flex search-input-container ion-justify-content-between" > <div class="d-flex search-input-container ion-justify-content-between" >
<div class="icon" (click)="basicSearch()"> <div class="icon" (click)="basicSearch()">
+12
View File
@@ -281,3 +281,15 @@ ion-slide{
} }
} }
.loader{
position: absolute;
margin-top: -14px;
width: calc(100% - 39px);
}
.swiper-container{
width: 100%;
}
+14 -3
View File
@@ -33,6 +33,8 @@ export class SearchPage implements OnInit {
showDocuments = false; showDocuments = false;
showAdvanceSearch = false; showAdvanceSearch = false;
showLoader: boolean;
height: number = 411; height: number = 411;
width: number = 411; width: number = 411;
@@ -110,6 +112,8 @@ export class SearchPage implements OnInit {
console.log('aplication type 0'); console.log('aplication type 0');
this.showLoader = true;
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '0').subscribe(res=>{ ,this.searchOrganicEntiry, this.searchDocTypeId, '0').subscribe(res=>{
console.log(res); console.log(res);
@@ -131,11 +135,14 @@ export class SearchPage implements OnInit {
} else { } else {
this.showDocuments = false this.showDocuments = false
} }
this.showLoader = false;
}); });
} else if (APPType == '8,361'){ } else if (APPType == '8,361'){
console.log('aplication type 8,361'); console.log('aplication type 8,361');
this.showLoader = true;
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{ ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
@@ -182,10 +189,13 @@ export class SearchPage implements OnInit {
} else { } else {
this.showDocuments = false this.showDocuments = false
} }
this.showLoader = false;
}); });
} else if (APPType == '386'){ } else if (APPType == '386'){
this.showLoader = true;
console.log('aplication type 386'); console.log('aplication type 386');
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
@@ -209,7 +219,8 @@ export class SearchPage implements OnInit {
} else { } else {
this.showDocuments = false this.showDocuments = false
} }
this.showLoader = false;
}); });
} }