Calibration 点击 reanalysis 按钮之后得到新结果没有渲染

This commit is contained in:
任珮宇 2023-11-06 10:22:36 +08:00
parent 3ac3f41842
commit 515cfe18f1
2 changed files with 13 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,

View File

@ -407,7 +407,7 @@ export default {
isSaving: false,
colorConfig: {}, //
sampleInfo:{}
sampleInfo: {},
}
},
created() {
@ -445,12 +445,14 @@ export default {
this.params_toDB.comment = val.spectrumAnalysisCommentInfo
},
getStationName(arg, val, flag) {
arg.forEach((item) => {
item.conc = parseFloat(Number(item.conc).toPrecision(6))
item.concErr = parseFloat(Number(item.concErr).toPrecision(6))
item.lc = parseFloat(Number(item.lc).toPrecision(6))
item.mdc = parseFloat(Number(item.mdc).toPrecision(6))
})
if (arg.length > 0) {
arg.forEach((item) => {
item.conc = parseFloat(Number(item.conc).toPrecision(6))
item.concErr = parseFloat(Number(item.concErr).toPrecision(6))
item.lc = parseFloat(Number(item.lc).toPrecision(6))
item.mdc = parseFloat(Number(item.mdc).toPrecision(6))
})
}
this.resultDisplayFlag = arg
this.params_toDB.stationName = val
this.isReAnalyed_beta = flag