diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 82f12fc..0653424 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -433,10 +433,10 @@ export default { }, getStationName(arg, val, flag) { arg.forEach((item) => { - item.conc = Number(item.conc).toPrecision(6) - item.concErr = Number(item.concErr).toPrecision(6) - item.lc = Number(item.lc).toPrecision(6) - item.mdc = Number(item.mdc).toPrecision(6) + item.conc = parseFloat(Number(item.conc).toPrecision(6)) + item.concErr = parseFloat(Number(item.concErr).toPrecision(6)) + item.lc = parseFloat(Number(item.lc).toPrecision(6)) + item.mdc = parseFloat(Number(item.mdc).toPrecision(6)) }) this.resultDisplayFlag = arg this.params_toDB.stationName = val @@ -725,10 +725,10 @@ export default { this.analyseCurrentSpectrumData = res.result this.resultDisplayFlag = res.result.XeData this.resultDisplayFlag.forEach((item) => { - item.conc = item.conc.toPrecision(6) - item.concErr = item.concErr.toPrecision(6) - item.lc = item.lc.toPrecision(6) - item.mdc = item.mdc.toPrecision(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)) }) } else { this.$message.warning(res.message) @@ -750,10 +750,10 @@ export default { this.analyseCurrentSpectrumData = res.result this.resultDisplayFlag = res.result.XeData this.resultDisplayFlag.forEach((item) => { - item.conc = item.conc.toPrecision(6) - item.concErr = item.concErr.toPrecision(6) - item.lc = item.lc.toPrecision(6) - item.mdc = item.mdc.toPrecision(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)) }) } else { this.$message.warning(res.message)