From 1d427b1d6b8c89cbd707e499c44e89c4030e2933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com> Date: Thu, 16 Mar 2023 18:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E6=8A=A5=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/reportExcel/weekReport.vue | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 16c8fd4..aa299d1 100644 --- a/manifest.json +++ b/manifest.json @@ -91,7 +91,7 @@ }, "quickapp" : {}, "mp-weixin" : { - "appid" : "wx8f883dca5ecc5510", + "appid" : "wxe044603515ff2cb5", "setting" : { "urlCheck" : false, "es6" : true, diff --git a/pages/reportExcel/weekReport.vue b/pages/reportExcel/weekReport.vue index 9d0873e..8a077f3 100644 --- a/pages/reportExcel/weekReport.vue +++ b/pages/reportExcel/weekReport.vue @@ -582,10 +582,10 @@ }, methods: { - tofixed2(time){ - if(time){ + tofixed2(time) { + if (time) { return time.toFixed(2) - }else{ + } else { return 0 } }, @@ -712,7 +712,7 @@ ...res.zkMessage, } } - + if (this.weekObj.level1List && this.weekObj.level2List) { if (this.weekObj.level1List[0] && this.weekObj.level1List[0].total) { let max1 = this.weekObj.level1List[0].total || 1 @@ -724,10 +724,10 @@ item.percent = 0 }) } - + if (this.weekObj.level2List[0] && this.weekObj.level2List[0].total) { let max2 = this.weekObj.level2List[0].total || 1 - + this.weekObj.level2List.forEach(item => { item.percent = Math.floor((item.total / max2) * 100) })