From 04e70e08689748d1bd87e189c5908849cf043e96 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 21 Jul 2021 17:08:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BB=BB=E5=8A=A1=E7=B1=BB=E5=9E=8B=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/api/ApiRelevance.vue | 1 + frontend/src/business/components/task/TaskCenter.vue | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue b/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue index a705bdc3f0..21fdf45cb6 100644 --- a/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue +++ b/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue @@ -79,6 +79,7 @@ export default { }, methods: { changeButtonLoadingType(){ + this.refresh(); this.buttonIsWorking = false; }, reference() { diff --git a/frontend/src/business/components/task/TaskCenter.vue b/frontend/src/business/components/task/TaskCenter.vue index b4eadcae2f..b745d147f4 100644 --- a/frontend/src/business/components/task/TaskCenter.vue +++ b/frontend/src/business/components/task/TaskCenter.vue @@ -61,7 +61,7 @@
- {{ item.name }}
+ {{getModeName(item.executionModule)}} : {{ item.name }}
执行器:{{ item.actuator }} 由 {{ item.executor }} {{ item.executionTime | timestampFormatDate }} @@ -217,6 +217,16 @@ export default { } return 60; }, + getModeName(executionModule){ + switch (executionModule) { + case "SCENARIO": + return this.$t('test_track.scenario_test_case'); + case "PERFORMANCE": + return this.$t('test_track.performance_test_case'); + case "API": + return this.$t('test_track.api_test_case'); + } + }, showReport(row, env) { let status = row.executionStatus; if (status) {