beta 新谱页面中切换谱数据之后 标题没有改名称

This commit is contained in:
任珮宇 2024-01-25 16:23:10 +08:00
parent 3291baf499
commit fa137ad0ab

View File

@ -27,7 +27,7 @@
<div class="beta-gamma-analysis-main-charts"> <div class="beta-gamma-analysis-main-charts">
<div class="beta-gamma-analysis-main-charts-left"> <div class="beta-gamma-analysis-main-charts-left">
<beta-gamma-chart-container> <beta-gamma-chart-container>
<template slot="title"> Beta-Gamma Spectrum: Sample </template> <template slot="title"> Beta-Gamma Spectrum: {{ currSpectrum }} </template>
<beta-gamma-spectrum <beta-gamma-spectrum
ref="betaChartRef" ref="betaChartRef"
:betaEnergyData="betaEnergyData" :betaEnergyData="betaEnergyData"
@ -89,7 +89,7 @@ const SampleType = [
}, },
{ {
label: 'DetBg Data', label: 'DetBg Data',
value: 'det', value: 'detBg',
}, },
] ]
export default { export default {
@ -112,6 +112,7 @@ export default {
data() { data() {
this.SampleType = SampleType this.SampleType = SampleType
return { return {
currSpectrum: '',
isLoading: false, isLoading: false,
spectrumData: {}, // Detailed Infomation spectrumData: {}, // Detailed Infomation
spectraType: 'sample', spectraType: 'sample',
@ -207,6 +208,8 @@ export default {
} }
}, },
changeChartByType(val) { changeChartByType(val) {
if (val == 'sample') this.currSpectrum = 'Sample'
if (val == 'detBg') this.currSpectrum = 'Det'
this.roiParamList = [] this.roiParamList = []
this.boundaryList = [] this.boundaryList = []
this.ROILists = [] this.ROILists = []