diff --git a/src/style.less b/src/style.less index a117258..ce41a9e 100644 --- a/src/style.less +++ b/src/style.less @@ -18,8 +18,15 @@ @modal-footer-border-color-split: @formInputBorderColor; +@disabled-color: rgba(255, 255, 255, .25); +@background-color-base: darken(@primary-color, 20); +@border-color-base: darken(@primary-color, 20); + +@text-color: #fff; + .ant-btn:hover, -.ant-btn:active { +.ant-btn:active, +.ant-btn:focus { color: #fff !important; border-color: transparent; } diff --git a/src/views/spectrumAnalysis/components/BetaGammaSpectrumChart.vue b/src/views/spectrumAnalysis/components/BetaGammaSpectrumChart.vue index 7386722..81670ab 100644 --- a/src/views/spectrumAnalysis/components/BetaGammaSpectrumChart.vue +++ b/src/views/spectrumAnalysis/components/BetaGammaSpectrumChart.vue @@ -19,6 +19,7 @@ :option="twoDOption" @zr:mousemove="handleMouseMove" @zr:mousedown="handleMouseDown" + @zr:mouseup="handleMouseUp" @brushEnd="handleBrushEnd" />
@@ -338,6 +339,22 @@ export default { }) }, + handleMouseUp() { + setTimeout(() => { + const chart = this.$refs.chartRef.getChartInstance() + // 清理刷选的范围 + chart.dispatchAction({ + type: 'brush', + areas: [] + }) + + // 改为不可刷选状态 + chart.dispatchAction({ + type: 'takeGlobalCursor' + }) + }, 0) + }, + // 刷选完毕时 handleBrushEnd(param) { const chart = this.$refs.chartRef.getChartInstance() diff --git a/src/views/spectrumAnalysis/components/Modals/LoadFromDBModal.vue b/src/views/spectrumAnalysis/components/Modals/LoadFromDBModal.vue index bb5dac3..5192772 100644 --- a/src/views/spectrumAnalysis/components/Modals/LoadFromDBModal.vue +++ b/src/views/spectrumAnalysis/components/Modals/LoadFromDBModal.vue @@ -1,6 +1,11 @@ @@ -23,6 +35,7 @@