From 78337da23be6c6700c8802d9307d7559eada96f8 Mon Sep 17 00:00:00 2001 From: xiaoguangbin Date: Wed, 10 Jul 2024 16:10:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=95=A3=E7=82=B9=E5=9B=BEX=E8=BD=B4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA512?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spectrumAnalysis/components/BetaGammaSpectrum.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue b/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue index 7848706..02a3b65 100644 --- a/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue +++ b/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue @@ -100,7 +100,7 @@ const twoDOption = { show: false, }, min: 0, - max: 1024, + max: 512, interval: 128, }, yAxis: { @@ -435,7 +435,7 @@ export default { let graphicHeight = this.$refs.TwoChartRef.clientHeight graphic1.shape.height = graphicHeight let minleft = this.myChart.convertToPixel({ xAxisId: '2' }, 0) - let maxRight = this.myChart.convertToPixel({ xAxisId: '2' }, 1024) + let maxRight = this.myChart.convertToPixel({ xAxisId: '2' }, 512) graphic1.position = [ this.myChart.convertToPixel({ xAxisId: '2' }, minX), this.myChart.convertToPixel({ yAxisId: '3' }, maxY), @@ -582,7 +582,7 @@ export default { const [graphic1, graphic2] = this.dragOption.graphic const { minX, maxX, minY, maxY, color } = this.boundaryData this.twoDOption.xAxis.min = 0 - this.twoDOption.xAxis.max = 1024 + this.twoDOption.xAxis.max = 512 this.twoDOption.yAxis.min = 0 this.twoDOption.yAxis.max = 4096 @@ -637,7 +637,7 @@ export default { const [x1, y2, x2, y1] = [...point1, ...point2] // 根据解析出的数据确定真实的范围 - const rangeNumberFuncX = rangeNumber(0, 1024) + const rangeNumberFuncX = rangeNumber(0, 512) const rangeNumberFuncY = rangeNumber(0, 4096) this.twoDOption.xAxis.min = rangeNumberFuncX(x1)