From 8ed76dcd60ba8f60bba6732a266c2ba4d2bf1196 Mon Sep 17 00:00:00 2001 From: gayathri1990 Date: Fri, 21 May 2021 14:45:05 +0530 Subject: [PATCH] filter alignment,value convert string to no --- .../manage-pd/list-pd/all-pd/all-pd.component.ts | 6 +++++- .../list-pd/completed-pd/completed-pd.component.ts | 5 ++++- .../list-pd/inprogress-pd/inprogress-pd.component.ts | 7 +++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts index a0de673..e142a4d 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts @@ -290,7 +290,7 @@ console.log(this.displayedColumns) searchItem() { - + if(this.searchForm.value.pd_type !=null) { @@ -311,6 +311,10 @@ console.log(this.displayedColumns) this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd'); this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd'); // console.log(JSON.stringify(this.searchForm.value)); + let dt =this.searchForm.value.date_type; + let ldt: number = +dt; + this.searchForm.value.date_type=ldt; + console.log(this.searchForm.value); this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=> { this.xpandStatus = false; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts index 822a41e..8b8f510 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts @@ -274,7 +274,10 @@ public LenderRoleID : any = localStorage.getItem('LenderRoleID'); this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd'); this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd'); - + let dt =this.searchForm.value.date_type; + let ldt: number = +dt; + this.searchForm.value.date_type=ldt; + console.log(this.searchForm.value); this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=> { this.xpandStatus = false; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts index 9be7bbf..bd61d3d 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts @@ -244,7 +244,7 @@ public LenderRoleID : string = localStorage.getItem('LenderRoleID'); } searchItem() { -console.log(this.searchForm.value); + if(this.searchForm.value.pd_type !=null) { @@ -263,7 +263,10 @@ console.log(this.searchForm.value); this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd'); this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd'); - + let dt =this.searchForm.value.date_type; + let ldt: number = +dt; + this.searchForm.value.date_type=ldt; + console.log(this.searchForm.value); this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=> { this.xpandStatus = false;