From 3b3544aa2fe8775fd292450658852cbb592e011b Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 25 Aug 2022 17:48:01 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?CSV=E6=96=87=E4=BB=B6=E5=85=B3=E8=81=94=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/variable/CsvFileUpload.vue | 9 +++------ .../api/definition/components/body/ApiBodyFileUpload.vue | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue b/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue index a09d282718..3ef5fca8cb 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue @@ -88,13 +88,10 @@ export default { return {} } }, - mounted() { - this.exist(); - }, methods: { exist() { - this.loading = true; this.parameter.files.forEach(file => { + this.loading = true; this.$get('/file/metadata/exist/' + file.fileId, response => { file.isExist = !response.data; this.loading = false; @@ -279,8 +276,8 @@ export default { } .ms-list__item-delete { - margin-top: -10px; - padding-top: -10px; + margin-top: -15px; + padding-top: -15px; text-align: center; vertical-align: middle; } diff --git a/frontend/src/business/components/api/definition/components/body/ApiBodyFileUpload.vue b/frontend/src/business/components/api/definition/components/body/ApiBodyFileUpload.vue index 09459573d2..d5b74c4fc3 100644 --- a/frontend/src/business/components/api/definition/components/body/ApiBodyFileUpload.vue +++ b/frontend/src/business/components/api/definition/components/body/ApiBodyFileUpload.vue @@ -229,8 +229,7 @@ export default { } .ms-list__item-delete { - margin-top: -10px; - padding-top: -10px; + margin-top: -12px; text-align: center; vertical-align: middle; }