From f0dc11679319122a5f9999644042b55095db65ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Tue, 17 Oct 2023 15:15:42 +0800 Subject: [PATCH] =?UTF-8?q?beta=20=E6=A8=A1=E5=9D=97=20view=20ARR=20?= =?UTF-8?q?=E5=92=8C=20Automatic=20Analysis=20Log=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90=EF=BC=8C=E5=8F=8A=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spectrumAnalysis/index.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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 } }, },