filter筛选

updateSurveyList() {
if (localStorage.getItem('isGobackSurveyList') === 'true') {
localStorage.setItem('isGobackSurveyList', 'false');
this.surveyService.getSurveyList().subscribe(data => {
this.surveyListMyTask = data.result.filter(result=>result.status=="In Progress");
this.surveyListMyResponse = data.result.filter(result=>result.status=="Closed");
this.isShowNoData = true;
}, error => {
});
}
}

posted @ 2020-12-10 18:20  我和我的小生活  阅读(119)  评论(0编辑  收藏  举报