fix;按乔的要求增加请求reset的接口 20231211:xiao

This commit is contained in:
xiaoguangbin 2023-12-11 14:36:50 +08:00
parent 99e9ad2bd9
commit 35b315421a
2 changed files with 14 additions and 3 deletions

View File

@ -876,12 +876,18 @@ export default {
},
// Reset Button
handleReset() {
async handleReset() {
this.removeCache("CALIBRATION_BETA_"+this.newSampleData.inputFileName) // fitting 20231101:xiao
this.newCalibrationFuncModel = cloneDeep(newCalibrationFuncModel)
this.list = []
this.newE2C = []
// reset 20231211xiao
const res = await postAction('/spectrumAnalysis/resetButton', {
tabName: "beta",
sampleFileName: this.newSampleData.inputFileName
})
this.figureChartOption = this.oldChartOption
this.figureChartOption = cloneDeep(this.oldChartOption)

View File

@ -656,12 +656,18 @@ export default {
},
// Reset Button
handleReset() {
async handleReset() {
this.$ls.remove("CALIBRATION_GAMMA_"+this.newSampleData.inputFileName) // fitting 20231101:xiao
this.newCalibrationFuncModel = cloneDeep(newCalibrationFuncModel)
this.list = []
this.newE2C = []
// reset 20231211xiao
const res = await postAction('/spectrumAnalysis/resetButton', {
tabName: "gamma",
sampleFileName: this.newSampleData.inputFileName
})
this.figureChartOption = cloneDeep(this.oldChartOption)
this.isFirstFitting = false
this.isInverse = false
@ -669,7 +675,6 @@ 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