diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index dd04068e14..c781436248 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -374,6 +374,7 @@ }, copy(row) { row.copy = true; + row.name = 'copy_'+row.name; this.$emit('edit', row); }, showReport(row) { diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 346bbff488..22e5fee3b1 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -92,7 +92,7 @@
-

{{$t('api_test.automation.scenario_step')}}

+

{{$t('api_test.automation.scenario_stepscenario_step')}}

@@ -692,9 +692,19 @@ if (!hasEnvironment) { this.currentEnvironmentId = ''; } + //检查场景是否需要先进行保存 + this.checkDataIsCopy(); }); } }, + + checkDataIsCopy(){ + // 如果是复制按钮创建的场景,直接进行保存 + if(this.currentScenario.copy){ + this.editScenario(false); + } + }, + openEnvironmentConfig() { if (!this.projectId) { this.$error(this.$t('api_test.select_project')); @@ -937,7 +947,7 @@ } .ms-scenario-button { - margin-left: 30%; + margin-left: 20px; padding: 7px; } diff --git a/frontend/src/business/components/api/definition/components/list/ApiListContainer.vue b/frontend/src/business/components/api/definition/components/list/ApiListContainer.vue index dba4492dac..50a2716e64 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiListContainer.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiListContainer.vue @@ -50,6 +50,8 @@ .active { border: solid 1px #6d317c; + background-color: #7C3985; + color: #FFFFFF; } .case-button { diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue index d3ed7c0b70..f80c3ad55b 100644 --- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue +++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue @@ -15,7 +15,7 @@ - {{$t("commons.batch_add")}} + {{$t("commons.batch_add")}} @@ -30,7 +30,7 @@
- {{$t("commons.batch_add")}} + {{$t("commons.batch_add")}} @@ -46,7 +46,7 @@ - {{$t("commons.batch_add")}} + {{$t("commons.batch_add")}} diff --git a/frontend/src/business/components/api/test/components/ApiHostTable.vue b/frontend/src/business/components/api/test/components/ApiHostTable.vue index 504c798323..884c3ef87b 100644 --- a/frontend/src/business/components/api/test/components/ApiHostTable.vue +++ b/frontend/src/business/components/api/test/components/ApiHostTable.vue @@ -27,7 +27,7 @@ - @@ -143,13 +143,13 @@ .ht-btn-confirm { color: white; - background-color: #1483F6; + /*background-color: #1483F6;*/ } .ht-btn-add { border: 0px; margin-top: 10px; - color: #1483F6; + color: #783887; background-color: white; }