parent
cb609764d9
commit
79754ee36a
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import EnvironmentGroup from "@/business/commons/EnvironmentGroupList";
|
import EnvironmentGroup from "@/business/commons/EnvironmentGroupList";
|
||||||
import {environmentGetALl, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
|
import {environmentGetALL, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "EnvGroup",
|
name: "EnvGroup",
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
||||||
this.envGroupId = this.groupId;
|
this.envGroupId = this.groupId;
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
environmentGetALl().then(res => {
|
environmentGetALL().then(res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.groups = data ? data : [];
|
this.groups = data ? data : [];
|
||||||
})
|
})
|
||||||
|
|
|
@ -48,7 +48,7 @@ export function addGroupEnvironment(params) {
|
||||||
return post('/environment/group/add', params);
|
return post('/environment/group/add', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function environmentGetALl() {
|
export function environmentGetALL() {
|
||||||
return post('/environment/group/get/all', {});
|
return post('/environment/group/get/all', {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1843,7 +1843,6 @@ public class TestPlanService {
|
||||||
this.setPlanCaseEnv(testPlanId, runModeConfig);
|
this.setPlanCaseEnv(testPlanId, runModeConfig);
|
||||||
} else if (StringUtils.equals(testplanRunRequest.getEnvironmentType(), "GROUP") && StringUtils.isNotBlank(testplanRunRequest.getEnvironmentGroupId())) {
|
} else if (StringUtils.equals(testplanRunRequest.getEnvironmentType(), "GROUP") && StringUtils.isNotBlank(testplanRunRequest.getEnvironmentGroupId())) {
|
||||||
runModeConfig.setEnvironmentGroupId(testplanRunRequest.getEnvironmentGroupId());
|
runModeConfig.setEnvironmentGroupId(testplanRunRequest.getEnvironmentGroupId());
|
||||||
runModeConfig.setEnvMap(testplanRunRequest.getEnvMap());
|
|
||||||
this.setPlanCaseEnv(testPlanId, runModeConfig);
|
this.setPlanCaseEnv(testPlanId, runModeConfig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import EnvironmentGroup from "./EnvironmentGroupList";
|
import EnvironmentGroup from "./EnvironmentGroupList";
|
||||||
import {environmentGetALl, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
|
import {environmentGetALL, getEnvironmentMapByGroupId} from "metersphere-frontend/src/api/environment";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "EnvGroup",
|
name: "EnvGroup",
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
||||||
this.envGroupId = this.groupId;
|
this.envGroupId = this.groupId;
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
environmentGetALl().then(res => {
|
environmentGetALL().then(res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.groups = data ? data : [];
|
this.groups = data ? data : [];
|
||||||
})
|
})
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {ENV_TYPE} from "metersphere-frontend/src/utils/constants";
|
import {ENV_TYPE} from "metersphere-frontend/src/utils/constants";
|
||||||
import {environmentGetALl} from "metersphere-frontend/src/api/environment";
|
import {environmentGetALL} from "metersphere-frontend/src/api/environment";
|
||||||
import MsTag from "metersphere-frontend/src/components/MsTag";
|
import MsTag from "metersphere-frontend/src/components/MsTag";
|
||||||
import EnvironmentGroup from "@/business/plan/env/EnvironmentGroupList";
|
import EnvironmentGroup from "@/business/plan/env/EnvironmentGroupList";
|
||||||
import {getEnvironmentByProjectId} from "@/api/remote/api/api-environment";
|
import {getEnvironmentByProjectId} from "@/api/remote/api/api-environment";
|
||||||
|
@ -114,7 +114,7 @@ export default {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
getgroups(){
|
getgroups(){
|
||||||
environmentGetALl().then(res => {
|
environmentGetALL().then(res => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.groups = data ? data : [];
|
this.groups = data ? data : [];
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue