diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index f3c7a00..b800491 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -810,20 +810,6 @@ export default { if (gammaInputFileNames.length > 0) { this.fetchReprocessing(gammaInputFileNames, inputFileName, sampleType) } - - // // 先排除当前的谱 - // const otherSampleList = this.sampleList.filter((sample) => sample.inputFileName !== inputFileName) - - // const betaSamples = otherSampleList.filter((sample) => sample.sampleType == 'B') - // const gammaSamples = otherSampleList.filter((sample) => sample.sampleType !== 'B') - // gammaSamples.forEach((gammaSample) => { - // postAction(`/gamma/Reprocessing?fileName=${gammaSample.inputFileName}`) - // }) - - // // 处理当前的谱的reprocessing - // if (inputFileName && sampleType !== 'B') { - // this.$refs.gammaAnalysisRef.reProcessing(false) - // } }, async fetchReprocessing(fileNames, currFileName, sampleType) { if (fileNames[0] == currFileName && sampleType !== 'B') { @@ -832,6 +818,7 @@ export default { this.finishCont++ this.percentBar = this.finishCont / this.gammaSampleNum this.analysedFileName = fileNames.splice(0, 1) + if (fileNames.length > 0) { this.fetchReprocessing(fileNames, currFileName, sampleType) } @@ -849,6 +836,11 @@ export default { try { const { success, result, message } = await postAction(`/gamma/Reprocessing?fileName=${fileNames[0]}`) if (success) { + this.$store.commit('ADD_SAMPLE_DATA', { + inputFileName: fileNames[0], + data: result, + from: '', + }) this.finishCont++ this.percentBar = this.finishCont / this.gammaSampleNum this.analysedFileName = fileNames.splice(0, 1)