fix: 自建台站从DB加载时,对是否已分析判断不正确问题
This commit is contained in:
parent
5662395265
commit
6747b99e1c
|
@ -322,7 +322,7 @@ export default {
|
||||||
|
|
||||||
updateSampleData({
|
updateSampleData({
|
||||||
inputFileName,
|
inputFileName,
|
||||||
key: 'isReprocessed',
|
key: 'savedAnalysisResult',
|
||||||
data: true,
|
data: true,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -80,11 +80,10 @@ export default {
|
||||||
console.log('gammaEnergyValid>>>' + this.gammaEnergyValid)
|
console.log('gammaEnergyValid>>>' + this.gammaEnergyValid)
|
||||||
},
|
},
|
||||||
async handleReAnalyse() {
|
async handleReAnalyse() {
|
||||||
const {
|
const { data } = getSampleData(this.newSampleData.inputFileName)
|
||||||
data: { isReprocessed },
|
const { savedAnalysisResult } = data
|
||||||
} = getSampleData(this.newSampleData.inputFileName)
|
|
||||||
|
|
||||||
if (!isReprocessed) {
|
if (!savedAnalysisResult) {
|
||||||
this.$message.warning('Please analyze the spectrum first')
|
this.$message.warning('Please analyze the spectrum first')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user