Commit 7bddc1d3 by sunchao

7-12月薪资单显示

parent eb116c9b
...@@ -36,11 +36,11 @@ export class SalaryComponent implements OnInit { ...@@ -36,11 +36,11 @@ export class SalaryComponent implements OnInit {
if (res['success']) { if (res['success']) {
if(this.selectedId == 0){ if(this.selectedId == 0){
this.payScaleInfos = res['data']['payScaleInfos'].filter((item)=>{ this.payScaleInfos = res['data']['payScaleInfos'].filter((item)=>{
return (item.years == 2021 && item.month == 6) || (item.years == 2021 && item.month == 5) return (item.years == 2021 && item.month >= 5)
}); });
}else{ }else{
this.payScaleInfos = res['data']['payScaleInfos'].filter((item)=>{ this.payScaleInfos = res['data']['payScaleInfos'].filter((item)=>{
return item.monDtlPeriod != '2021-06' && item.monDtlPeriod != '2021-05' return new Date(item.monDtlPeriod).getTime() < 1619827200000
}); });
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment