From 0c8d75080b328a702079b685930b86f4a03c3127 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 8 Mar 2022 13:24:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95csv?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=88=86=E5=89=B2=E6=B2=A1=E6=9C=89=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010923 --user=刘瑞斌 【性能测试】开启csv分割后保存,保存没生效 https://www.tapd.cn/55049933/s/1115018 --- .../components/PerformanceAdvancedConfig.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue index 95ab26f733..45a0a32661 100644 --- a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue @@ -522,12 +522,7 @@ export default { } }, csvFiles() { - if (this.csvConfig && this.csvFiles) { - this.csvFiles.forEach(f => { - f.csvSplit = this.csvConfig[f.name]?.csvSplit; - f.csvHasHeader = this.csvConfig[f.name]?.csvHasHeader; - }); - } + this.refreshCsv(); } }, methods: { @@ -553,9 +548,18 @@ export default { this.properties = data.properties || []; this.systemProperties = data.systemProperties || []; this.csvConfig = data.csvConfig; + this.refreshCsv(); } }); }, + refreshCsv() { + if (this.csvConfig && this.csvFiles) { + this.csvFiles.forEach(f => { + f.csvSplit = this.csvConfig[f.name]?.csvSplit; + f.csvHasHeader = this.csvConfig[f.name]?.csvHasHeader; + }); + } + }, add(dataName) { if (dataName === 'domains') { this[dataName].push({