From dd993b4ac8da9c7de6056a86cf581e61bfa530ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Thu, 9 Nov 2023 14:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=81=97=E7=95=99=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BetaGammaEnergyCalibrationModal/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue index 44e8514..3061830 100644 --- a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue +++ b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue @@ -141,10 +141,10 @@ export default { postAction('/spectrumAnalysis/ReAnalyse', params).then((res) => { if (res.success) { res.result.XeData.forEach((item) => { - item.conc = item.conc.toFixed(6) - item.concErr = item.concErr.toFixed(6) - item.lc = item.lc.toFixed(6) - item.mdc = item.mdc.toFixed(6) + item.conc = parseFloat(item.conc.toPrecision(6)) + item.concErr = parseFloat(item.concErr.toPrecision(6)) + item.lc = parseFloat(item.lc.toPrecision(6)) + item.mdc = parseFloat(item.mdc.toPrecision(6)) }) this.$emit('sendXeData', res.result.XeData) this.$message.success('Analyse Success!')