fix bug
This commit is contained in:
@ -47,27 +47,30 @@ export class DatatableComplianceIndexComponent implements OnInit {
|
||||
time:this.time
|
||||
}
|
||||
this.service.request(this.service.$api_getBillRateQualified, params).subscribe(res => {
|
||||
|
||||
if (res) {
|
||||
this.cardData1 = res;
|
||||
this.cardData1.proportion = this.cardData1.proportion*100 +'%'
|
||||
console.log(this.cardData1);
|
||||
|
||||
this.cardData1.proportion = (this.cardData1?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getBillRateProportion, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.cardData2 = res;
|
||||
this.cardData2.proportion = this.cardData2.proportion*100 +'%'
|
||||
this.cardData2.proportion = (this.cardData2?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getBillRateDirectPayment, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.cardData3 = res;
|
||||
this.cardData3.proportion = this.cardData3.proportion*100 +'%'
|
||||
this.cardData3.proportion = (this.cardData3?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_getBillTimelyPayment, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.cardData4 = res;
|
||||
this.cardData4.proportion = this.cardData4.proportion*100 +'%'
|
||||
this.cardData4.proportion = (this.cardData4?.proportion*100).toFixed(2) +'%'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user