fix: 修复barChart在操作后未回传值的问题

This commit is contained in:
Xu Zhimeng 2023-11-02 19:30:51 +08:00
parent fa9b9c7398
commit b81d5a9797
2 changed files with 12 additions and 5 deletions

View File

@ -799,6 +799,7 @@ export default {
shapeChannelData,
shapeEnergyData,
peak: table,
barChart: this.barChart
})
this.channelPeakChart = channelPeakChart
@ -888,6 +889,7 @@ export default {
shapeChannelData,
shapeEnergyData,
peak: table,
barChart: this.barChart,
})
this.channelPeakChart = channelPeakChart

View File

@ -1368,9 +1368,13 @@ export default {
//
handleRefresh(data) {
data.DetailedInformation = this.detailedInfomation
data.QCFlag = this.qcFlags
data.BaseCtrls = this.baseCtrls
Object.assign(data, {
DetailedInformation: this.detailedInfomation,
QCFlag: this.qcFlags,
BaseCtrls: this.baseCtrls,
bAnalyed: this.bAnalyed
})
this.clearCompareLine()
this.redrawPeakLine()
this.dataProcess(data)
@ -1378,7 +1382,7 @@ export default {
// Accept
handleAccept(data) {
const { allData, peakSet, shadowChannelChart, shadowEnergyChart, shapeChannelData, shapeEnergyData } = data
const { allData, peakSet, shadowChannelChart, shadowEnergyChart, shapeChannelData, shapeEnergyData, barChart } = data
const result = {
DetailedInformation: this.detailedInfomation,
@ -1386,11 +1390,12 @@ export default {
allData,
shadowChannelChart,
shadowEnergyChart,
shapeChannelData,
shapeEnergyData,
peak: peakSet,
BaseCtrls: this.baseCtrls,
bAnalyed: this.bAnalyed,
barChart
}
this.clearCompareLine()
this.redrawPeakLine()