Jobs data

This commit is contained in:
CHIEFSOFT\ameye
2023-07-29 20:13:31 -04:00
parent 054054a552
commit 073ec2bfa3
2 changed files with 48 additions and 4 deletions
+2 -2
View File
@@ -49,7 +49,7 @@
</div>
<div *ngIf="tabs =='pastdue'">
<div class="chat" *ngFor="let item of jobsData;" (click)="onMessage()">
<div class="chat" *ngFor="let item of jobsPastDueData;" (click)="onMessage()">
<div class="flex">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p3.jpg)'"></div>
<div style="margin-left: 10px;">
@@ -73,7 +73,7 @@
</div>
<div *ngIf="tabs =='review'">
<div class="chat" *ngFor="let item of jobsData;" (click)="onMessage()">
<div class="chat" *ngFor="let item of jobsInReviewData;" (click)="onMessage()">
<div class="flex">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p3.jpg)'"></div>
<div style="margin-left: 10px;">
+46 -2
View File
@@ -20,6 +20,8 @@ export class InboxPage implements OnInit {
ngOnInit() {
this.getJobsData();
this.getPastDueJobsData();
this.getInReviewJobsData();
}
onCall() {
@@ -30,14 +32,16 @@ export class InboxPage implements OnInit {
this.router.navigate(['message']);
}
usrData: {
action:11200, member_id: number, uid: string, sessionid: string, limit:20, page:0, offset: 0
action:11200, member_id: number, uid: string, sessionid: string, limit:20, page:0, offset: 0, job_mode: string
};
jobsTotalData:any;
jobsData: [];
getJobsData(){
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session , limit:20, page:0, offset:0}
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id,
uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session ,
limit:20, page:0, offset:0, job_mode: 'ACTIVE'}
this.wrenchService.getMyActiveJobsData(this.usrData).subscribe(
jobsTotalData => {
this.jobsTotalData = jobsTotalData;
@@ -51,4 +55,44 @@ export class InboxPage implements OnInit {
}
jobsTotalPastDueData:any;
jobsPastDueData: [];
getPastDueJobsData(){
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid,
sessionid: this.sessionDataProviderService.session , limit:20, page:0, offset:0, job_mode: 'PASTDUE'}
this.wrenchService.getMyActiveJobsData(this.usrData).subscribe(
jobsTotalPastDueData => {
this.jobsTotalPastDueData = jobsTotalPastDueData;
console.log("PAST DUE TOTAL RETURN->", this.jobsTotalPastDueData);
this.jobsPastDueData = this.jobsTotalPastDueData.result_list;
// debugger;
console.log("PAST DUE JOBS RETURN DATA->", this.jobsPastDueData);
// this.blogDataService.setBlogData(this.blogResult.blog_data);
}
);
}
jobsTotalInReviewData:any;
jobsInReviewData: [];
getInReviewJobsData(){
this.usrData = {action:11200,
member_id: this.sessionDataProviderService.member_id,
uid: this.sessionDataProviderService.member_uid,
sessionid: this.sessionDataProviderService.session ,
limit:20, page:0, offset:0, job_mode: 'REVIEW'}
this.wrenchService.getMyActiveJobsData(this.usrData).subscribe(
jobsTotalInReviewData => {
this.jobsTotalInReviewData = jobsTotalInReviewData;
console.log("JOBS IN REVIEW TOTAL RETURN->", this.jobsTotalInReviewData);
this.jobsInReviewData = this.jobsTotalInReviewData.result_list;
// debugger;
console.log("JOBS IN REVIEW RETURN DATA->", this.jobsInReviewData);
// this.blogDataService.setBlogData(this.blogResult.blog_data);
}
);
}
}