先加载 Gamma 谱,然后从 From DB 加载Beta 谱,切换到 Beta 右下角有分析结果,切换到 Gamma 谱再切回 Beta,右下角分析结果没有了

This commit is contained in:
任珮宇 2023-11-08 10:52:26 +08:00
parent 7d2510e8a6
commit 7ecd609185
2 changed files with 11 additions and 11 deletions

View File

@ -183,15 +183,15 @@ export default {
sampleInfo: {
type: Object,
},
analyseCurrentSpectrum: {
type: Object,
},
// analyseCurrentSpectrum: {
// type: Object,
// },
},
data() {
this.SampleType = SampleType
return {
// analyseCurrentSpectrum: {},
analyseCurrentSpectrum: {},
qcFlags: {},
spectraVisible: false,
@ -539,9 +539,9 @@ export default {
}
const minX = left - 10,
maxX = right + 10,
minY = bottom - 10,
maxY = top + 10
maxX = right + 10,
minY = bottom - 10,
maxY = top + 10
this.$refs.betaGammaChartRef.setRange(minX, maxX, 'x')
this.$refs.betaGammaChartRef.setRange(minY, maxY, 'y')
@ -590,7 +590,7 @@ export default {
data: newVal.XeData,
})
},
immediate: true,
// immediate: true,
deep: true,
},
sampleInfo: {

View File

@ -53,8 +53,8 @@
@reAnalyAll="getReAnalyAll"
:sampleInfo="sampleInfo"
:sample="sampleData"
:analyseCurrentSpectrum="analyseCurrentSpectrumData"
/>
<!-- :analyseCurrentSpectrum="analyseCurrentSpectrumData" -->
<!-- Beta-Gamma 分析 -->
<div v-else class="empty">Please Select a Sample</div>
<resize-observer @notify="handleResize" />
@ -375,7 +375,7 @@ export default {
betaGammaRlrModalVisible: false, // beta-gamma RLR
statisticsParamerHistoryModalVisible: false, // beta-gamma Statistics Paramer History
bgLogViewerVisible: false, // beta-gamma Log BG log viewer
analyseCurrentSpectrumData: {},
// analyseCurrentSpectrumData: {},
resultDisplayFlag: [],
params_toDB: {
comment: '',
@ -463,7 +463,7 @@ export default {
this.params_toDB.checkDet = val.checkDet
},
getXeData(val) {
this.$set(this.analyseCurrentSpectrumData, 'XeData', val)
// this.$set(this.analyseCurrentSpectrumData, 'XeData', val)
this.resultDisplayFlag = val
},
// formDB sampleData