fix:ftiting按照接口需要增加参数fittingBtn

This commit is contained in:
xiaoguangbin 2023-12-11 14:18:19 +08:00
parent 29d45c82e9
commit 99e9ad2bd9

View File

@ -669,6 +669,7 @@ export default {
// Fitting // Fitting
async handleFitting() { async handleFitting() {
console.log("isFirstFitting>>"+this.isFirstFitting);
const hasEmpty = Object.entries(this.newCalibrationFuncModel).some(([_, v]) => !v) const hasEmpty = Object.entries(this.newCalibrationFuncModel).some(([_, v]) => !v)
if (hasEmpty && this.list.length < 3) { if (hasEmpty && this.list.length < 3) {
return return
@ -687,10 +688,11 @@ export default {
// ? this.oldScatterSeries // ? this.oldScatterSeries
// : this.list.map((item) => ({ x: item.channel, y: item.energy })), // : this.list.map((item) => ({ x: item.channel, y: item.energy })),
count: this.isFirstFitting || !this.isInverse ? undefined : this.count, count: this.isFirstFitting || !this.isInverse ? undefined : this.count,
fittingBtn : this.isFirstFitting
}) })
if (success) { if (success) {
// this.isFirstFitting = true // this.isFirstFitting = true
this.gammaIsFitting = false this.gammaIsFitting = true
this.$emit('isFitting', true) // reAnalyzeisFirstFittingtrue 20231101xiao this.$emit('isFitting', true) // reAnalyzeisFirstFittingtrue 20231101xiao
this.setCache("CALIBRATION_GAMMA_"+this.newSampleData.inputFileName, result) // ReAnalyze 20231101xiao this.setCache("CALIBRATION_GAMMA_"+this.newSampleData.inputFileName, result) // ReAnalyze 20231101xiao