fix: beta 下的energy calibration,选了AllSpectrum后,重新分析,把备选列表中相同台站的本地缓存清空,当XeData为空时,不应用
This commit is contained in:
parent
06d3e99725
commit
e7f4656fef
|
@ -152,11 +152,26 @@ export default {
|
||||||
this.isReanlyze = true
|
this.isReanlyze = true
|
||||||
this.handleExit()
|
this.handleExit()
|
||||||
this.$bus.$emit('ReAnalyses', res.result)
|
this.$bus.$emit('ReAnalyses', res.result)
|
||||||
|
|
||||||
|
if (this.newCalibrationIsAppliedTo == 'AllSpectrum') {
|
||||||
|
this.clearSameStationCache(
|
||||||
|
matchedSampleList.filter((item) => item.inputFileName !== this.newSampleData.inputFileName)
|
||||||
|
)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 清理相同台站的缓存
|
||||||
|
clearSameStationCache(sampleList) {
|
||||||
|
sampleList.forEach(({ inputFileName }) => {
|
||||||
|
this.$store.commit('REMOVE_SAMPLE_DATA', inputFileName)
|
||||||
|
this.$ls.remove('calibration-gamma:' + inputFileName)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
handleExit() {
|
handleExit() {
|
||||||
this.gammaEnergyValid = this.isReanlyze
|
this.gammaEnergyValid = this.isReanlyze
|
||||||
console.log('exit>>>this.isReanlyze>>>' + this.isReanlyze)
|
console.log('exit>>>this.isReanlyze>>>' + this.isReanlyze)
|
||||||
|
|
|
@ -471,8 +471,10 @@ export default {
|
||||||
this.params_toDB.checkDet = val.checkDet
|
this.params_toDB.checkDet = val.checkDet
|
||||||
},
|
},
|
||||||
getXeData(val) {
|
getXeData(val) {
|
||||||
this.$set(this.analyseCurrentSpectrumData, 'XeData', val)
|
if(val && val.length) {
|
||||||
this.resultDisplayFlag = val
|
this.$set(this.analyseCurrentSpectrumData, 'XeData', val)
|
||||||
|
this.resultDisplayFlag = val
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// formDB 来源 吧接口返回的文件名称添加到sampleData
|
// formDB 来源 吧接口返回的文件名称添加到sampleData
|
||||||
getFiles(val) {
|
getFiles(val) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user