diff --git a/src/views/spectrumAnalysis/index.vue b/src/views/spectrumAnalysis/index.vue index 029423d..b4e3188 100644 --- a/src/views/spectrumAnalysis/index.vue +++ b/src/views/spectrumAnalysis/index.vue @@ -1017,9 +1017,14 @@ export default { type: 'a-menu-item', title: 'ARR', handler: () => { - this.arrOrRRRModalVisible = true - this.arrOrRRRModalExtraData = {} - this.arrOrRRRModalType = 1 + console.log(this.newSampleData) + if (this.newSampleData.sampleId) { + this.arrOrRRRModalVisible = true + this.arrOrRRRModalExtraData = {} + this.arrOrRRRModalType = 1 + } else { + this.$message.warning("The file isn't existed.") + } }, show: this.isGamma, }, @@ -1134,8 +1139,17 @@ export default { title: 'Automatic Analysis Log', show: this.isBetaGamma || this.isGamma, handler: () => { - this.autoAnalysisMogModalType = this.isGamma ? 1 : this.isBetaGamma ? 2 : 1 - this.autoAnalysisMogModalVisible = true + if (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 + } }, }, {