|
|
|
|
@ -50,7 +50,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
public noData = false;
|
|
|
|
|
public isITG = false;
|
|
|
|
|
public isSearch = false;
|
|
|
|
|
// public direction = 'ltr';
|
|
|
|
|
public direction: string;
|
|
|
|
|
public ITGCount = 0;
|
|
|
|
|
public ITGSegment: { name: string, code: any, data: any, style: boolean, names?: any }[] = [];
|
|
|
|
|
@ -205,7 +204,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
callWorkListServices() {
|
|
|
|
|
// this.Details();
|
|
|
|
|
this.Count();
|
|
|
|
|
this.getAllPushNotificationFun();
|
|
|
|
|
}
|
|
|
|
|
@ -243,10 +241,19 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
// this.data.datasets[0].data[4] = this.ITGCount;
|
|
|
|
|
this.showChart = true;
|
|
|
|
|
this.common.stopLoading();
|
|
|
|
|
// this.common.stopLoading();
|
|
|
|
|
this.isLoading = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkLoadingStatus () {
|
|
|
|
|
if (this.showChart && this.receivedITGCount) {
|
|
|
|
|
this.common.stopLoading();
|
|
|
|
|
return true;
|
|
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
activeFilter(index: number) {
|
|
|
|
|
console.log(this.filters);
|
|
|
|
|
if (this.currentActiveIndex !== index) {
|
|
|
|
|
@ -464,7 +471,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
this.newWorkListResponse = [];
|
|
|
|
|
this.data.datasets[0].data[4] = this.ITGCount;
|
|
|
|
|
this.showChart = true;
|
|
|
|
|
this.common.stopLoading();
|
|
|
|
|
// this.common.stopLoading();
|
|
|
|
|
this.isLoading =false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -570,11 +577,11 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
Details() {
|
|
|
|
|
this.workListService.getITGDetails('', '', this.isPostNoLoad)
|
|
|
|
|
.subscribe((result: any) => {
|
|
|
|
|
this.receivedITGCount = true;
|
|
|
|
|
this.ITGCount = result.TotalCount;
|
|
|
|
|
this.totalRequestCount = this.totalRequestCount + result.TotalCount;
|
|
|
|
|
this.data.datasets[0].data[4] = this.ITGCount;
|
|
|
|
|
this.filters[5].value = result.TotalCount;
|
|
|
|
|
this.receivedITGCount = true;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|