From 46d433f8034314c4744950759763a4e57b3b894f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 15 Nov 2023 16:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E5=88=86=E6=9E=90=E5=A5=BD?= =?UTF-8?q?=E5=87=A0=E6=AC=A1=E4=BA=86=EF=BC=8C=E5=88=86=E6=9E=90=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E4=B8=8A=E9=9D=A2=E9=83=A8=E5=88=86=20calibrationUpda?= =?UTF-8?q?tes=20=E5=BA=94=E8=AF=A5=E6=B2=A1=E6=9C=89=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modals/ReProcessingModal/index.vue | 54 +++++++++++-------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue b/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue index b9f09c5..8b93c20 100644 --- a/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue +++ b/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue @@ -92,7 +92,7 @@ export default { newCheckBoxFlag: { handler(val) { console.log('flag', val) - if (val === '0') { + if (bAnalyed) { this.calibrationUpdatesFlag = false this.status_peak = 1 this.status_base = 2 @@ -100,28 +100,38 @@ export default { this.status_nucl = 2 this.status_acti = 2 this.status_qc = 2 - } else if (val === '1') { - this.calibrationUpdatesFlag = true - this.status_ener1 = 1 - this.status_reso = 1 - this.status_ener2 = 1 - this.status_peak = 2 - this.status_base = 2 - this.status_net = 2 - this.status_nucl = 2 - this.status_acti = 2 - this.status_qc = 2 } else { - this.calibrationUpdatesFlag = this.checkBoxFlag - this.status_peak = this.checkBoxFlag ? 2 : 1 - this.status_ener1 = 1 - this.status_reso = 1 - this.status_ener2 = 1 - this.status_base = 2 - this.status_net = 2 - this.status_nucl = 2 - this.status_acti = 2 - this.status_qc = 2 + if (val === '0') { + this.calibrationUpdatesFlag = false + this.status_peak = 1 + this.status_base = 2 + this.status_net = 2 + this.status_nucl = 2 + this.status_acti = 2 + this.status_qc = 2 + } else if (val === '1') { + this.calibrationUpdatesFlag = true + this.status_ener1 = 1 + this.status_reso = 1 + this.status_ener2 = 1 + this.status_peak = 2 + this.status_base = 2 + this.status_net = 2 + this.status_nucl = 2 + this.status_acti = 2 + this.status_qc = 2 + } else { + this.calibrationUpdatesFlag = this.checkBoxFlag + this.status_peak = this.checkBoxFlag ? 2 : 1 + this.status_ener1 = 1 + this.status_reso = 1 + this.status_ener2 = 1 + this.status_base = 2 + this.status_net = 2 + this.status_nucl = 2 + this.status_acti = 2 + this.status_qc = 2 + } } }, immediate: true,