From 765507f755cf0acaa3c588aa707f151b1792c1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Mon, 16 Oct 2023 16:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=20Load=20From=20File=20?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E7=9A=84=EF=BC=8CARR=E3=80=80=E5=92=8C?= =?UTF-8?q?=E3=80=80Automatic=20Analysis=20Log=E3=80=80=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E7=9A=84=E5=B1=95=E7=A4=BA=E9=80=BB=E8=BE=91=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E7=BB=99=E5=87=BA=E6=8F=90=E7=A4=BA=E3=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spectrumAnalysis/index.vue | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) 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 + } }, }, {