From 828748abdf1cf96a9e4161eb726de4444cc1eefb Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Fri, 21 Oct 2022 09:52:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=8D=E8=89=AF?= =?UTF-8?q?=E7=8E=87=E5=86=99=E6=AD=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/scada/NorthFoamerMesPlan.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/scada/NorthFoamerMesPlan.html b/ruoyi-admin/src/main/resources/templates/scada/NorthFoamerMesPlan.html index dd6380d..b3acfc6 100644 --- a/ruoyi-admin/src/main/resources/templates/scada/NorthFoamerMesPlan.html +++ b/ruoyi-admin/src/main/resources/templates/scada/NorthFoamerMesPlan.html @@ -580,14 +580,14 @@ const total = data[0] const flaw = data[1] const rate = flaw / total - + console.log(data) rejectRatioChart.setOption({ series: [ { name: '不良率', data: [ - {value: 22, name: `3%`}, - {value: 78, name: ''}, + {value: flaw, name: rate.toFixed(2)+'%'}, + {value: total-flaw, name: ''}, ], } ]