fix: 修复Beta点击QC Flags弹窗中DetectorList 为undefined的问题,gamma双击图表改为显示peak弹窗

This commit is contained in:
Xu Zhimeng 2023-10-26 13:51:51 +08:00
parent 67757b84e7
commit fc7c62b504
2 changed files with 8 additions and 13 deletions

View File

@ -204,20 +204,20 @@ export default {
// //
setStationAndDetector({ detectorList, stationName, stationId }) { setStationAndDetector({ detectorList, stationName, stationId }) {
this.queryParams.stationName = stationName this.queryParams.stationName = stationName
this.detectorList = detectorList.map((item) => ({ this.detectorList = detectorList.map(({ detectorCode }) => ({
label: item, label: detectorCode,
value: item, value: detectorCode,
})) }))
this.queryParams.detectorName = detectorList[0] this.queryParams.detectorName = detectorList[0].detectorCode
this.queryParams.stationId = stationId this.queryParams.stationId = stationId
}, },
// //
handleReset() { handleReset() {
this.queryParams.stationName = this.initialMDC.stationName this.queryParams.stationName = this.initialMDC.stationName
this.detectorList = this.initialMDC.detectorList.map((item) => ({ this.detectorList = this.initialMDC.detectorList.map(({ detectorCode }) => ({
label: item, label: detectorCode,
value: item, value: detectorCode,
})) }))
}, },

View File

@ -48,7 +48,7 @@
:option="option" :option="option"
:opts="opts" :opts="opts"
@zr:click="handleChartClick" @zr:click="handleChartClick"
@zr:dblclick="handleChartDblClick" @zr:dblclick="handleTogglePeak"
@zr:mousedown="handleMouseDown" @zr:mousedown="handleMouseDown"
@zr:mouseup="handleMouseUp" @zr:mouseup="handleMouseUp"
@brushEnd="handleBrushEnd" @brushEnd="handleBrushEnd"
@ -891,11 +891,6 @@ export default {
} }
}, },
//
handleChartDblClick() {
this.handleResetChart()
},
// Nuclide Library // Nuclide Library
async getSelPosNuclide(channel) { async getSelPosNuclide(channel) {
this.currChannel = channel this.currChannel = channel