2023-06-28 19:25:11 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="beta-gamma-analysis">
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<a-spin :spinning="isLoading">
|
|
|
|
|
<!-- 二级交互栏 -->
|
|
|
|
|
<div class="spectrum-analysis-sub-operators">
|
|
|
|
|
<pop-over-with-icon placement="bottomLeft">
|
|
|
|
|
Detailed-Information
|
|
|
|
|
<beta-gamma-detailed-infomation slot="content" :data="spectrumData" />
|
|
|
|
|
</pop-over-with-icon>
|
|
|
|
|
<pop-over-with-icon placement="bottomLeft">
|
|
|
|
|
QC Flags
|
2023-07-31 19:23:25 +08:00
|
|
|
|
<beta-gamma-qc-flags slot="content" :data="qcFlags" @click="handleQcFlagClick" />
|
2023-07-26 10:12:39 +08:00
|
|
|
|
</pop-over-with-icon>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<custom-select
|
|
|
|
|
v-model="spectraType"
|
|
|
|
|
:options="SampleType"
|
|
|
|
|
@change="changeChartByType"
|
|
|
|
|
style="width: 246px"
|
|
|
|
|
></custom-select>
|
2023-06-28 19:25:11 +08:00
|
|
|
|
</div>
|
2023-07-06 14:05:43 +08:00
|
|
|
|
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<!-- 二级交互栏结束 -->
|
|
|
|
|
<!-- 主体部分 -->
|
|
|
|
|
<div class="beta-gamma-analysis-main">
|
|
|
|
|
<!-- 左侧图表 -->
|
|
|
|
|
<div class="beta-gamma-spectrum-sample">
|
2023-07-11 19:35:18 +08:00
|
|
|
|
<beta-gamma-chart-container>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<template slot="title"> Beta-Gamma Spectrum: Sample </template>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<beta-gamma-spectrum-chart
|
|
|
|
|
ref="betaGammaChartRef"
|
|
|
|
|
:histogramDataList="histogramDataList"
|
|
|
|
|
:histogramDataDList="histogramDataDList"
|
|
|
|
|
:boundary="boundaryList"
|
|
|
|
|
@positionChange="handlePositionChange"
|
|
|
|
|
@rangeChange="handleRangeChange"
|
|
|
|
|
/>
|
2023-07-11 19:35:18 +08:00
|
|
|
|
</beta-gamma-chart-container>
|
|
|
|
|
</div>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<!-- 左侧图表结束 -->
|
|
|
|
|
|
|
|
|
|
<!-- 右侧 -->
|
|
|
|
|
<div class="beta-and-gamma-spectrum">
|
|
|
|
|
<!-- 四个图表开始 -->
|
|
|
|
|
<div class="spectrum-charts">
|
|
|
|
|
<div class="gamma-spectrum">
|
|
|
|
|
<div class="gamma-spectrum-item">
|
|
|
|
|
<beta-gamma-chart-container>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<template slot="title"> Gamma Spectrum: Original </template>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<spectrum-line-chart
|
|
|
|
|
ref="lineChart1Ref"
|
|
|
|
|
:data="gammaOriginalData"
|
|
|
|
|
:energy="gammaEnergyData"
|
|
|
|
|
@rangeChange="handleLineChartRangeChange($event, 'y')"
|
|
|
|
|
/>
|
|
|
|
|
</beta-gamma-chart-container>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gamma-spectrum-item">
|
|
|
|
|
<beta-gamma-chart-container>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<template slot="title"> Gamma Spectrum: Projected </template>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<spectrum-line-chart
|
|
|
|
|
ref="lineChart2Ref"
|
|
|
|
|
:data="gammaProjectedData"
|
|
|
|
|
:energy="gammaEnergyData"
|
|
|
|
|
@rangeChange="handleLineChartRangeChange($event, 'y')"
|
|
|
|
|
/>
|
|
|
|
|
</beta-gamma-chart-container>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gamma-spectrum">
|
|
|
|
|
<div class="gamma-spectrum-item">
|
|
|
|
|
<beta-gamma-chart-container>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<template slot="title"> Beta Spectrum: Original </template>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<spectrum-line-chart
|
|
|
|
|
ref="lineChart3Ref"
|
|
|
|
|
:data="betaOriginalData"
|
|
|
|
|
:energy="betaEnergyData"
|
|
|
|
|
title="Beta"
|
|
|
|
|
color="#00ff1e"
|
|
|
|
|
@rangeChange="handleLineChartRangeChange($event, 'x')"
|
|
|
|
|
/>
|
|
|
|
|
</beta-gamma-chart-container>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gamma-spectrum-item">
|
|
|
|
|
<beta-gamma-chart-container>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<template slot="title"> Beta Spectrum: Projected </template>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<spectrum-line-chart
|
|
|
|
|
ref="lineChart4Ref"
|
|
|
|
|
:data="betaProjectedData"
|
|
|
|
|
:energy="betaEnergyData"
|
|
|
|
|
title="Beta"
|
|
|
|
|
color="#00ff1e"
|
|
|
|
|
@rangeChange="handleLineChartRangeChange($event, 'x')"
|
|
|
|
|
/>
|
|
|
|
|
</beta-gamma-chart-container>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 四个图表结束 -->
|
|
|
|
|
|
|
|
|
|
<!-- 结果显示开始 -->
|
|
|
|
|
<div class="result-display">
|
|
|
|
|
<beta-gamma-chart-container>
|
2023-09-13 19:01:21 +08:00
|
|
|
|
<template slot="title"> Result display </template>
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<result-display :data="resultDisplay"></result-display>
|
|
|
|
|
</beta-gamma-chart-container>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 结果显示结束 -->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 右侧结束 -->
|
2023-07-11 19:35:18 +08:00
|
|
|
|
|
2023-07-26 10:12:39 +08:00
|
|
|
|
<!-- Comparison Modal 开始 -->
|
|
|
|
|
<comparison-modal v-model="comparisonModalVisible" />
|
|
|
|
|
<!-- Comparison Modal 结束 -->
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 主体部分结束 -->
|
|
|
|
|
</a-spin>
|
2023-07-31 19:23:25 +08:00
|
|
|
|
|
2023-09-15 17:18:22 +08:00
|
|
|
|
<statistics-paramer-history-modal-for-qc-flags v-model="statisticModalVisible" :statisticsType="statisticsType" />
|
2023-06-28 19:25:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-07-13 19:18:23 +08:00
|
|
|
|
import { getAction } from '../../api/manage'
|
2023-06-28 19:25:11 +08:00
|
|
|
|
import BetaGammaChartContainer from './components/BetaGammaChartContainer.vue'
|
|
|
|
|
import BetaGammaSpectrumChart from './components/BetaGammaSpectrumChart.vue'
|
2023-07-31 19:23:25 +08:00
|
|
|
|
import StatisticsParamerHistoryModalForQcFlags from './components/Modals/BetaGammaModals/StatisticsParamerHistoryModalForQCFlags.vue'
|
2023-07-06 14:05:43 +08:00
|
|
|
|
import ComparisonModal from './components/Modals/ComparisonModal.vue'
|
2023-06-28 19:25:11 +08:00
|
|
|
|
import ResultDisplay from './components/ResultDisplay.vue'
|
|
|
|
|
import SpectrumLineChart from './components/SpectrumLineChart.vue'
|
2023-07-26 10:12:39 +08:00
|
|
|
|
import BetaGammaDetailedInfomation from './components/SubOperators/BetaGammaDetailedInfomation.vue'
|
2023-07-24 19:26:46 +08:00
|
|
|
|
import BetaGammaQcFlags from './components/SubOperators/BetaGammaQcFlags.vue'
|
2023-07-11 19:35:18 +08:00
|
|
|
|
import PopOverWithIcon from './components/SubOperators/PopOverWithIcon.vue'
|
|
|
|
|
import Spectra from './components/SubOperators/Spectra.vue'
|
2023-08-08 19:11:37 +08:00
|
|
|
|
import CustomSelect from '@/components/CustomSelect/index.vue'
|
2023-07-04 19:46:38 +08:00
|
|
|
|
|
2023-07-31 19:23:25 +08:00
|
|
|
|
const StatisticsType = {
|
|
|
|
|
'Collection Time': 'Colloc_Time',
|
|
|
|
|
'Acq Time': 'Acq_Time',
|
|
|
|
|
'Xe Volume': 'Xe_volumn',
|
2023-09-13 19:01:21 +08:00
|
|
|
|
'Air Volume': 'Sample_Volumn',
|
2023-07-31 19:23:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-08 19:11:37 +08:00
|
|
|
|
const SampleType = [
|
|
|
|
|
{
|
|
|
|
|
label: 'Sample Data',
|
2023-09-13 19:01:21 +08:00
|
|
|
|
value: 'sample',
|
2023-08-08 19:11:37 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'GasBg Data',
|
2023-09-13 19:01:21 +08:00
|
|
|
|
value: 'gasBg',
|
2023-08-08 19:11:37 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'DetBg Data',
|
2023-09-13 19:01:21 +08:00
|
|
|
|
value: 'detBg',
|
2023-08-08 19:11:37 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'QC Data',
|
2023-09-13 19:01:21 +08:00
|
|
|
|
value: 'qc',
|
|
|
|
|
},
|
2023-08-08 19:11:37 +08:00
|
|
|
|
]
|
|
|
|
|
|
2023-06-28 19:25:11 +08:00
|
|
|
|
export default {
|
2023-07-06 14:05:43 +08:00
|
|
|
|
components: {
|
|
|
|
|
BetaGammaChartContainer,
|
|
|
|
|
SpectrumLineChart,
|
|
|
|
|
ResultDisplay,
|
|
|
|
|
BetaGammaSpectrumChart,
|
2023-07-11 19:35:18 +08:00
|
|
|
|
ComparisonModal,
|
|
|
|
|
|
|
|
|
|
PopOverWithIcon,
|
2023-07-24 19:26:46 +08:00
|
|
|
|
Spectra,
|
2023-07-26 10:12:39 +08:00
|
|
|
|
BetaGammaQcFlags,
|
2023-07-31 19:23:25 +08:00
|
|
|
|
BetaGammaDetailedInfomation,
|
2023-08-08 19:11:37 +08:00
|
|
|
|
StatisticsParamerHistoryModalForQcFlags,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
CustomSelect,
|
2023-07-11 19:35:18 +08:00
|
|
|
|
},
|
|
|
|
|
props: {
|
2023-07-13 19:18:23 +08:00
|
|
|
|
sample: {
|
2023-09-13 19:01:21 +08:00
|
|
|
|
type: Object,
|
|
|
|
|
},
|
2023-09-14 19:44:56 +08:00
|
|
|
|
analyseCurrentSpectrum: {
|
|
|
|
|
type: Object,
|
|
|
|
|
},
|
2023-07-06 14:05:43 +08:00
|
|
|
|
},
|
2023-06-28 19:25:11 +08:00
|
|
|
|
data() {
|
2023-08-08 19:11:37 +08:00
|
|
|
|
this.SampleType = SampleType
|
|
|
|
|
|
2023-06-28 19:25:11 +08:00
|
|
|
|
return {
|
2023-07-24 19:26:46 +08:00
|
|
|
|
qcFlags: {},
|
|
|
|
|
|
2023-07-11 19:35:18 +08:00
|
|
|
|
spectraVisible: false,
|
2023-07-13 19:18:23 +08:00
|
|
|
|
spectraType: 'sample',
|
|
|
|
|
|
2023-07-26 10:12:39 +08:00
|
|
|
|
isLoading: false,
|
|
|
|
|
|
|
|
|
|
spectrumData: {}, // Detailed Infomation 信息
|
|
|
|
|
|
2023-07-13 19:18:23 +08:00
|
|
|
|
resultDisplay: [],
|
2023-09-14 19:44:56 +08:00
|
|
|
|
currResultDisplay: [],
|
2023-07-13 19:18:23 +08:00
|
|
|
|
|
2023-07-11 19:35:18 +08:00
|
|
|
|
histogramDataList: [],
|
2023-07-13 19:18:23 +08:00
|
|
|
|
histogramDataDList: [],
|
2023-07-17 19:37:46 +08:00
|
|
|
|
boundaryList: [],
|
2023-07-11 19:35:18 +08:00
|
|
|
|
|
|
|
|
|
gammaOriginalData: [],
|
2023-07-13 19:18:23 +08:00
|
|
|
|
gammaProjectedData: [],
|
|
|
|
|
|
2023-07-11 19:35:18 +08:00
|
|
|
|
betaOriginalData: [],
|
|
|
|
|
betaProjectedData: [],
|
2023-07-13 19:18:23 +08:00
|
|
|
|
|
|
|
|
|
gammaEnergyData: [],
|
|
|
|
|
betaEnergyData: [],
|
2023-07-11 19:35:18 +08:00
|
|
|
|
|
2023-07-31 19:23:25 +08:00
|
|
|
|
comparisonModalVisible: false,
|
|
|
|
|
|
|
|
|
|
statisticModalVisible: false, // Qc Flags 点击后的弹窗
|
2023-09-13 19:01:21 +08:00
|
|
|
|
statisticsType: StatisticsType['Collection Time'],
|
2023-09-15 16:25:47 +08:00
|
|
|
|
currSample: {},
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-06-28 19:25:11 +08:00
|
|
|
|
methods: {
|
2023-07-13 19:18:23 +08:00
|
|
|
|
async getSampleDetail() {
|
2023-08-08 19:11:37 +08:00
|
|
|
|
this.spectraType = this.SampleType[0].value
|
2023-07-13 19:18:23 +08:00
|
|
|
|
|
|
|
|
|
const { dbName, sampleId } = this.sample
|
2023-07-26 10:12:39 +08:00
|
|
|
|
try {
|
|
|
|
|
this.isLoading = true
|
|
|
|
|
const { success, result, message } = await getAction('/spectrumAnalysis/getDBSpectrumChart', {
|
|
|
|
|
dbName,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
sampleId,
|
2023-07-26 10:12:39 +08:00
|
|
|
|
})
|
|
|
|
|
if (success) {
|
|
|
|
|
this.sampleDetail = result
|
|
|
|
|
this.changeChartByType('sample')
|
|
|
|
|
this.isLoading = false
|
2023-09-15 17:45:46 +08:00
|
|
|
|
this.$emit('getFiles', {
|
|
|
|
|
detFileName: result.detBg.fileName,
|
|
|
|
|
gasFileName: result.gasBg.fileName,
|
|
|
|
|
qcFileName: result.qc.fileName || '',
|
|
|
|
|
})
|
2023-07-26 10:12:39 +08:00
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(message)
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error(error)
|
2023-07-13 19:18:23 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-09-08 16:23:18 +08:00
|
|
|
|
async getSampleDetail_file() {
|
|
|
|
|
this.spectraType = this.SampleType[0].value
|
|
|
|
|
let params = {
|
|
|
|
|
sampleFileName: this.sample.sampleFileName,
|
|
|
|
|
gasFileName: this.sample.gasFileName,
|
|
|
|
|
detFileName: this.sample.detFileName,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
qcFileName: this.sample.qcFileStatus ? this.sample.qcFileName : '',
|
2023-09-08 16:23:18 +08:00
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
this.isLoading = true
|
|
|
|
|
const { success, result, message } = await getAction('/spectrumAnalysis/getFileSpectrumChart', params)
|
|
|
|
|
if (success) {
|
|
|
|
|
this.sampleDetail = result
|
|
|
|
|
this.changeChartByType('sample')
|
|
|
|
|
this.isLoading = false
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(message)
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error(error)
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-13 19:18:23 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
changeChartByType(val) {
|
2023-09-13 19:01:21 +08:00
|
|
|
|
if (val === 'qc' && !this.sample.qcFileStatus) {
|
|
|
|
|
this.$message.warning('No qc spectrum file!')
|
2023-09-08 16:23:18 +08:00
|
|
|
|
} else {
|
|
|
|
|
const {
|
|
|
|
|
betaOriginalData,
|
|
|
|
|
betaProjectedData,
|
|
|
|
|
betaEnergyData,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
gammaOriginalData,
|
|
|
|
|
gammaProjectedData,
|
|
|
|
|
gammaEnergyData,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
histogramDataList, // 左侧 Beta-Gamma Spectrum: Sample 图表
|
|
|
|
|
histogramDataDList, // 左侧 Beta-Gamma Spectrum: Sample 图表的3D部分
|
|
|
|
|
Boundary, // 左侧2d图表的矩形
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
XeData, // 右下角Result Display
|
|
|
|
|
spectrumData,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
AcqTimeBtn, // QC Flags 相关
|
|
|
|
|
CollectTimeBtn, // QC Flags 相关
|
|
|
|
|
SampleVolumeBtn, // QC Flags 相关
|
|
|
|
|
XeVolumeBtn, // QC Flags 相关
|
|
|
|
|
GasBgBtn, // QC Flags 相关
|
2023-09-13 19:01:21 +08:00
|
|
|
|
DetBgBtn, // QC Flags 相关
|
2023-09-08 16:23:18 +08:00
|
|
|
|
} = this.sampleDetail[this.spectraType]
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
this.spectrumData = spectrumData
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
this.histogramDataList = histogramDataList
|
|
|
|
|
this.histogramDataDList = histogramDataDList
|
|
|
|
|
this.boundaryList = Boundary
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
this.gammaOriginalData = gammaOriginalData
|
|
|
|
|
this.gammaProjectedData = gammaProjectedData
|
|
|
|
|
this.gammaEnergyData = gammaEnergyData
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
this.betaOriginalData = betaOriginalData
|
|
|
|
|
this.betaProjectedData = betaProjectedData
|
|
|
|
|
this.betaEnergyData = betaEnergyData
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-14 19:44:56 +08:00
|
|
|
|
this.resultDisplay = this.currResultDisplay || XeData
|
2023-09-13 19:01:21 +08:00
|
|
|
|
|
2023-09-08 16:23:18 +08:00
|
|
|
|
this.qcFlags = {
|
|
|
|
|
AcqTimeBtn,
|
|
|
|
|
CollectTimeBtn,
|
|
|
|
|
SampleVolumeBtn,
|
|
|
|
|
XeVolumeBtn,
|
|
|
|
|
GasBgBtn,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
DetBgBtn,
|
2023-09-08 16:23:18 +08:00
|
|
|
|
}
|
2023-07-24 19:26:46 +08:00
|
|
|
|
}
|
2023-07-13 19:18:23 +08:00
|
|
|
|
},
|
|
|
|
|
|
2023-06-28 19:25:11 +08:00
|
|
|
|
resize() {
|
2023-07-04 19:46:38 +08:00
|
|
|
|
this.$refs.betaGammaChartRef && this.$refs.betaGammaChartRef.resize()
|
2023-06-28 19:25:11 +08:00
|
|
|
|
this.$refs.lineChart1Ref && this.$refs.lineChart1Ref.resize()
|
|
|
|
|
this.$refs.lineChart2Ref && this.$refs.lineChart2Ref.resize()
|
|
|
|
|
this.$refs.lineChart3Ref && this.$refs.lineChart3Ref.resize()
|
|
|
|
|
this.$refs.lineChart4Ref && this.$refs.lineChart4Ref.resize()
|
2023-07-04 19:46:38 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 鼠标在左侧2d图表上移动时
|
|
|
|
|
handlePositionChange([xAxis, yAxis]) {
|
|
|
|
|
// Gamma Spectrum,根据bata-gamma的gamma channel的值(y轴)进行定位
|
|
|
|
|
this.$refs.lineChart1Ref.setLinePosition(yAxis)
|
|
|
|
|
this.$refs.lineChart2Ref.setLinePosition(yAxis)
|
|
|
|
|
|
|
|
|
|
// Beta Spectrum,根据bata-gamma的bata channel的值(x轴)进行定位
|
|
|
|
|
this.$refs.lineChart3Ref.setLinePosition(xAxis)
|
|
|
|
|
this.$refs.lineChart4Ref.setLinePosition(xAxis)
|
2023-07-06 19:40:48 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 鼠标在左侧2d图表上刷选时
|
|
|
|
|
handleRangeChange([x1, x2, y1, y2]) {
|
|
|
|
|
this.$refs.lineChart1Ref.setRange(y1, y2)
|
|
|
|
|
this.$refs.lineChart2Ref.setRange(y1, y2)
|
|
|
|
|
|
|
|
|
|
this.$refs.lineChart3Ref.setRange(x1, x2)
|
|
|
|
|
this.$refs.lineChart4Ref.setRange(x1, x2)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 右侧折线图表刷选时
|
|
|
|
|
* @param {number[]} range 范围
|
|
|
|
|
* @param {'x'|'y'} type 类型
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
handleLineChartRangeChange([x1, x2], type) {
|
|
|
|
|
if (type == 'y') {
|
|
|
|
|
// 如果是gamma channel变化
|
|
|
|
|
this.$refs.lineChart1Ref.setRange(x1, x2)
|
|
|
|
|
this.$refs.lineChart2Ref.setRange(x1, x2)
|
|
|
|
|
} else if (type == 'x') {
|
|
|
|
|
this.$refs.lineChart3Ref.setRange(x1, x2)
|
|
|
|
|
this.$refs.lineChart4Ref.setRange(x1, x2)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$refs.betaGammaChartRef.setRange(x1, x2, type)
|
2023-07-31 19:23:25 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// QC Flags 除去GasBg 和 DetBg其他四个点击时
|
|
|
|
|
handleQcFlagClick(item) {
|
|
|
|
|
const statisticsType = StatisticsType[item]
|
|
|
|
|
if (statisticsType) {
|
|
|
|
|
this.statisticsType = statisticsType
|
|
|
|
|
this.statisticModalVisible = true
|
|
|
|
|
}
|
2023-08-14 09:44:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 重新分析,设置右侧折线图的Energy
|
|
|
|
|
reanalyse([type, data]) {
|
2023-09-13 19:01:21 +08:00
|
|
|
|
const energy = data.map((item) => [item.y])
|
|
|
|
|
if (type == 'gamma') {
|
2023-08-14 09:44:37 +08:00
|
|
|
|
this.gammaEnergyData = energy
|
|
|
|
|
} else {
|
|
|
|
|
this.betaEnergyData = energy
|
|
|
|
|
}
|
2023-09-13 19:01:21 +08:00
|
|
|
|
},
|
2023-07-11 19:35:18 +08:00
|
|
|
|
},
|
|
|
|
|
watch: {
|
2023-07-13 19:18:23 +08:00
|
|
|
|
sample: {
|
2023-09-08 16:23:18 +08:00
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
if (newVal.sampleId) {
|
2023-09-15 17:45:46 +08:00
|
|
|
|
this.getSampleDetail()
|
|
|
|
|
} else {
|
|
|
|
|
this.getSampleDetail_file()
|
2023-09-08 16:23:18 +08:00
|
|
|
|
}
|
2023-07-11 19:35:18 +08:00
|
|
|
|
},
|
2023-09-13 19:01:21 +08:00
|
|
|
|
immediate: true,
|
2023-09-15 16:25:47 +08:00
|
|
|
|
deep: true,
|
2023-09-13 19:01:21 +08:00
|
|
|
|
},
|
2023-09-14 19:44:56 +08:00
|
|
|
|
analyseCurrentSpectrum: {
|
|
|
|
|
handler(newVal, oldVal) {
|
|
|
|
|
this.currResultDisplay = newVal.XeData
|
|
|
|
|
this.resultDisplay = newVal.XeData
|
|
|
|
|
},
|
|
|
|
|
immediate: true,
|
|
|
|
|
deep: true,
|
|
|
|
|
},
|
2023-09-13 19:01:21 +08:00
|
|
|
|
},
|
2023-06-28 19:25:11 +08:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.beta-gamma-analysis {
|
|
|
|
|
height: 100%;
|
2023-07-11 19:35:18 +08:00
|
|
|
|
|
2023-07-26 10:19:07 +08:00
|
|
|
|
.ant-spin-nested-loading {
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
::v-deep {
|
|
|
|
|
.ant-spin-container {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-11 19:35:18 +08:00
|
|
|
|
&-main {
|
|
|
|
|
height: calc(100% - 51px);
|
|
|
|
|
display: flex;
|
2023-07-25 20:03:29 +08:00
|
|
|
|
gap: 30px;
|
2023-07-11 19:35:18 +08:00
|
|
|
|
overflow: auto hidden;
|
|
|
|
|
}
|
2023-06-28 19:25:11 +08:00
|
|
|
|
|
|
|
|
|
.beta-gamma-spectrum-sample {
|
2023-07-25 20:03:29 +08:00
|
|
|
|
flex: 788;
|
2023-06-28 19:25:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.beta-and-gamma-spectrum {
|
2023-07-25 20:03:29 +08:00
|
|
|
|
flex: 1048;
|
2023-06-28 19:25:11 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
|
|
.spectrum-charts {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: calc(100% - 208px);
|
|
|
|
|
|
|
|
|
|
.gamma-spectrum {
|
|
|
|
|
display: flex;
|
|
|
|
|
height: 50%;
|
|
|
|
|
|
|
|
|
|
&-item {
|
|
|
|
|
flex: 509px;
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-right: 30px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.result-display {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|