diff --git a/proxy.conf.js b/proxy.conf.js
index 4690cd30..50eec04b 100644
--- a/proxy.conf.js
+++ b/proxy.conf.js
@@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2022-01-18 09:51:21
* @LastEditors : Shiming
- * @LastEditTime : 2022-04-28 14:09:56
+ * @LastEditTime : 2022-04-28 16:08:43
* @FilePath : \\tms-obc-web\\proxy.conf.js
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@@ -30,7 +30,7 @@ module.exports = {
// },
'//api': {
target: {
- host: 'tms-api-dev.eascs.com',
+ host: 'tms-api-test.eascs.com',
protocol: 'https:',
port: 443
},
diff --git a/src/app/routes/datatable/components/compliance/index/index.component.html b/src/app/routes/datatable/components/compliance/index/index.component.html
index 5b3c4635..8063729e 100644
--- a/src/app/routes/datatable/components/compliance/index/index.component.html
+++ b/src/app/routes/datatable/components/compliance/index/index.component.html
@@ -24,7 +24,7 @@
-
+
合格:{{cardData1?.leftQuantity}} 不合格:{{cardData1?.rightQuantity}}
@@ -33,7 +33,7 @@
-
+
货源单:{{cardData2?.leftQuantity}} 合同单:{{cardData2?.rightQuantity}}
@@ -42,7 +42,7 @@
-
+
司机:{{cardData3?.leftQuantity}} 车队长:{{cardData3?.rightQuantity}}
@@ -51,7 +51,7 @@
-
+
准时:{{cardData4?.leftQuantity}} 逾期:{{cardData4?.rightQuantity}}
diff --git a/src/app/routes/datatable/components/compliance/index/index.component.ts b/src/app/routes/datatable/components/compliance/index/index.component.ts
index b545a4f5..f531e14e 100644
--- a/src/app/routes/datatable/components/compliance/index/index.component.ts
+++ b/src/app/routes/datatable/components/compliance/index/index.component.ts
@@ -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) +'%'
}
});