fix:ftiting按照接口需要增加参数fittingBtn
This commit is contained in:
parent
29d45c82e9
commit
99e9ad2bd9
|
@ -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) // 点击reAnalyze按钮,将isFirstFitting改为true 20231101:xiao
|
this.$emit('isFitting', true) // 点击reAnalyze按钮,将isFirstFitting改为true 20231101:xiao
|
||||||
|
|
||||||
this.setCache("CALIBRATION_GAMMA_"+this.newSampleData.inputFileName, result) // 缓存数据,如果点击ReAnalyze需要回显数据 20231101:xiao
|
this.setCache("CALIBRATION_GAMMA_"+this.newSampleData.inputFileName, result) // 缓存数据,如果点击ReAnalyze需要回显数据 20231101:xiao
|
||||||
|
|
Loading…
Reference in New Issue
Block a user