fix:ftiting按照接口需要增加参数fittingBtn
This commit is contained in:
parent
29d45c82e9
commit
99e9ad2bd9
|
@ -669,6 +669,7 @@ export default {
|
|||
|
||||
// 点击Fitting按钮执行重新计算
|
||||
async handleFitting() {
|
||||
console.log("isFirstFitting>>"+this.isFirstFitting);
|
||||
const hasEmpty = Object.entries(this.newCalibrationFuncModel).some(([_, v]) => !v)
|
||||
if (hasEmpty && this.list.length < 3) {
|
||||
return
|
||||
|
@ -687,10 +688,11 @@ export default {
|
|||
// ? this.oldScatterSeries
|
||||
// : this.list.map((item) => ({ x: item.channel, y: item.energy })),
|
||||
count: this.isFirstFitting || !this.isInverse ? undefined : this.count,
|
||||
fittingBtn : this.isFirstFitting
|
||||
})
|
||||
if (success) {
|
||||
// this.isFirstFitting = true
|
||||
this.gammaIsFitting = false
|
||||
this.gammaIsFitting = true
|
||||
this.$emit('isFitting', true) // 点击reAnalyze按钮,将isFirstFitting改为true 20231101:xiao
|
||||
|
||||
this.setCache("CALIBRATION_GAMMA_"+this.newSampleData.inputFileName, result) // 缓存数据,如果点击ReAnalyze需要回显数据 20231101:xiao
|
||||
|
|
Loading…
Reference in New Issue
Block a user