From 4a88e5f0263be51957b50a648256d674dbfae731 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 18 六月 2024 15:21:04 +0800
Subject: [PATCH] 优化统计样式
---
src/components/view/b4-daily-business-statistics.vue | 2 +-
src/components/view/b4-inspection-item-statistics.vue | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/components/view/b4-daily-business-statistics.vue b/src/components/view/b4-daily-business-statistics.vue
index e0bc0d3..d8c0c0c 100644
--- a/src/components/view/b4-daily-business-statistics.vue
+++ b/src/components/view/b4-daily-business-statistics.vue
@@ -179,7 +179,7 @@
},
handleData(val){
if(val){
- return Math.abs(val)*100;
+ return (Math.abs(val)*100).tofixed(0);
}else{
return '0'
}
diff --git a/src/components/view/b4-inspection-item-statistics.vue b/src/components/view/b4-inspection-item-statistics.vue
index 4dd2176..6e2ddc1 100644
--- a/src/components/view/b4-inspection-item-statistics.vue
+++ b/src/components/view/b4-inspection-item-statistics.vue
@@ -229,12 +229,11 @@
this.chartConfig2.isLoading = true
this.chartConfig3.isLoading = true
this.chartConfig4.isLoading = true
- console.log(111111111,this.chartData2)
})
},
handleData(val){
if(val){
- return Math.abs(val)*100;
+ return (Math.abs(val)*100).tofixed(0);
}else{
return '0'
}
--
Gitblit v1.9.3