beta 谱 分析事件添加
This commit is contained in:
parent
85f277141d
commit
57983998aa
|
@ -124,7 +124,39 @@ export default {
|
||||||
boundaryList: [],
|
boundaryList: [],
|
||||||
sampleDetail: {},
|
sampleDetail: {},
|
||||||
qcFlags: {},
|
qcFlags: {},
|
||||||
resultDisplay: [
|
resultDisplay: [],
|
||||||
|
currIdx: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
sample: {
|
||||||
|
async handler(newVal, oldVal) {
|
||||||
|
// this.resultDisplay = []
|
||||||
|
const sampleData = await this.$store.dispatch('GET_SAMPLE_DATA', newVal.inputFileName)
|
||||||
|
if (sampleData) {
|
||||||
|
const { data, from } = sampleData
|
||||||
|
this.sampleDetail = data
|
||||||
|
this.changeChartByType('sample')
|
||||||
|
if (from == 'db') {
|
||||||
|
this.sampleDetail = data
|
||||||
|
this.emitGetFiles(data)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (newVal.sampleId) {
|
||||||
|
this.getSampleDetail()
|
||||||
|
} else {
|
||||||
|
this.getSelfStationSampleDetail()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$refs.betaChartRef.handleUnzoom()
|
||||||
|
},
|
||||||
|
immediate: true,
|
||||||
|
deep: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getAnalyzeCurrentSpectrum() {
|
||||||
|
let XeData = [
|
||||||
{
|
{
|
||||||
sampleId: null,
|
sampleId: null,
|
||||||
idAnalysis: null,
|
idAnalysis: null,
|
||||||
|
@ -173,37 +205,64 @@ export default {
|
||||||
moddate: null,
|
moddate: null,
|
||||||
color: '#ffcc30',
|
color: '#ffcc30',
|
||||||
},
|
},
|
||||||
],
|
]
|
||||||
currIdx: 0,
|
this.resultDisplay = XeData
|
||||||
}
|
// this.$emit('reAnalyCurr', true, XeData)
|
||||||
},
|
},
|
||||||
watch: {
|
getAnalyzeAllSpectrum() {
|
||||||
sample: {
|
let XeData = [
|
||||||
async handler(newVal, oldVal) {
|
{
|
||||||
// this.resultDisplay = []
|
sampleId: null,
|
||||||
const sampleData = await this.$store.dispatch('GET_SAMPLE_DATA', newVal.inputFileName)
|
idAnalysis: null,
|
||||||
if (sampleData) {
|
nuclideName: 'Xe131m',
|
||||||
const { data, from } = sampleData
|
conc: -0.049,
|
||||||
this.sampleDetail = data
|
concErr: 0.04272,
|
||||||
this.changeChartByType('sample')
|
mdc: 0.14539,
|
||||||
if (from == 'db') {
|
lc: 0.06362626536110005,
|
||||||
this.sampleDetail = data
|
nidFlag: 0,
|
||||||
this.emitGetFiles(data)
|
moddate: null,
|
||||||
}
|
color: 'red',
|
||||||
} else {
|
|
||||||
if (newVal.sampleId) {
|
|
||||||
this.getSampleDetail()
|
|
||||||
} else {
|
|
||||||
this.getSelfStationSampleDetail()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.$refs.betaChartRef.handleUnzoom()
|
|
||||||
},
|
},
|
||||||
immediate: true,
|
{
|
||||||
deep: true,
|
sampleId: null,
|
||||||
|
idAnalysis: null,
|
||||||
|
nuclideName: 'Xe133',
|
||||||
|
conc: 0.07727,
|
||||||
|
concErr: 0.0631,
|
||||||
|
mdc: 0.23981,
|
||||||
|
lc: 0.09916332268275692,
|
||||||
|
nidFlag: 0,
|
||||||
|
moddate: null,
|
||||||
|
color: '#ffcc30',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
sampleId: null,
|
||||||
|
idAnalysis: null,
|
||||||
|
nuclideName: 'Xe133m',
|
||||||
|
conc: -0.07186,
|
||||||
|
concErr: 0.03596,
|
||||||
|
mdc: 0.11014,
|
||||||
|
lc: 0.044521536189968125,
|
||||||
|
nidFlag: 0,
|
||||||
|
moddate: null,
|
||||||
|
color: 'red',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sampleId: null,
|
||||||
|
idAnalysis: null,
|
||||||
|
nuclideName: 'Xe135',
|
||||||
|
conc: 0.26636,
|
||||||
|
concErr: 0.23193,
|
||||||
|
mdc: 0.77578,
|
||||||
|
lc: 0.3655879636569543,
|
||||||
|
nidFlag: 0,
|
||||||
|
moddate: null,
|
||||||
|
color: '#ffcc30',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
this.resultDisplay = XeData
|
||||||
|
// this.$emit('reAnalyCurr', true, XeData)
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
refreshRoi(data) {
|
refreshRoi(data) {
|
||||||
const { list, start, stop } = data
|
const { list, start, stop } = data
|
||||||
let currRoiParam = { start, stop }
|
let currRoiParam = { start, stop }
|
||||||
|
|
|
@ -1347,19 +1347,22 @@ export default {
|
||||||
{
|
{
|
||||||
type: 'a-menu-item',
|
type: 'a-menu-item',
|
||||||
title: 'Analyze current spectrum',
|
title: 'Analyze current spectrum',
|
||||||
show: this.isBetaGamma,
|
show: this.isBetaGamma || this.isBeta,
|
||||||
handler: () => {
|
handler: () => {
|
||||||
// this.getAnalyzeCurrentSpectrum()
|
// this.getAnalyzeCurrentSpectrum()
|
||||||
this.$refs.betaGammaAnalysisRef.getAnalyzeCurrentSpectrum()
|
if (this.isBetaGamma) this.$refs.betaGammaAnalysisRef.getAnalyzeCurrentSpectrum()
|
||||||
|
if (this.isBeta) this.$refs.betaAnalysisRef.getAnalyzeCurrentSpectrum()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'a-menu-item',
|
type: 'a-menu-item',
|
||||||
title: 'Analyze all spectra',
|
title: 'Analyze all spectra',
|
||||||
show: this.isBetaGamma,
|
show: this.isBetaGamma || this.isBeta,
|
||||||
handler: () => {
|
handler: () => {
|
||||||
// this.getAnalyzeAllSpectrum()
|
// this.getAnalyzeAllSpectrum()
|
||||||
this.$refs.betaGammaAnalysisRef.getAnalyzeAllSpectrum()
|
|
||||||
|
if (this.isBetaGamma) this.$refs.betaGammaAnalysisRef.getAnalyzeAllSpectrum()
|
||||||
|
if (this.isBeta) this.$refs.betaAnalysisRef.getAnalyzeAllSpectrum()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user