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,