diff --git a/src/views/spectrumAnalysis/beta-gamma-analysis.vue b/src/views/spectrumAnalysis/beta-gamma-analysis.vue index 3eb0809..dd7150c 100644 --- a/src/views/spectrumAnalysis/beta-gamma-analysis.vue +++ b/src/views/spectrumAnalysis/beta-gamma-analysis.vue @@ -134,6 +134,7 @@ import PopOverWithIcon from './components/SubOperators/PopOverWithIcon.vue' import Spectra from './components/SubOperators/Spectra.vue' import CustomSelect from '@/components/CustomSelect/index.vue' import axios from 'axios' +import { cloneDeep } from 'lodash' const StatisticsType = { 'Collection Time': 'Colloc_Time', @@ -225,7 +226,6 @@ export default { statisticModalVisible: false, // Qc Flags 点击后的弹窗 statisticsType: StatisticsType['Collection Time'], currSample: {}, - copyXeData: null, qcFlagsVisible: false, } }, @@ -452,12 +452,7 @@ export default { console.log('this.resultDisplaythis.resultDisplay', this.resultDisplay) - this.resultDisplay = this.copyXeData - ? this.copyXeData - : this.resultDisplay.length > 0 - ? this.resultDisplay - : XeData - + this.resultDisplay = XeData this.sortResultDisplay() this.$emit('sendInfo', this.resultDisplay, this.spectrumData.stationCode, savedAnalysisResult) @@ -561,8 +556,6 @@ export default { item.mdc = parseFloat(item.mdc.toPrecision(6)) }) this.$emit('reAnalyCurr', true, res.result.XeData) - this.copyXeData = res.result.XeData - this.handleReAnalyse(res.result) } } else { @@ -683,7 +676,7 @@ export default { analyseCurrentSpectrum: { handler(newVal, oldVal) { // this.currResultDisplay = newVal.XeData - this.resultDisplay = newVal.XeData || [] + this.resultDisplay = cloneDeep(newVal.XeData) || [] this.sortResultDisplay() this.$store.commit('UPDATE_SAMPLE_DATA', { inputFileName: this.sample.inputFileName,