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 }) {
this.queryParams.stationName = stationName
this.detectorList = detectorList.map((item) => ({
label: item,
value: item,
this.detectorList = detectorList.map(({ detectorCode }) => ({
label: detectorCode,
value: detectorCode,
}))
this.queryParams.detectorName = detectorList[0]
this.queryParams.detectorName = detectorList[0].detectorCode
this.queryParams.stationId = stationId
},
//
handleReset() {
this.queryParams.stationName = this.initialMDC.stationName
this.detectorList = this.initialMDC.detectorList.map((item) => ({
label: item,
value: item,
this.detectorList = this.initialMDC.detectorList.map(({ detectorCode }) => ({
label: detectorCode,
value: detectorCode,
}))
},

View File

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