Insert
@@ -158,7 +158,7 @@ const initialOption = {
const energy = parseInt(x)
const fwhm = y.toFixed(3)
return `Energy: ${energy}
- Fwhm: ${fwhm}
`
+ Efficiency : ${efficiency}
`
},
className: 'figure-chart-option-tooltip',
},
@@ -317,7 +317,7 @@ export default {
// 表格单行点击
handleRowClick(row) {
this.model = cloneDeep(row)
- this.model.channel = parseFloat(Number(this.model.channel).toPrecision(6))
+ this.model.fwhm = parseFloat(Number(this.model.fwhm).toPrecision(6))
this.model.energy = parseFloat(Number(this.model.energy).toPrecision(6))
this.emptyModal = cloneDeep(row)
},
@@ -326,7 +326,6 @@ export default {
handleInsert() {
const energy = parseFloat(this.model.energy)
const fwhm = parseFloat(this.model.fwhm)
-
if (Number.isNaN(energy) || Number.isNaN(fwhm)) {
this.$message.warn('Format is invalid.')
return
@@ -369,12 +368,11 @@ export default {
})
},
handleChannelChange(e) {
- if (e.target.value != parseFloat(Number(this.emptyModal.channel).toPrecision(6))) {
- this.emptyModal.channel = e.target.value
+ if (e.target.value != parseFloat(Number(this.emptyModal.fwhm).toPrecision(6))) {
+ this.emptyModal.fwhm = e.target.value
}
},
handleEnergyChange(e) {
- console.log(e.target.value)
if (e.target.value != parseFloat(Number(this.emptyModal.energy).toPrecision(6))) {
this.emptyModal.energy = e.target.value
}