fix conflict worklist

master
ashwaq 6 years ago
parent 93f973022c
commit 2c5c0599d8

@ -53,7 +53,7 @@
<div [ngClass]="isEmptyObject() ? 'work-list-container' : ''">
<div *ngFor="let data of showFormattedData | keyvalue; let i = index">
<span class="date-span">{{data.key}}</span>
<div class="date-data" *ngFor="let workList of data.value; let j = index">
<div (click)="openNotificationDetail(data.value)" class="date-data" *ngFor="let workList of data.value; let j = index">
<p>{{workList.SUBJECT}}</p>
</div>
</div>

@ -331,13 +331,13 @@ export class HomeComponent implements OnInit {
openNotificationDetail(obj) {
console.log(obj);
this.common.sharedService.setSharedData(obj, HomeComponent.NOTIFICATION_DATA);
this.common.sharedService.setSharedData(obj[0], HomeComponent.NOTIFICATION_DATA);
// this.common.openWorklistMainPage();
if (obj.REQUEST_TYPE === 'PR') {
this.common.openWorklistMainPRPage();
} else if (obj.REQUEST_TYPE === 'PO') {
} else if (obj[0].REQUEST_TYPE === 'PO') {
this.common.openWorklistMainPOPage();
} else if (obj.REQUEST_TYPE === 'MO') {
} else if (obj[0].REQUEST_TYPE === 'MO') {
this.common.openWorklistMainMRPage();
} else {
this.common.openWorklistMainPage();

Loading…
Cancel
Save