From 0a9efad3aca7586231dd9106136da868add8350c Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Tue, 12 Dec 2023 17:45:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E5=BC=80=E5=90=8E=E9=80=89?= =?UTF-8?q?=E4=B8=ADtable=E4=B8=AD=E7=AC=AC=E4=B8=80=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modals/AnalyzeInteractiveToolModal/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue index 661ad23..c5fbcd0 100644 --- a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue +++ b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue @@ -559,16 +559,21 @@ export default { this.opts.notMerge = false this.isFitting = false this.replotNeeded = false + this.selectedTableItem = null this.$nextTick(() => { this.option.brush = { toolbox: [] } - this.selectedKeys = [] + const firstLine = this.list[0] + if(firstLine) { + this.handleTableRowClick(firstLine) + this.selectedKeys = [firstLine.index] + } }) this.clearRect() this.handleResetChart() }, - beforeModalOpen() { - this.getInfo() + async beforeModalOpen() { + await this.getInfo() this.reset() },