From e1f3c6f3fd250e4aeaf4f513baf4c3fc1f8954f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Fri, 17 Jun 2022 15:14:22 +0800 Subject: [PATCH] up --- src/views/dashboard/index.vue | 2 +- src/views/report/visit/periodRpt.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index ed6aca8..de9c538 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -165,7 +165,7 @@ load() { // this.showData = true; totalRpt().then(res => { - res.visit_enter.per = (res.visit_enter.total / (res.visit_total.total == 0 ? 1 : res.visit_total.total)) * 100 + "%" + res.visit_enter.per = ((res.visit_enter.total / (res.visit_total.total == 0 ? 1 : res.visit_total.total)) * 100).toFixed(2) + "%" this.totaldata = res; }) diff --git a/src/views/report/visit/periodRpt.vue b/src/views/report/visit/periodRpt.vue index 97aebec..2c29fae 100644 --- a/src/views/report/visit/periodRpt.vue +++ b/src/views/report/visit/periodRpt.vue @@ -107,7 +107,7 @@ date:this.searchFields.date }).then((res) => { for (var m of res) { - m.per = (m.use_total / (m.plan_total == 0 ? 1 : m.plan_total)) * 100 + "%" + m.per = ((m.use_total / (m.plan_total == 0 ? 1 : m.plan_total)) * 100).toFixed(2) + "%" m.daterange = m.start_time+"-"+m.end_time; xArr.push(m.daterange); planarr.push(