fix: 修改Beta-Gamma 下的RRR弹窗传参

This commit is contained in:
Xu Zhimeng 2023-08-11 09:25:28 +08:00
parent 7a6d13b471
commit 967fa6705a
2 changed files with 29 additions and 5 deletions

View File

@ -23,6 +23,10 @@ export default {
},
sampleId: {
type: Number
},
extraData: {
type: Object,
default: () => ({})
}
},
data() {
@ -40,12 +44,18 @@ export default {
break
case 4:
url = '/spectrumAnalysis/viewRRR'
break;
}
try {
this.content = ''
this.isLoading = true
const res = await getAction(url, { sampleId: this.sampleId })
this.content = res
const res = await getAction(url, { sampleId: this.sampleId, ...this.extraData })
if(res.success) {
this.content = res.result
}
else {
this.content = res
}
} catch (error) {
console.error(error)
} finally {

View File

@ -118,12 +118,12 @@
<nuclide-library-modal v-model="nuclideLibraryModalVisible" />
<!-- Config User Library 弹窗结束 -->
<!-- Arr 弹窗开始 -->
<arr-rrr-modal v-model="arrOrRRRModalVisible" :type="arrOrRRRModalType" :sampleId="this.sampleData.sampleId" />
<!-- Arr RRR 弹窗开始 -->
<arr-rrr-modal v-model="arrOrRRRModalVisible" :type="arrOrRRRModalType" :sampleId="this.sampleData.sampleId" :extraData="this.arrOrRRRModalExtraData" />
<!-- Arr 弹窗结束 -->
<!-- Spectrum 弹窗开始 -->
<spectrum-modal v-model="spectrumModalVisible" :type="arrOrRRRModalType" :sampleId="this.sampleData.sampleId" />
<spectrum-modal v-model="spectrumModalVisible" :sampleId="this.sampleData.sampleId" />
<!-- Spectrum 弹窗结束 -->
<!-- SampleInfo 弹窗开始 -->
@ -312,6 +312,8 @@ export default {
peakInfomationModalVisible: false, // Reports -> PeakInfo
arrOrRRRModalVisible: false, // Reports -> ARR RRR
arrOrRRRModalType: 1, // Reports -> ARR RRR
arrOrRRRModalExtraData: {},
nuclideActivityAndMDCModalVisible: false, // Reports -> Radionuclide Activity
spectrumModalVisible: false, // Reports -> Spectrum
sampleInfomationModalVisible: false, // Reports -> Sample Infomation
@ -724,6 +726,7 @@ export default {
title: 'ARR',
handler: () => {
this.arrOrRRRModalVisible = true
this.arrOrRRRModalExtraData = {}
this.arrOrRRRModalType = 1
},
show: this.isGamma
@ -733,6 +736,7 @@ export default {
title: 'RRR',
handler: () => {
this.arrOrRRRModalVisible = true
this.arrOrRRRModalExtraData = {}
this.arrOrRRRModalType = 2
},
show: this.isGamma
@ -776,6 +780,7 @@ export default {
title: 'View ARR',
handler: () => {
this.arrOrRRRModalVisible = true
this.arrOrRRRModalExtraData = {}
this.arrOrRRRModalType = 3
},
show: this.isBetaGamma
@ -785,6 +790,15 @@ export default {
title: 'View RRR',
handler: () => {
this.arrOrRRRModalVisible = true
this.arrOrRRRModalExtraData = {
dbName: this.sampleData.dbName,
sampleData: false,
GasBgData: false,
DetBgData: false,
QCData: false,
bGammaEnergyValid: false,
bBetaEnergyValid: false
}
this.arrOrRRRModalType = 4
},
show: this.isBetaGamma