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!')