Merge branch 'feature-Beta-dev-renpy' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into feature-Beta-dev-renpy
This commit is contained in:
commit
1375ed37e2
File diff suppressed because it is too large
Load Diff
|
@ -73,7 +73,6 @@
|
||||||
ref="RoiChartRef"
|
ref="RoiChartRef"
|
||||||
:ROILists="ROILists"
|
:ROILists="ROILists"
|
||||||
:ROIAnalyzeLists="ROIAnalyzeLists"
|
:ROIAnalyzeLists="ROIAnalyzeLists"
|
||||||
:gammaEnergyData="gammaEnergyData"
|
|
||||||
/>
|
/>
|
||||||
</beta-gamma-chart-container>
|
</beta-gamma-chart-container>
|
||||||
<!-- 底部显示 -->
|
<!-- 底部显示 -->
|
||||||
|
@ -281,14 +280,30 @@ export default {
|
||||||
data: analyseList,
|
data: analyseList,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 更新XeData
|
||||||
updateSampleData({
|
updateSampleData({
|
||||||
inputFileName,
|
inputFileName,
|
||||||
key: 'XeData',
|
key: 'XeData',
|
||||||
data: result.XeData,
|
data: result.XeData,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 更新XeData
|
|
||||||
this.resultDisplay = result.XeData
|
this.resultDisplay = result.XeData
|
||||||
|
|
||||||
|
const { betaEnergyData, gammaEnergyData } = result
|
||||||
|
// 更新 betaEnergyData 和 gammaEnergyData
|
||||||
|
this.betaEnergyData = betaEnergyData
|
||||||
|
this.gammaEnergyData = gammaEnergyData
|
||||||
|
|
||||||
|
// 更新sample的 betaEnergyData 和 gammaEnergyData
|
||||||
|
updateSampleData({
|
||||||
|
inputFileName,
|
||||||
|
key: 'sample.betaEnergyData',
|
||||||
|
data: betaEnergyData,
|
||||||
|
})
|
||||||
|
updateSampleData({
|
||||||
|
inputFileName,
|
||||||
|
key: 'sample.gammaEnergyData',
|
||||||
|
data: gammaEnergyData,
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
const arr = message.split('\n')
|
const arr = message.split('\n')
|
||||||
this.$warning({
|
this.$warning({
|
||||||
|
@ -562,7 +577,7 @@ export default {
|
||||||
|
|
||||||
// 从分析工具刷新部分数据
|
// 从分析工具刷新部分数据
|
||||||
handleRefresh(data, index) {
|
handleRefresh(data, index) {
|
||||||
this.ROIAnalyzeLists[index] = this.$set(this.ROIAnalyzeLists, index, data)
|
this.$set(this.ROIAnalyzeLists, index, data)
|
||||||
|
|
||||||
const { inputFileName } = this.sample
|
const { inputFileName } = this.sample
|
||||||
updateSampleData({
|
updateSampleData({
|
||||||
|
@ -585,7 +600,7 @@ export default {
|
||||||
BaseCtrls,
|
BaseCtrls,
|
||||||
} = data
|
} = data
|
||||||
|
|
||||||
this.ROIAnalyzeLists[index] = this.$set(this.ROIAnalyzeLists, index, {
|
this.$set(this.ROIAnalyzeLists, index, {
|
||||||
allData,
|
allData,
|
||||||
peak,
|
peak,
|
||||||
shadowChannelChart,
|
shadowChannelChart,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -122,6 +122,7 @@ export default {
|
||||||
open(seriesData, energys) {
|
open(seriesData, energys) {
|
||||||
this.option.series.data = (seriesData || []).map(({ x, y }) => [x, y])
|
this.option.series.data = (seriesData || []).map(({ x, y }) => [x, y])
|
||||||
this.energys = energys || []
|
this.energys = energys || []
|
||||||
|
this.axisInfo = cloneDeep(initialAxisInfo)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,7 @@ export default {
|
||||||
open(seriesData, energys) {
|
open(seriesData, energys) {
|
||||||
this.option.series.data = (seriesData || []).map(({ x, y }) => [x, y])
|
this.option.series.data = (seriesData || []).map(({ x, y }) => [x, y])
|
||||||
this.energys = energys || []
|
this.energys = energys || []
|
||||||
|
this.axisInfo = cloneDeep(initialAxisInfo)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
:title="`ROI${index + 1}`"
|
:title="`ROI${index + 1}`"
|
||||||
:title-color="RoiTitleColors[index]"
|
:title-color="RoiTitleColors[index]"
|
||||||
:energys="gammaEnergyData"
|
|
||||||
:roi-list="ROILists[index]"
|
:roi-list="ROILists[index]"
|
||||||
:analyze-result="ROIAnalyzeLists[index]"
|
:analyze-result="ROIAnalyzeLists[index]"
|
||||||
@toggle="handleToggle"
|
@toggle="handleToggle"
|
||||||
|
@ -34,10 +33,6 @@ export default {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
},
|
},
|
||||||
gammaEnergyData: {
|
|
||||||
type: Array,
|
|
||||||
default: () => [],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
this.RoiTitleColors = RoiTitleColors
|
this.RoiTitleColors = RoiTitleColors
|
||||||
|
|
|
@ -132,10 +132,6 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
title: String,
|
title: String,
|
||||||
titleColor: String,
|
titleColor: String,
|
||||||
energys: {
|
|
||||||
type: Array,
|
|
||||||
default: () => [],
|
|
||||||
},
|
|
||||||
roiList: {
|
roiList: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
|
@ -191,14 +187,24 @@ export default {
|
||||||
this.$bus.$off('SelfStationBetaSpectrumChange', this.handleLimitItemChange)
|
this.$bus.$off('SelfStationBetaSpectrumChange', this.handleLimitItemChange)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**
|
||||||
|
* 根据channel获取energy
|
||||||
|
* @param {number} channel
|
||||||
|
*/
|
||||||
|
getEnergyByChannel(channel) {
|
||||||
|
const energyItem = this.allEnergy ? this.allEnergy[channel - 1] : null
|
||||||
|
return energyItem ? energyItem.x : 0
|
||||||
|
},
|
||||||
|
|
||||||
handleTooltipFormat(params) {
|
handleTooltipFormat(params) {
|
||||||
const [xAxis, count] = params[0].value
|
const [xAxis, count] = params[0].value
|
||||||
const channel = Math.round(xAxis)
|
const channel = Math.round(xAxis)
|
||||||
const channelData = this.channelData.all && this.channelData.all.pointlist[channel]
|
const channelData = this.channelData.all && this.channelData.all.pointlist[channel]
|
||||||
|
const energy = this.getEnergyByChannel(channel)
|
||||||
this.axisInfo = {
|
this.axisInfo = {
|
||||||
channel,
|
channel,
|
||||||
count: channelData ? channelData.y : count,
|
count: channelData ? channelData.y : count,
|
||||||
energy: (this.energys[channel] || 0).toFixed(3),
|
energy: energy.toFixed(2),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -323,6 +329,9 @@ export default {
|
||||||
baseLineCP: shapeChannelData,
|
baseLineCP: shapeChannelData,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const allEnergy = this.getLineData(allData, 'Energy', 'energy')
|
||||||
|
this.allEnergy = allEnergy.pointlist
|
||||||
|
|
||||||
// 设置 Spectrum Line
|
// 设置 Spectrum Line
|
||||||
this.setSeriesData(
|
this.setSeriesData(
|
||||||
this.option.series,
|
this.option.series,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user