From 25a5c67eb7cb23772bd7700b8e4501091f5b8513 Mon Sep 17 00:00:00 2001 From: sige Date: Thu, 23 May 2024 20:48:35 +0800 Subject: [PATCH] =?UTF-8?q?#103=20=E5=AF=86=E5=B0=81=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SealTest.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/SealTest.vue b/src/components/SealTest.vue index db2eda0..9996247 100644 --- a/src/components/SealTest.vue +++ b/src/components/SealTest.vue @@ -13,9 +13,9 @@

{{ sealStore.oldAirPressure != null - ? sealStore.oldAirPressure * 1000 + ? parseFloat(sealStore.oldAirPressure).toFixed(1) : '--' - }}Pa + }}kp

{{ sealStore.differenceValue != null - ? `${sealStore.differenceValue * 1000}Pa` + ? `${parseFloat(sealStore.differenceValue).toFixed(1)}kp` : '未开始' }} @@ -128,7 +128,7 @@ const sealOptions = ref({ { type: 'gauge', min: 0, - max: 10, + max: 6, progress: { show: true, width: 18, @@ -177,12 +177,12 @@ const sealOptions = ref({ valueAnimation: true, fontSize: 40, color: '#3442aa', - formatter: '{value} Pa', + formatter: '{value} kp', offsetCenter: [0, '70%'], }, data: [ { - value: sealStore.currentAirPressure * 1000, + value: parseFloat(sealStore.currentAirPressure).toFixed(1), }, ], }, @@ -356,7 +356,7 @@ onMounted(() => { { type: 'gauge', min: 0, - max: 10, + max: 6, progress: { show: true, width: 18, @@ -410,7 +410,7 @@ onMounted(() => { }, data: [ { - value: sealStore.currentAirPressure * 1000, + value: parseFloat(sealStore.currentAirPressure).toFixed(1), }, ], },