From abe080c0e3f5cff83b53d1a59317548e73c85f34 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Wed, 7 Aug 2024 17:59:50 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84Gamma=E7=9A=84?= =?UTF-8?q?=E5=88=86=E6=9E=90=E8=BF=9B=E5=BA=A6=E5=BC=B9=E7=AA=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Modals/AnalyzeSettingModal.vue | 6 +- .../Modals/ReProcessingModal/index.vue | 168 ++++-------------- .../SelfStationAnalyzeSettingModal.vue | 1 - src/views/spectrumAnalysis/gamma-analysis.vue | 80 ++++++--- src/views/spectrumAnalysis/index.vue | 38 ++-- 5 files changed, 109 insertions(+), 184 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/AnalyzeSettingModal.vue b/src/views/spectrumAnalysis/components/Modals/AnalyzeSettingModal.vue index 0d0fd73..816d14f 100644 --- a/src/views/spectrumAnalysis/components/Modals/AnalyzeSettingModal.vue +++ b/src/views/spectrumAnalysis/components/Modals/AnalyzeSettingModal.vue @@ -117,6 +117,7 @@ import TitleOverBorder from '../TitleOverBorder.vue' import ModalMixin from '@/mixins/ModalMixin' import SampleDataMixin from '../../SampleDataMixin' import moment from 'moment' +import { updateSampleData } from '@/utils/SampleStore' export default { components: { TitleOverBorder }, @@ -146,6 +147,9 @@ export default { result.dateTime_Conc = moment(result.dateTime_Conc || '2000/01/01 00:00:00').format('YYYY/MM/DD HH:mm:ss') this.model = result + + // 更新状态 + this.$emit('changeUpdateCalibration', result.checkBox_updateCal, false) } else { this.$message.error(message) } @@ -203,7 +207,7 @@ export default { const { success, message } = await postAction('/gamma/configureSave', param) if (success) { this.$message.success('Save Success') - this.$emit('senInfo', checkBox_updateCal ? '1' : '0') + this.$emit('changeUpdateCalibration', checkBox_updateCal, group_calPS) } else { this.$message.error(message) } diff --git a/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue b/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue index cea623e..e4ba465 100644 --- a/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue +++ b/src/views/spectrumAnalysis/components/Modals/ReProcessingModal/index.vue @@ -1,21 +1,22 @@