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:
orgin 2024-02-21 15:01:48 +08:00
commit 85f277141d
2 changed files with 35 additions and 41 deletions

View File

@ -629,6 +629,10 @@ export default {
this.$bus.$on('betaRefresh', this.getData)
this.getData()
},
destroyed() {
this.$bus.$off('betaRefresh', this.handleReset)
this.$bus.$off('betaRefresh', this.getData)
},
watch: {
isFirstFitting: {
handler() {
@ -702,18 +706,10 @@ export default {
* 对人工交互的返回数据单独处理
*/
if (this.sampleData.dbName == 'man') {
const result = res.result
result.EToC = newEToC || []
result.CToE = newCToE
this.setFirringResult(res.result)
if (newCToE) {
const [paramA, paramB, paramC] = newCToE
this.newCalibrationFuncModel = {
paramA: Number(paramA).toPrecision(6),
paramB: Number(paramB).toPrecision(6),
paramC: Number(paramC).toPrecision(6),
}
}
if (newEToC) {
this.newE2C = newEToC
}
}
} else {
this.$message.error(res.message)
@ -1009,7 +1005,7 @@ export default {
paramC: Number(paramC).toPrecision(6),
}
}
if (newLineSeries) {
const energyValues = newLineSeries.map((item) => item.y)
const { max: prevMax, min: prevMin } = this.oldChartOption.yAxis
@ -1024,6 +1020,8 @@ export default {
this.figureChartOption.yAxis.interval = interval
this.figureChartOption.series[1].data = newLineSeries.map(({ x, y }) => [x, y])
}
if (newScatterSeriesData) {
this.figureChartOption.series[1].markPoint.data = newScatterSeriesData.map(({ x, y }) => {
return {

View File

@ -554,18 +554,10 @@ export default {
* 对人工交互的返回数据单独处理
*/
if (this.sampleData.dbName == 'man') {
this.setFirringResult(res.result)
if (newCToE) {
const [paramA, paramB, paramC] = newCToE
this.newCalibrationFuncModel = {
paramA: Number(paramA).toPrecision(6),
paramB: Number(paramB).toPrecision(6),
paramC: Number(paramC).toPrecision(6),
}
}
if (newEToC) {
this.newE2C = newEToC
}
const result = res.result
result.EToC = newEToC || []
result.CToE = newCToE
this.setFirringResult(result)
}
} else {
this.$message.error(res.message)
@ -768,6 +760,8 @@ export default {
paramC: Number(paramC).toPrecision(6),
}
}
if (newLineSeries) {
const energyValues = newLineSeries.map((item) => item.y)
const { max: prevMax, min: prevMin } = this.oldChartOption.yAxis
@ -782,6 +776,8 @@ export default {
this.figureChartOption.yAxis.interval = interval
this.figureChartOption.series[1].data = newLineSeries.map(({ x, y }) => [x, y])
}
if (newScatterSeriesData) {
this.figureChartOption.series[1].markPoint.data = newScatterSeriesData.map(({ x, y }) => ({
xAxis: x,