diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index d1b5a9f..35ca69e 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -794,7 +794,7 @@ export default { key: 'all', }, ], - key: 'resultsToDB' + key: 'resultsToDB', }, { title: 'Save PHD to File', @@ -808,7 +808,7 @@ export default { key: 'all', }, ], - key: 'phdToFile' + key: 'phdToFile', }, ], width: '170px', @@ -1077,12 +1077,16 @@ export default { { type: 'a-menu-item', title: 'View ARR', - handler: () => { - this.arrOrRRRModalVisible = true - this.arrOrRRRModalExtraData = {} - this.arrOrRRRModalType = 3 - }, show: this.isBetaGamma, + handler: () => { + if (this.newSampleData.sampleId) { + this.arrOrRRRModalVisible = true + this.arrOrRRRModalExtraData = {} + this.arrOrRRRModalType = 3 + } else { + this.$message.warning("The file isn't existed.") + } + }, }, { type: 'a-menu-item', @@ -1141,16 +1145,13 @@ export default { title: 'Automatic Analysis Log', show: this.isBetaGamma || this.isGamma, handler: () => { - if (this.isGamma) { + if (this.isBetaGamma || this.isGamma) { if (this.newSampleData.sampleId) { this.autoAnalysisMogModalType = this.isGamma ? 1 : this.isBetaGamma ? 2 : 1 this.autoAnalysisMogModalVisible = true } else { this.$message.warning("The file isn't existed.") } - } else if (this.isBetaGamma) { - this.autoAnalysisMogModalType = this.isGamma ? 1 : this.isBetaGamma ? 2 : 1 - this.autoAnalysisMogModalVisible = true } }, },