allocate issue fix
This commit is contained in:
parent
3ec65571f1
commit
4105bc6bcf
16045
ng6-seed/package-lock.json
generated
16045
ng6-seed/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -175,7 +175,7 @@
|
||||
</span><br/>
|
||||
<!--<span class="fontsize" style="font-weight: bold;font-size: 1.1rem;" [ngStyle] = "{'color' : details.fk_pd_allocated_to == user_id ? 'black' : 'gray'}" *ngIf="details.fk_pd_allocated_to != null" matTooltip="Allocated to" matTooltipPosition="above">{{details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}</span>-->
|
||||
<br>
|
||||
<span class="fontsize" style="font-weight: bold;font-size: 1.1rem;" [ngStyle] = "{'color' : details.fk_pd_allocated_to == user_id ? 'black' : 'gray'}" matTooltip="Allocated to" matTooltipPosition="above">{{details.pd_status=='ALLOCATED_TO_FIA' && details.SMC_vendor_agency_name!=null && details.pd_allocated_to==null?details.SMC_vendor_agency_name:details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}</span>
|
||||
<span class="fontsize" style="font-weight: bold;font-size: 1.1rem;" [ngStyle] = "{'color' : details.fk_pd_allocated_to == user_id ? 'black' : 'gray'}" matTooltip="Allocated to" matTooltipPosition="above">{{details.pd_status=='ALLOCATED_TO_FIA' && details.SMC_vendor_agency_name != null && details.pd_allocated_to == null ? '' : details.fk_pd_allocated_to == user_id ? 'Self' : details.pd_allocated_to }}</span>
|
||||
</div>
|
||||
|
||||
<!-- *ngIf="details.fk_pd_allocated_to == null || details.fk_pd_allocated_to == user_id || details.pd_status == 'BOUNCED' || LenderRoleID == '27' || LenderRoleID == '25' -->
|
||||
|
||||
@ -100,6 +100,7 @@ export class AllPdComponent implements OnInit, OnChanges {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// this.loc_user_id = localStorage.getItem('userid')
|
||||
this.userRoleType=localStorage.getItem('user_role');
|
||||
|
||||
if(this.userRoleType=='28' || this.userRoleType=='29')
|
||||
@ -192,6 +193,13 @@ console.log(this.displayedColumns)
|
||||
this.PdListData = data.records;
|
||||
console.log('pddata');
|
||||
console.log(this.PdListData);
|
||||
if(this.userRoleType=='29'){
|
||||
// console.log('i am if 29')
|
||||
// console.log(this.PdListData.filter(status=>status.fk_pd_allocated_to == this.user_id))
|
||||
this.PdListData = this.PdListData.filter(status=>status.fk_pd_allocated_to == this.user_id)
|
||||
this.PdListData = this.PdListData.filter(vv=>vv.pd_allocated_to != null)
|
||||
console.log(this.PdListData,this.PdListData.length,data.records.length)
|
||||
}
|
||||
// this.PdListData = <GetOrInitializeYourListHere>;
|
||||
if(this.startIndex && this.endIndex) {
|
||||
this.pagedList.next(this.PdListData.slice(this.startIndex, this.endIndex));
|
||||
|
||||
@ -148,6 +148,15 @@ public LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
||||
this.loaderService.closeMatSpinnerDialog();
|
||||
if (data.status == 200) {
|
||||
this.completedPdListData = data.records;
|
||||
|
||||
if(this.userRoleType=='29'){
|
||||
// console.log('i am if 29')
|
||||
// console.log(this.completedPdListData.filter(status=>status.fk_pd_allocated_to == this.user_id))
|
||||
this.completedPdListData = this.completedPdListData.filter(status=>status.fk_pd_allocated_to == this.user_id)
|
||||
this.completedPdListData = this.completedPdListData.filter(vv=>vv.pd_allocated_to != null)
|
||||
console.log(this.completedPdListData,this.completedPdListData.length,data.records.length)
|
||||
}
|
||||
|
||||
// this.dataLengthTab4 = data.records.length;
|
||||
// this.dataSourceTab4.data = this.completedPdListData;
|
||||
if(this.startIndex && this.endIndex) {
|
||||
@ -349,7 +358,7 @@ public LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
||||
},0)
|
||||
// this.pa
|
||||
// this.length = this.pagedList.length
|
||||
// console.log(this.PdListData,this.pagedList,text)
|
||||
// console.log(this.completedPdListData,this.pagedList,text)
|
||||
|
||||
}
|
||||
onReset(){
|
||||
|
||||
@ -143,6 +143,16 @@ public LenderRoleID : string = localStorage.getItem('LenderRoleID');
|
||||
this.loaderService.closeMatSpinnerDialog();
|
||||
if (data.status == 200) {
|
||||
this.progressPdListData = data.records;
|
||||
|
||||
if(this.userRoleType=='29'){
|
||||
// console.log('i am if 29')
|
||||
// console.log(this.progressPdListData.filter(status=>status.fk_pd_allocated_to == this.user_id))
|
||||
this.progressPdListData = this.progressPdListData.filter(status=>status.fk_pd_allocated_to == this.user_id)
|
||||
this.progressPdListData = this.progressPdListData.filter(vv=>vv.pd_allocated_to != null)
|
||||
console.log(this.progressPdListData,this.progressPdListData.length,data.records.length)
|
||||
}
|
||||
|
||||
|
||||
// this.dataLengthTab2 = data.records.length;
|
||||
// this.dataSourceTab2.data = this.progressPdListData;
|
||||
if(this.startIndex && this.endIndex) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user