-
-
-
- {{scope.row.ip}}
-
-
+
+
+
+
+
+ {{scope.row.ip}}
+
+
-
-
-
- {{scope.row.domain}}
-
-
+
+
+
+ {{scope.row.domain}}
+
+
-
-
-
- {{scope.row.annotation}}
-
-
+
+
+
+ {{scope.row.annotation}}
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
- 添加
-
-
-
+
+
+ 添加
+
diff --git a/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue b/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue
index 34f42086ef..61e9afa172 100644
--- a/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue
+++ b/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue
@@ -75,6 +75,7 @@ import MsApiScenarioForm from "./ApiScenarioForm";
import {Request, Scenario} from "../model/ScenarioModel";
import draggable from 'vuedraggable';
import MsApiScenarioSelect from "@/business/components/api/test/components/ApiScenarioSelect";
+import {compatibleWithEnvironment, Config, parseEnvironment} from "../model/EnvironmentModel";
export default {
name: "MsApiScenarioConfig",
@@ -203,6 +204,7 @@ export default {
let environments = response.data;
let environmentMap = new Map();
environments.forEach(environment => {
+ parseEnvironment(environment);
environmentMap.set(environment.id, environment);
});
this.scenarios.forEach(scenario => {
diff --git a/frontend/src/business/components/api/test/components/ApiScenarioForm.vue b/frontend/src/business/components/api/test/components/ApiScenarioForm.vue
index afe9aaedb5..5859663a19 100644
--- a/frontend/src/business/components/api/test/components/ApiScenarioForm.vue
+++ b/frontend/src/business/components/api/test/components/ApiScenarioForm.vue
@@ -37,7 +37,7 @@
:environment="scenario.environment"
:description="$t('api_test.scenario.kv_description')"/>
-
+
@@ -66,6 +66,7 @@ import MsDubboRegistryCenter from "@/business/components/api/test/components/req
import MsDubboConfigCenter from "@/business/components/api/test/components/request/dubbo/ConfigCenter";
import MsDubboConsumerService from "@/business/components/api/test/components/request/dubbo/ConsumerAndService";
import MsDatabaseConfig from "./request/database/DatabaseConfig";
+import {parseEnvironment} from "../model/EnvironmentModel";
export default {
name: "MsApiScenarioForm",
@@ -111,6 +112,9 @@ export default {
if (this.projectId) {
this.result = this.$get('/api/environment/list/' + this.projectId, response => {
this.environments = response.data;
+ this.environments.forEach(environment => {
+ parseEnvironment(environment);
+ });
let hasEnvironment = false;
for (let i in this.environments) {
if (this.environments[i].id === this.scenario.environmentId) {
diff --git a/frontend/src/business/components/api/test/components/environment/EnvironmentCommonConfig.vue b/frontend/src/business/components/api/test/components/environment/EnvironmentCommonConfig.vue
new file mode 100644
index 0000000000..2dd5c442c4
--- /dev/null
+++ b/frontend/src/business/components/api/test/components/environment/EnvironmentCommonConfig.vue
@@ -0,0 +1,63 @@
+
+
+
+
+ {{$t('api_test.environment.globalVariable')}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/business/components/api/test/components/environment/EnvironmentEdit.vue b/frontend/src/business/components/api/test/components/environment/EnvironmentEdit.vue
index 684d38ea9e..6f8ac770a0 100644
--- a/frontend/src/business/components/api/test/components/environment/EnvironmentEdit.vue
+++ b/frontend/src/business/components/api/test/components/environment/EnvironmentEdit.vue
@@ -3,37 +3,24 @@
{{$t('api_test.environment.name')}}
-
-
-
- {{$t('api_test.environment.socket')}}
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
+
- {{$t('api_test.environment.globalVariable')}}
-
+
+
+
- {{$t('api_test.request.headers')}}
-
+
+
+
+
+
+
+