|
|
|
|
@ -433,6 +433,7 @@ export class WorkListReplacementRollComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
selectedType;
|
|
|
|
|
counter=0;
|
|
|
|
|
onChangeSelect(select) {
|
|
|
|
|
let selectValue = select.detail.value;
|
|
|
|
|
|
|
|
|
|
@ -441,16 +442,17 @@ export class WorkListReplacementRollComponent implements OnInit {
|
|
|
|
|
this.isFilter = true;
|
|
|
|
|
this.selectedType = 1;
|
|
|
|
|
this.listOfRealted = this.actionHistory;
|
|
|
|
|
if(this.favoriteUserList.length > 0){
|
|
|
|
|
if(this.counter > 0)
|
|
|
|
|
{
|
|
|
|
|
this.actionHistory.forEach((obj, i) => {
|
|
|
|
|
if(this.favoriteUserList.find(x => x['USER_NAME'] === obj.USER_NAME)) {
|
|
|
|
|
this.actionHistory[i].IsFavorite = true;
|
|
|
|
|
}else{
|
|
|
|
|
this.actionHistory[i].IsFavorite = false;
|
|
|
|
|
}
|
|
|
|
|
console.log(this.actionHistory);
|
|
|
|
|
});
|
|
|
|
|
if(this.favoriteUserList.find(x => x['USER_NAME'] === obj.USER_NAME)) {
|
|
|
|
|
this.actionHistory[i].IsFavorite = true;
|
|
|
|
|
}else{
|
|
|
|
|
this.actionHistory[i].IsFavorite = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.counter = 1;
|
|
|
|
|
} else if (selectValue === '4') {
|
|
|
|
|
// if (this.favoriteUserList.length === 0 || this.favoriteUserList === undefined) {
|
|
|
|
|
this.getFavruite();
|
|
|
|
|
|