From 8bb9016a4297978c38943bb166b2a66e66184503 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Thu, 2 Jan 2025 17:28:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0Sample=20Type?= =?UTF-8?q?=E3=80=81Sample=E3=80=81QC=20Flags=E5=AD=97=E6=AE=B5=EF=BC=8C?= =?UTF-8?q?=E5=8F=8A=E7=9B=B8=E5=BA=94=E5=A4=84=E7=90=86=EF=BC=8C=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alarmRules/config/index.js | 68 +++ .../analysisMonitor/alarmRules/index.vue | 453 +++++++++++------- 2 files changed, 357 insertions(+), 164 deletions(-) create mode 100644 src/views/abnormalAlarm/analysisMonitor/alarmRules/config/index.js diff --git a/src/views/abnormalAlarm/analysisMonitor/alarmRules/config/index.js b/src/views/abnormalAlarm/analysisMonitor/alarmRules/config/index.js new file mode 100644 index 0000000..e6e61ce --- /dev/null +++ b/src/views/abnormalAlarm/analysisMonitor/alarmRules/config/index.js @@ -0,0 +1,68 @@ +export const SampleTypeOptions = [ + { + label: 'All', + value: 'All' + }, + { + label: 'Gamma', + value: 'Gamma' + }, + { + label: 'Beta', + value: 'Beta' + } +] + +export const SampleMap = { + All: ['P', 'B', 'G', 'C'], + Gamma: ['P', 'G'], + Beta: ['B', 'C'] +} + +export const MenuNameMap = { + P: 'Particulate', + G: 'Noble Gas HPGe', + B: 'Noble Gas Beta-Gamma', + C: 'Self-Station' +} + +export const QcFlagOptions = { + P: [ + { label: 'acq_time (h)', isArray: false, value: 18, prop: 'acqTime' }, + { label: 'airFlow (m3/h)', isArray: false, value: 500, prop: 'airFlow' }, + { label: 'decay_time (h)', isArray: false, value: 26.4, prop: 'decayTime' }, + { label: 'samp_vol (m3)', isArray: false, value: 10800, prop: 'sampVol' }, + { label: 'Be7-FWHM (keV)', isArray: false, value: 1.7, prop: 'be7FWHM' }, + { + label: 'Ba140-MDC (uBq/m3)', + isArray: false, + value: 30, + prop: 'ba140MDC' + }, + { label: 'col_time (h)', isArray: true, value: [21.6, 26.4], prop: 'colTime' } + ], + B: [ + { label: 'Xenon Volume (ml)', isArray: false, value: 0.2, prop: 'xeVol' }, + { label: 'Collection Time (h)', isArray: true, value: [6.0, 24.0], prop: 'colTime' }, + { label: 'Acqusition Time (h)', isArray: true, value: [6.0, 24.0], prop: 'acqTime' }, + { label: 'MDC for Xe133 (mBq/m3)', isArray: true, value: [0.001, 5], prop: 'xe133MDC' }, + { label: 'Xe131m Flag', isArray: false, value: 1, disabled: true, prop: 'xe131mFlag' }, + { label: 'Xe133m Flag', isArray: false, value: 1, disabled: true, prop: 'xe133mFlag' }, + { label: 'Xe133 Flag', isArray: false, value: 1, disabled: true, prop: 'xe133Flag' }, + { label: 'Xe135 Flag', isArray: false, value: 1, disabled: true, prop: 'xe135Flag' } + ], + G: [ + { label: 'airFlow (m3/h)', isArray: false, value: 0.4, prop: 'airFlow' }, + { label: 'decay_time (h)', isArray: false, value: 10.0, prop: 'decayTime' }, + { label: 'samp_vol (m3)', isArray: false, value: 10, prop: 'sampVol' }, + { label: 'Xe133-MDC (uBq/m3)', isArray: false, value: 1000, prop: 'xe133MDC' }, + { label: 'acq_time (h)', isArray: true, value: [16.0, 24.0], prop: 'acqTime' }, + { label: 'col_time (h)', isArray: true, value: [21.6, 24.0], prop: 'colTime' }, + ], + C: [ + { label: 'Xe131m Flag', isArray: false, value: 1, disabled: true, prop: 'xe131mFlag' }, + { label: 'Xe133m Flag', isArray: false, value: 1, disabled: true, prop: 'xe133mFlag' }, + { label: 'Xe133 Flag', isArray: false, value: 1, disabled: true, prop: 'xe133Flag' }, + { label: 'Xe135 Flag', isArray: false, value: 1, disabled: true, prop: 'xe135Flag' } + ] +} diff --git a/src/views/abnormalAlarm/analysisMonitor/alarmRules/index.vue b/src/views/abnormalAlarm/analysisMonitor/alarmRules/index.vue index 0bca2e7..f4a3f48 100644 --- a/src/views/abnormalAlarm/analysisMonitor/alarmRules/index.vue +++ b/src/views/abnormalAlarm/analysisMonitor/alarmRules/index.vue @@ -154,6 +154,8 @@ @showSizeChange="handleSizeChange" /> + + - - - - + + + + - - - - + + + + + + + + + {{ item.label }} + + + + + + + + + {{ item }} + + + + + + - - + + - - - - - + + + + + + + + + {{ item.label }} + + + + + + + + + + - - + + - - - - - + + + + + +